/* Dochitarot: a paper record received in Dochirok's illustrated garden.
   Palette, type and texture come from sites-dochirok. No provisional green. */
@font-face{font-family:'Dochirok Myeongjo';src:url('assets/fonts/NanumMyeongjo-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{
  --tarot-ink:#645a4c;
  --tarot-secondary:#645a4c;
  --tarot-muted:#645a4c;
  --tarot-paper:#f6ebdb;
  --tarot-paper-shade:#e7dac7;
  --tarot-rule:#645a4c;
  --tarot-focus:#645a4c;
  --fg:var(--tarot-ink);--muted:var(--tarot-muted);--accent:var(--tarot-secondary);
  --line:var(--tarot-rule);--bg:var(--tarot-paper);--panel:var(--tarot-paper);
  --f-display:'Dochirok Myeongjo','AppleMyungjo','Batang',serif;
  --f-body:'Apple SD Gothic Neo','Noto Sans KR',sans-serif;
}
body{color:var(--tarot-ink);font-family:var(--f-body)}
.wordmark,.entrance h1,.entrance h1 em,.experience-header h1,.card-story h2,.reading h2,.result h2{color:var(--tarot-ink);font-weight:400}
.entrance-copy,.entry-note,.experience-header p:not(.eyebrow),.cr-prompt,.story-prose,.synthesis-item p,.result #final-summary{color:var(--tarot-muted)}
.eyebrow,.story-nickname,.cr-caption span,.cr-caption .card-name-ko,.cr-slot-label,.is-advice .cr-slot-label,.read-mark,.read-progress,.cr-fan-hint,.archive-link,.save-note,#save-status,footer{color:var(--tarot-secondary)}
.sample-note{color:var(--tarot-secondary)!important}
.cr-caption,.entry-note,.wordmark{text-shadow:none}
.cr-caption b{color:var(--tarot-ink);font-weight:400}
.entrance .eyebrow{letter-spacing:.19em}
.experience-header h1{font-size:clamp(23px,3vw,31px);line-height:1.65}
.experience-header p.selection-copy{margin-top:16px;gap:2px}

/* A small paper label, drawn with the same graphite frame as the main site. */
.enter-button,.btn,.btn.primary,.cr-reveal,.story-close,.result #save-record{
  border:0;border-radius:1px;box-shadow:none;color:var(--tarot-ink);
  background-color:var(--tarot-paper-shade);
  background-image:url('assets/pencil-frame.svg'),url('assets/dochirok-paper.webp');
  background-position:center,center;background-size:100% 100%,420px 420px;
  background-repeat:no-repeat,repeat;background-blend-mode:normal,multiply;
  font-family:var(--f-display);font-weight:400;line-height:1.6;
  padding:13px 24px;transition:background-color .2s;translate:none;
}
.enter-button:hover,.btn:hover,.btn.primary:hover,.cr-reveal:hover,.story-close:hover,.result #save-record:hover{background-color:#d6c9b7;color:var(--tarot-ink);translate:none}
.btn:disabled{cursor:default;opacity:.7}
.enter-button{min-width:210px;font-size:16px}
.story-close{font-family:var(--f-body);padding:7px 12px;font-size:12px}
.archive-link{background:transparent;border-bottom:1px solid var(--tarot-rule);font-family:var(--f-body)}
button:focus-visible,.inspect-card:focus-visible{outline:2px solid var(--tarot-focus);outline-offset:4px}
.cr-fan-card:hover,.cr-fan-card:focus-visible{outline:2px solid var(--tarot-focus);outline-offset:3px}
.read-mark,.read-progress{border-color:var(--tarot-rule);font-family:var(--f-body);background:transparent}

/* One tactile sheet for every reading, recap and saved record. */
.reading,.result,.card-story,.cr-prev{
  border:1px solid var(--tarot-rule);border-image:none;border-radius:1px;
  background:var(--tarot-paper) url('assets/dochirok-paper.webp') center/627px 627px repeat;
  background-blend-mode:multiply;box-shadow:none;color:var(--tarot-ink);
}
.reading,.result,.cr-prev{position:relative}
.reading::before,.result::before,.card-story::before{
  content:'';position:absolute;inset:5px;pointer-events:none;
  background:url('assets/pencil-frame.svg') center/100% 100% no-repeat;opacity:.5;
}
.reading,.result{padding:34px 32px;gap:18px}
.reading h2,.result h2{font-size:25px;line-height:1.6}
.reading .eyebrow,.result .eyebrow{font-family:var(--f-body);letter-spacing:.18em;color:var(--tarot-secondary)}
.synthesis-item{margin-bottom:23px}
.synthesis-item p,.result #final-summary{font:15px/2 var(--f-display)}
.reading .advice-invite{border:0;padding-top:26px;background:url('assets/pencil-divider.svg') center top/100% 2px no-repeat;font-size:15px;color:var(--tarot-muted)}
.reading .actions{padding-top:4px}
.story-prose{font:15px/2 var(--f-display)}
.story-prose blockquote,.saved-card blockquote{background:#ba9b7112;border-color:var(--tarot-rule);color:var(--tarot-muted)}
.card-story::backdrop{background:#2b27227a;backdrop-filter:blur(4px)}
.story-close{top:-30px}
.result .actions{border-top:1px solid var(--tarot-rule);padding-top:22px;gap:12px}
.result .actions .btn{min-height:46px}
.result #save-record{background-color:var(--tarot-paper-shade)}
.result pre{border-radius:0;border-color:var(--tarot-rule);background:#e8e4db88;color:var(--tarot-muted)}
.saved-record,.saved-card{border-color:var(--tarot-rule)}
.cr-prev-title,.cr-prev-item small,.cr-prev-item.again small{color:var(--tarot-secondary)}
.welcome-card,.cr-card-holder,.cr-face,.cr-shuffle .cr-card,.cr-ghost,.cr-fan-card,.story-image{box-shadow:none!important}
.cr-card-holder{border-color:#a49a8866;background:#eeece51a}
.garden-motes{opacity:.45}
@media(max-width:600px){
  .entrance h1{font-size:35px}.experience-header h1{font-size:22px}
  .reading,.result{padding:28px 24px}.reading h2,.result h2{font-size:23px}
  .synthesis-item p,.result #final-summary,.story-prose{font-size:14px;line-height:2}
  .card-story{padding:40px 25px 28px}.enter-button{font-size:15px}
}
@media(prefers-reduced-motion:reduce){.enter-button,.btn,.cr-reveal,.story-close{transition:none}}

/* Mobile reading: visible brown deck rail and a frame that follows the whole sheet. */
.cr-fan{scrollbar-width:auto;scrollbar-color:var(--tarot-secondary) #d8cfbf}
.cr-fan::-webkit-scrollbar{height:10px}
.cr-fan::-webkit-scrollbar-track{background:#d8cfbf;border-radius:5px}
.cr-fan::-webkit-scrollbar-thumb{background:var(--tarot-secondary);border:1px solid #d8cfbf;border-radius:5px;min-width:36px}
.cr-fan::-webkit-scrollbar-thumb:hover{background:#5e5141}
.card-story{padding:0;border:0;background:transparent;scrollbar-color:var(--tarot-secondary) var(--tarot-paper-shade)}
.card-story::before{content:none}
.dialog-sheet{position:relative;min-width:0;padding:42px 32px 30px;border:1px solid var(--tarot-rule);background:var(--tarot-paper) url('assets/dochirok-paper.webp') center/627px 627px repeat;background-blend-mode:multiply}
.dialog-sheet::before{content:'';position:absolute;inset:5px;pointer-events:none;background:url('assets/pencil-frame.svg') center/100% 100% no-repeat;opacity:.5}
.dialog-sheet .story-close{top:8px}
.story-prose{overflow-wrap:anywhere}
.story-prose h3{margin:24px 0 12px}
.story-prose #story-action-section{margin:26px 0 0}
.story-prose .question-memo,.question-memo{position:relative;margin:38px 0 26px;padding:32px 22px 24px;border:0;border-radius:0;background:transparent url('assets/pencil-frame.svg') center/100% 100% no-repeat;color:var(--tarot-muted);text-align:left}
.question-memo .memo-clip{position:absolute;top:-21px;left:12px;width:29px;height:57px;transform:rotate(-12deg);pointer-events:none}
.question-memo h3,.story-prose .question-memo h3{font:400 15px/1.8 var(--f-display);margin:0 0 14px}
.question-memo p{margin:0;overflow-wrap:anywhere}
.result .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.result .actions .btn,.result #save-record{width:100%;min-height:52px;margin:0;padding:12px 8px;font-size:14px}
.result #final-summary{text-align:left;min-width:0}
.recap-card{padding-top:24px;margin-top:24px;border-top:1px solid var(--tarot-rule)}
.recap-card h3{font:400 18px/1.8 var(--f-display);margin:0 0 14px}
.recap-card p{margin:0 0 18px;white-space:pre-line}
.recap-card .recap-name{font:12px/1.8 var(--f-body);color:var(--tarot-secondary)}
.result{scroll-margin-top:20px}
@media(max-width:600px){
  .dialog-sheet{padding:40px 25px 28px}
  .result .actions{grid-template-columns:minmax(0,1fr);gap:12px}
  .dialog-sheet #story-return{width:100%;padding:13px 8px}
  .question-memo{padding:32px 18px 22px}
}

/* Question copy can be refined independently of the reading flow. */
.question-entry{width:min(100%,640px);margin:0 auto;padding:32px 22px 48px;text-align:center;box-sizing:border-box}
.question-entry h1{font:400 27px/1.65 var(--f-display);margin:14px 0}
.question-intro{font:14px/1.9 var(--f-display);color:var(--tarot-muted);margin-bottom:32px}
.question-paper{position:relative;text-align:left;padding:30px;border:1px solid var(--tarot-rule);background:var(--tarot-paper) url('assets/dochirok-paper.webp') center/627px repeat;background-blend-mode:multiply}
.question-paper label{display:block;font:15px/1.8 var(--f-display);margin:0 0 12px}
.question-paper label span{font-size:12px;color:var(--tarot-secondary)}
.question-paper textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:100px;padding:14px 12px;border:1px solid var(--tarot-rule);border-radius:0;background:#eeece555;color:var(--tarot-ink);font:16px/1.8 var(--f-display)}
.question-paper textarea::placeholder{color:var(--tarot-secondary);opacity:.85}
.question-paper textarea:focus-visible{outline:2px solid var(--tarot-secondary);outline-offset:3px}
.question-paper .input-count{text-align:right;font:11px/1.7 var(--f-body);color:var(--tarot-secondary);margin:8px 0 26px}
.question-paper h2{font:400 21px/1.7 var(--f-display);margin:0 0 24px}
.question-paper h3{font:400 15px/1.8 var(--f-display);margin:24px 0 12px}
.written-question{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.9 var(--f-display)}
.question-paper .btn{width:100%;min-height:50px}
.question-paper .actions{display:grid;gap:12px;margin-top:28px}
.question-paper .sample-note{margin:22px 0 0}
#question-error{font:13px/1.7 var(--f-body);color:var(--tarot-ink)}
#question-error:empty{display:none}
#cancel-question{margin-top:24px;padding:8px}
.experience-header .reading-question{font:400 clamp(28px,4vw,38px)/1.65 var(--f-display);text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 auto 32px;max-width:720px;color:var(--tarot-ink)}
@media(max-width:600px){.question-entry{padding:22px 16px 36px}.question-entry h1{font-size:23px}.question-paper{padding:26px 20px}}

/* A quiet animated garden, with only the current prompt at the lower edge. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.question-entry{position:relative;display:flex;flex-direction:column;justify-content:flex-end;width:100%;max-width:none;min-height:calc(100svh - 82px);min-height:calc(100dvh - 82px);padding:36px 24px max(28px,env(safe-area-inset-bottom));isolation:isolate}
.questioning .garden-scene{animation:question-garden-drift 24s ease-in-out infinite alternate;transform-origin:50% 65%;will-change:transform}
.questioning .garden-light{background:linear-gradient(0deg,#eeece5f5, #eeece58c 20%,transparent 50%);animation:garden-daylight 12s ease-in-out infinite alternate}
.question-dock{width:min(100%,650px);margin:0 auto;text-align:left;position:relative}
.question-dock form{animation:question-arrive .55s ease both}
.question-dock label{display:block;font:15px/1.8 var(--f-display);color:var(--tarot-ink);margin-bottom:12px;text-shadow:0 1px 10px var(--tarot-paper)}
.question-dock label span{font-size:12px}
.question-dock textarea{width:100%;display:block;resize:vertical;min-height:82px;max-height:180px;border:0;border-bottom:1px solid var(--tarot-secondary);border-radius:0;background:#eeece578;padding:12px;font:16px/1.8 var(--f-display);color:var(--tarot-ink);box-sizing:border-box;backdrop-filter:blur(3px)}
.question-dock textarea::placeholder{color:var(--tarot-secondary);font-size:13px;opacity:1}
.question-dock textarea:focus-visible{outline:1px solid var(--tarot-secondary);outline-offset:3px}
.garden-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.garden-input-row .btn{min-width:70px;padding:12px 16px;min-height:48px}
.question-step-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}
.question-dock #cancel-question{display:block;width:fit-content;margin:18px auto 0;font-size:11px;padding:4px}
#question-period{border:0;margin:24px 0 0;padding:0;min-width:0}
#question-period legend{font:14px/1.8 var(--f-display);margin-bottom:12px}
.period-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.period-options label{margin:0;position:relative}
.period-options input{position:absolute;opacity:0;width:100%;height:100%;margin:0}
.period-options span{display:block;text-align:center;padding:12px 6px;border:1px solid var(--tarot-rule);background:#eeece590;font-size:14px!important}
.period-options input:checked+span{border:2px solid var(--tarot-secondary);padding:11px 5px;background:#cfc4b1b3;color:var(--tarot-ink)}
.period-options input:focus-visible+span{outline:2px solid var(--tarot-secondary);outline-offset:3px}
#period-error{font:13px/1.7 var(--f-body);color:var(--tarot-ink)}#period-error:empty,#question-error:empty{display:none}
.garden-breeze{position:fixed;inset:0;pointer-events:none;z-index:-1;overflow:hidden}
.garden-breeze i{position:absolute;bottom:-8%;left:12%;width:5px;height:10px;border-radius:90% 0 90% 0;background:#a4947460;animation:drifting-seed 17s linear infinite;opacity:0}
.garden-breeze i:nth-child(2){left:65%;animation-delay:-4s;animation-duration:21s}.garden-breeze i:nth-child(3){left:36%;animation-delay:-8s;width:4px;height:7px}.garden-breeze i:nth-child(4){left:82%;animation-delay:-13s;animation-duration:24s}.garden-breeze i:nth-child(5){left:52%;animation-delay:-6s;animation-duration:19s}
@keyframes question-garden-drift{from{transform:scale(1.05) translate(-.6%,.2%)}to{transform:scale(1.11) translate(.6%,-.4%)}}
@keyframes garden-daylight{from{opacity:.8}to{opacity:1}}
@keyframes drifting-seed{0%{transform:translate(0,0) rotate(0);opacity:0}15%{opacity:.6}80%{opacity:.4}100%{transform:translate(55px,-85vh) rotate(220deg);opacity:0}}
@keyframes question-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.question-entry{min-height:calc(100svh - 64px);min-height:calc(100dvh - 64px);padding:20px 22px max(22px,env(safe-area-inset-bottom))}.question-dock label{font-size:14px}.question-step-actions .btn{font-size:14px;padding:12px 18px}}
@media(prefers-reduced-motion:reduce){.questioning .garden-scene,.questioning .garden-light,.garden-breeze i,.question-dock form{animation:none!important}.garden-breeze{display:none}}

/* Clear type over the garden, without introducing another panel. */
.garden-nav{position:relative;isolation:isolate}
.garden-nav::before{content:'';position:absolute;inset:0 calc((min(100vw,1440px) - 100vw)/2) -28px;z-index:-1;background:linear-gradient(#eeece5f5 0%,#eeece5e8 58%,#eeece500 100%);pointer-events:none}
.garden-nav .wordmark{color:var(--tarot-ink);font-weight:400;font-size:24px;white-space:nowrap;text-shadow:none}
.garden-nav .wordmark span{color:var(--tarot-ink);font-size:16px;margin-left:6px}
.garden-nav .archive-link{color:var(--tarot-ink);font-size:12px;background:transparent}
.question-dock{isolation:isolate}
.question-dock::before{content:'';position:absolute;inset:-95px -24px -32px;z-index:-1;background:linear-gradient(transparent 0%,#eeece5df 28%,#eeece5f5 55%,#eeece5fa 100%);pointer-events:none}
.question-dock #question-form>label{font-size:19px;line-height:1.65;max-width:19em;font-weight:400;color:var(--tarot-ink);text-shadow:none}
.question-dock #question-details>label{font-size:17px;line-height:1.7;color:var(--tarot-ink);text-shadow:none}
.question-dock textarea{font-size:20px;color:var(--tarot-ink);background:#eeece53d;line-height:1.7;padding:12px 8px}
.question-dock textarea::placeholder{font-size:15px;color:var(--tarot-ink)}
#question-options{margin-top:24px}
#question-options input{display:block;width:100%;border:0;border-bottom:1px solid var(--tarot-secondary);background:#eeece566;color:var(--tarot-ink);font:16px/1.8 var(--f-display);padding:10px 8px;margin-bottom:18px;border-radius:0}
#question-options label{font-size:14px;margin-bottom:4px}
#spread-preview{font:13px/1.8 var(--f-display);color:var(--tarot-secondary);margin:18px 0 0}
.position-meaning{font:12px/1.8 var(--f-display);color:var(--tarot-secondary);margin:0 0 20px}
.cr-timing .is-advice{grid-column:1/-1;width:100%}
.cr-timing .is-advice .cr-card-holder{width:min(28%,128px)}
@media(max-width:600px){
 .garden-nav{padding:0 20px;gap:12px}.garden-nav .wordmark{font-size:22px;font-weight:600}.garden-nav .wordmark span{font-size:15px;margin-left:3px;font-weight:inherit}.garden-nav .archive-link{font-size:11px}
 .question-dock #question-form>label{max-width:15em;font-size:18px;line-height:1.7;margin-bottom:16px}
 .question-dock textarea{font-size:19px}
 .cr-timing .cr-slot-label{padding:3px 0}
 .cr-choice{aspect-ratio:10/17;margin-top:48px}.cr-choice .cr-caption .card-name-en{display:none}.cr-choice .cr-caption{line-height:1.5}.cr-choice .cr-slot{width:20%}.cr-choice .is-advice{width:17%}
 .cr-branch{max-width:44%;overflow-wrap:anywhere;font-size:11px}.cr-branch span{border-radius:0;font-size:10px}
}
.question-dock #question-form>label{max-width:none;word-break:keep-all}
.question-dock #question-form>label span{display:block;font:inherit}

/* Restore the translucent input; only the navigation has a strong paper wash. */
.garden-nav::before{background:linear-gradient(#eeece5 0%,#eeece5f5 58%,#eeece500 100%)}
.question-dock::before{content:none}
.questioning .garden-light{background:radial-gradient(ellipse at 50% 25%,#eeece522,transparent 65%)}
.question-dock textarea{background:#eeece578;font-size:16px;line-height:1.8;padding:12px}
.question-dock textarea::placeholder{font-size:13px;color:var(--tarot-secondary)}
.cr-choice{display:grid;grid-template-columns:minmax(0,1fr);gap:26px;aspect-ratio:auto;max-width:670px;width:100%;margin:0 auto;padding:16px 0}
.choice-card-group{min-width:0;width:100%}
.choice-group-title{font:400 15px/1.7 var(--f-display);text-align:center;margin:0 0 16px;overflow-wrap:anywhere}
.choice-card-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.cr-choice .cr-slot{position:relative;left:auto;top:auto;transform:none;width:100%;gap:7px}
.cr-choice .cr-card-holder{width:min(88%,115px)}
.cr-choice .cr-slot-label{font-size:11px}
.cr-choice .cr-caption .card-name-en{display:block}
.cr-choice .is-advice{width:100%;grid-column:1/-1}
.cr-choice .is-advice .cr-card-holder{width:min(28%,115px)}
.synthesis-group{min-width:0}
.synthesis-group>h3{font:400 19px/1.8 var(--f-display);margin:24px 0 18px;overflow-wrap:anywhere}
.synthesis-item h4{font:400 14px/1.8 var(--f-display);color:var(--tarot-secondary);margin:0 0 8px}
@media(min-width:900px){.cr-choice{max-width:960px;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}}

/* Soft white wash stays behind the text and fades into the garden. */
:root{--garden-text-wash:rgb(255 255 255 / 30%)}
.garden-nav::before{bottom:-64px;background:linear-gradient(to bottom,rgb(255 255 255 / 55%) 0%,rgb(255 255 255 / 55%) 35%,rgb(255 255 255 / 32%) 60%,rgb(255 255 255 / 12%) 80%,rgb(255 255 255 / 0%) 100%)}
.question-dock::before{content:'';position:absolute;inset:-64px -24px -32px;z-index:-1;background:linear-gradient(to bottom,rgb(255 255 255 / 0%) 0%,var(--garden-text-wash) 64px,var(--garden-text-wash) 100%);pointer-events:none}
/* Programmatically focused headings need no ring; interactive controls keep theirs. */
#reading-question:focus,#question-title:focus{outline:none}

/* A slow glow invites the first advice-card tap and stops once read. */
.awaiting-advice .cr-card-holder::after{content:'';position:absolute;inset:-5px;border-radius:8px;pointer-events:none;z-index:3;background:radial-gradient(ellipse at 50% 15%,#fff5cfbb,transparent 70%);border:1px solid #e3d0a3;animation:advice-invitation 2.8s ease-in-out infinite}
.advice-tap-hint{margin:8px 0 0;color:var(--tarot-ink);font:13px/1.8 var(--f-display);text-align:center;word-break:keep-all;max-width:220px}
@keyframes advice-invitation{0%,100%{opacity:.18}50%{opacity:.82}}
@media(prefers-reduced-motion:reduce){.awaiting-advice .cr-card-holder::after{animation:none;opacity:.35}}

#archive-grouping{border:0;padding:16px 0;color:var(--ink)}#archive-grouping label{display:block;margin:12px 0}#archive-resume-status{margin:20px;padding:18px;border:1px solid #a49a88;background:#eeece5}#save-status a{color:inherit;text-underline-offset:4px}

/* All paper edges share the graphite stroke from the card back. */
:is(.archive-link,.reading,.result,.cr-prev,.dialog-sheet,.question-paper,.question-paper textarea,.question-dock textarea,#question-options input,.period-options span,.result .actions,.recap-card,.saved-record,.saved-card,.result pre,.read-mark,.read-progress,.cr-card-holder){border-image-source:url('assets/pencil-border.svg');border-image-slice:8;border-image-width:2;border-image-outset:0;border-image-repeat:stretch}
.period-options input:checked+span{border-image-width:1.5}

.story-prose blockquote,.saved-card blockquote,#archive-resume-status{border-image:url('assets/pencil-border.svg') 8 / 2 / 0 stretch}

/* Keep each question step anchored in the garden's bright upper clearing. */
.question-entry{justify-content:flex-start;padding-top:clamp(48px,9svh,88px)}
.question-dock::before{content:none}
.question-dock #question-form>label,.question-dock #question-details>label,.question-review h2{box-sizing:border-box;min-height:64px;margin:0 0 16px;font:400 19px/1.7 var(--f-display);color:var(--tarot-ink);text-shadow:none}
.question-review dl{margin:0}
.question-review dt{margin:18px 0 6px;color:var(--tarot-ink);text-shadow:none}
.question-review dt:first-child{margin-top:0}
.question-review dd{padding:0;margin:0 0 22px;border:0;background:none;backdrop-filter:none;font:400 18px/1.9 var(--f-display);color:var(--tarot-ink);text-shadow:none}
.question-review .question-step-actions{margin-top:28px}
.question-review #review-edit{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;border:0;border-image:none;background:transparent;color:var(--tarot-ink);font:400 15px/1.8 var(--f-display);text-decoration:underline;text-underline-offset:5px;cursor:pointer}
.question-review #review-edit:focus-visible{outline:2px solid #88765c;outline-offset:4px}
@media(max-width:600px){.question-entry{padding-top:48px}.question-dock #question-form>label,.question-dock #question-details>label,.question-review h2{font-size:18px;min-height:62px}.question-review dd{font-size:17px}}

/* The optional details step has one next action; editing follows in review. */
.question-dock:has(#question-details:not([hidden]))>#cancel-question{display:none}
#question-details .question-step-actions{justify-content:flex-end}

.question-entry .question-exit{margin-top:auto;padding-top:48px;text-align:center}
.question-exit #cancel-order{display:inline-block;width:fit-content;margin:0;padding:10px 8px;font:400 12px/1.8 var(--f-display);color:var(--tarot-ink);background:transparent;border:0;border-image:none;box-shadow:none;text-underline-offset:4px}

/* Place the exit text on the bright path at the bottom of the garden. */
.question-entry{padding-bottom:max(6px,env(safe-area-inset-bottom))}

/* Review: hold the question above the same floating deck as the entrance. */
.question-review{text-align:center}
.question-review dl{text-align:center;max-width:560px;margin:0 auto}
.question-review dt{font-size:12px;letter-spacing:.08em;margin-top:16px}
.question-review dd{font-size:15px;line-height:1.9;margin-bottom:16px}
.question-review dd:first-of-type{font-size:clamp(21px,4vw,27px);line-height:1.7;margin:8px 0 20px;word-break:keep-all}
.question-review .review-deck{margin:16px auto 8px;pointer-events:none}
.question-review .question-step-actions{flex-direction:column;justify-content:center;gap:8px;margin-top:28px}
.question-review #review-draw{min-width:180px}
.question-review #review-edit{font-size:12px;min-height:36px;padding:4px 12px}
@media(prefers-reduced-motion:reduce){.question-review .welcome-card{animation:none}}

.question-review .review-deck{margin-top:48px}
.question-dock .context-count{margin:6px 0 0;text-align:right;font:400 11px/1.7 var(--f-display);color:var(--tarot-secondary)}

/* Lower only the two writing steps; keep the review and exit text anchored. */
.question-dock:has(#question-form:not([hidden])),
.question-dock:has(#question-details:not([hidden])){top:75px}

/* A quiet letter beneath the illustrated cards. */
.reading{
  border:0;border-radius:0;
  background-blend-mode:normal;
  background:rgb(246 235 219 / 88%);
  box-shadow:0 3px 16px #5143300a;
  padding:44px 36px;gap:20px;
}
.reading::before{display:none}
.reading>.eyebrow{display:none}
.reading h2{font-size:22px;margin:0 0 8px;line-height:1.7}
.reading #synthesis-body{font:400 15px/2 var(--f-display);color:var(--tarot-muted)}
.reading #synthesis-body>p{max-width:36em;margin:0 auto 24px;word-break:keep-all;overflow-wrap:anywhere}
.reading .btn{background:transparent;border:1px solid var(--tarot-rule);border-radius:0;padding:10px 22px;font-size:15px;box-shadow:none}
.reading .btn:hover{background:#d6c9b7}
@media(max-width:600px){
 .reading{padding:34px 24px}
 .reading h2{font-size:20px}
 .reading #synthesis-body{font-size:14px}
}

/* Garden palette: readable ink and matching fine rules. */
.reading .btn{background:#e7dac7;color:var(--tarot-ink)}
.tarot-elapsed,.tarot-checkout s,.tarot-checkout .tarot-checkout-back{color:var(--tarot-ink)}
.tarot-checkout{border-color:var(--tarot-rule);background-color:var(--tarot-paper)}
.tarot-prose td,.tarot-prose th,#final-summary td,#final-summary th{border-color:var(--tarot-rule)}

/* A single fine outline around the sky-colored letter. */
.reading{border:1px solid var(--tarot-rule);border-radius:0}

/* Checkout uses the same translucent sky paper as the reading. */
.tarot-checkout{
 background:rgb(246 235 219 / 88%);background-blend-mode:normal;
 border:1px solid var(--tarot-rule);border-radius:0;
 box-shadow:0 3px 16px #5143300a;
}
.tarot-checkout::backdrop{background:rgb(100 90 76 / 12%)}
.tarot-checkout .btn.primary{
 background:#e7dac7;border:1px solid var(--tarot-rule);box-shadow:none;
 color:var(--tarot-ink);padding:10px 22px;font-size:15px;
}
.tarot-checkout .btn.primary:hover{background:#d6c9b7}
.tarot-checkout .tarot-plan:has(input:checked){background:#e7dac766;border-color:transparent}
.tarot-checkout .tarot-plan input{border-color:var(--tarot-rule);background:#f6ebdb}
.tarot-checkout .tarot-plan input:checked::after{border-color:var(--tarot-rule)}
body:has(.tarot-checkout[open]) .entrance{visibility:hidden}
/* Checkout floats on the garden without an outer outline. */
.tarot-checkout{border:0}

/* From the garden into a continuous, full-width reading page. */
.reading-page{
 --tarot-ink:#51483d;--tarot-muted:#51483d;--tarot-secondary:#51483d;
 position:relative;isolation:isolate;width:100%;margin-top:180px;
 padding:30px 0 0;min-height:65svh;color:#51483d;
 display:flex;flex-direction:column;
}
.reading-page:has(#reading[hidden]):has(#result[hidden]){display:none}
.reading-page::before{
 content:'';position:absolute;z-index:-1;pointer-events:none;
 top:-200px;bottom:0;left:calc(50% - 50vw);width:100vw;
 background:linear-gradient(to bottom, rgb(244 237 223 / 0),rgb(244 237 223 / 45%) 70px,#f4eddf 200px);
}
.experience:has(.reading-page){padding-bottom:0}
.reading-page .reading,.reading-page .result{
 background:none;border:0;border-radius:0;box-shadow:none;
 max-width:700px;padding:24px 24px 54px;color:#51483d;
}
.reading-page .reading::before,.reading-page .result::before{display:none}
.reading-page .eyebrow{display:block;color:#51483d;font:400 10px/1.8 var(--f-body);letter-spacing:.14em}
.reading-page h2{font-size:24px;line-height:1.7;margin:0 0 26px;color:#51483d}
.reading-page h2::before{content:'◇';display:block;margin:10px auto 24px;width:160px;font:16px/1 var(--f-display);background:linear-gradient(#bdb09c,#bdb09c) left center/65px 1px no-repeat,linear-gradient(#bdb09c,#bdb09c) right center/65px 1px no-repeat;color:#8c7f6b}
.reading-page #synthesis-body,.reading-page #final-summary{color:#51483d;font:400 16px/2.1 var(--f-display)}
.reading-page #final-summary{text-align:left}
.reading-page .btn{border-color:#51483d;background:transparent;color:#51483d}
.reading-page footer{width:min(100%,700px);margin:auto auto 0;padding:25px 12px 40px;border-top:1px solid #bdb09c;border-radius:0;background:none;color:#51483d;font-size:11px}
@media(max-width:600px){
 .reading-page{margin-top:150px;min-height:60svh}
 .reading-page .reading,.reading-page .result{padding:20px 8px 44px}
 .reading-page h2{font-size:22px}
 .reading-page #synthesis-body,.reading-page #final-summary{font-size:15px}
}

/* Entry and checkout follow the supplied ivory-and-ink reference. */
/* Leave only the button over the garden beneath the floating cards. */
.entrance .welcome-deck{margin-bottom:0}
.entrance>.enter-button{position:relative;width:min(300px,100%);min-width:0;height:60px;margin-top:36px;padding:0 24px;background:#51483d;border:0;border-radius:0;color:#f4eddf;font:400 16px/1.6 var(--f-display);box-shadow:none;flex-shrink:0}
.entrance>.enter-button::before{content:'';position:absolute;inset:5px;border:1px solid #cbbfaa;pointer-events:none}
.entrance>.enter-button:hover{background:#645a4c;color:#f4eddf}
.tarot-checkout{width:min(740px,calc(100vw - 32px));padding:32px;background:#f4eddf;color:#51483d;border:0;border-radius:0;box-shadow:none;font-family:var(--f-body)}
.checkout-intro{text-align:center;padding-bottom:22px;margin-bottom:20px;border-bottom:1px solid #bdb09c}
.checkout-kicker{margin:0 0 6px;color:#8c8070;font:10px/1.6 var(--f-body);letter-spacing:.07em}
.tarot-checkout h2{font:500 20px/1.7 var(--f-body);letter-spacing:0;margin:0 0 5px;color:#51483d}
.checkout-description{margin:0;color:#8c8070;font-size:13px}
.tarot-checkout form{max-width:none}
.tarot-checkout .tarot-plan{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:12px;align-items:start;padding:16px 14px;margin:0 0 12px;border:1px solid #d4c7b1;background:transparent;font:15px/1.6 var(--f-body);color:#51483d}
.tarot-checkout .tarot-plan:has(input:checked){background:#e9dfcc;border-color:#ac9c82}
.tarot-checkout .tarot-plan input{margin-top:3px;border-color:#756958;background:#f4eddf}
.plan-copy{display:flex;flex-direction:column;gap:4px}
.plan-description{font-size:11px;line-height:1.6;color:#8c8070}
.plan-price{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;gap:5px;text-align:right;font-variant-numeric:tabular-nums}
.tarot-checkout .plan-price strong{font-size:16px;font-weight:500}
.tarot-checkout .plan-price s,.plan-price-arrow{font-size:11px;color:#8c8070}
.tarot-checkout .btn.primary{width:100%;min-width:0;margin:20px 0 4px;padding:14px 16px;background:#51483d;color:#f4eddf;border:0;border-radius:0;font:400 16px/1.6 var(--f-body)}
.tarot-checkout .btn.primary:hover{background:#645a4c;color:#f4eddf}
.tarot-checkout .tarot-checkout-back{font:12px/1.8 var(--f-body);color:#8c8070;padding:4px 12px}
@media(max-width:480px){
 .tarot-checkout{padding:26px 20px 18px}
 .tarot-checkout h2{font-size:18px}
 .tarot-checkout .tarot-plan{padding:13px 10px;gap:9px;font-size:14px}
 .plan-price{max-width:100px;gap:2px 4px}
 .tarot-checkout .plan-price strong{font-size:15px}
}

/* A quiet vertical question form over the garden sky. */
.question-dock:has(#question-form:not([hidden])),
.question-dock:has(#question-details:not([hidden])){top:50px;width:min(100%,520px)}
.question-dock #question-form>label,.question-dock #question-details>label{text-align:center;color:#51483d;margin-bottom:24px}
.garden-input-row{display:flex;flex-direction:column;align-items:center;gap:24px}
.question-dock textarea{height:120px;min-height:120px;max-height:none;resize:none;border:1px solid #a89c89;border-radius:0;background:rgba(251,247,239,.75);color:#51483d;padding:16px 18px;font:400 17px/1.8 var(--f-display);backdrop-filter:none;overflow-y:auto}
.question-dock textarea::placeholder{font-size:15px;color:#8c8070}
.question-dock .garden-input-row>.btn,#question-details #begin-reading{
 position:relative;width:min(230px,100%);height:60px;min-width:0;margin:0;padding:0 18px;
 background:#51483d;border:0;border-radius:0;box-shadow:none;color:#f4eddf;font:400 16px/1.6 var(--f-display);
}
.question-dock .garden-input-row>.btn::before,#question-details #begin-reading::before{content:'';position:absolute;inset:5px;border:1px solid #cbbfaa;pointer-events:none}
.question-dock .garden-input-row>.btn:hover,#question-details #begin-reading:hover{background:#645a4c;color:#f4eddf}
#question-details .question-step-actions{justify-content:center;margin-top:24px}
.question-dock #cancel-question{font:400 13px/1.8 var(--f-body);color:#51483d;padding:8px 16px;min-height:40px;margin:12px auto 0;text-decoration:underline;text-underline-offset:4px;border:0}
/* Let the garden fade gently behind the secondary exit link. */
.question-entry{padding-bottom:0}
.question-entry .question-exit{position:relative;isolation:isolate;padding-top:90px;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.question-entry .question-exit::before{
 content:'';position:absolute;z-index:-1;pointer-events:none;
 bottom:0;left:calc(50% - 50vw);width:100vw;height:calc(110px + env(safe-area-inset-bottom,0px));
 background:linear-gradient(to bottom,rgba(244,237,223,0),rgba(244,237,223,.45) 55%,rgba(244,237,223,.92));
}
.question-exit #cancel-order{background:none;color:#665c50;padding:10px 20px;font:400 14px/1.8 var(--f-body);min-height:44px;border:0;border-radius:0;box-shadow:none;text-decoration:none;text-underline-offset:4px}
.question-exit #cancel-order:hover,.question-exit #cancel-order:focus-visible{background:none;color:#665c50;text-decoration:underline}

/* Final ink and fine rules, scoped to the first question screen. */
#question-form #question-input{background:rgba(255,252,245,.78);border:1px solid #b8ad9b;color:#51483d;caret-color:#51483d;border-radius:0;box-shadow:none;resize:none}
#question-form #question-input::placeholder{color:#877b6a;opacity:1}
#question-form .garden-input-row>.btn{box-sizing:border-box;background:#4d473e;color:#f6efe2;border:1px solid #4d473e;box-shadow:none}
#question-form .garden-input-row>.btn::before{border:1px solid #b9ac98}
#question-form .garden-input-row>.btn:hover,#question-form .garden-input-row>.btn:focus-visible{background:#4d473e;color:#f6efe2;border-color:#b9ac98;box-shadow:none}
#question-form .garden-input-row>.btn:focus-visible{outline:1px solid #877b6a;outline-offset:3px}
#question-form .garden-input-row>.btn:disabled{background:#4d473e;color:#f6efe2;border-color:#4d473e;opacity:.7;cursor:default;box-shadow:none}
.question-entry:has(#question-form:not([hidden])) .question-exit::before{background:linear-gradient(to bottom,rgba(244,237,223,0),rgba(244,237,223,.6) 55%,#f4eddf)}
.question-entry:has(#question-form:not([hidden])) #cancel-order{font-size:13px;font-weight:400;color:#766d61;text-decoration:none;text-decoration-thickness:1px}
.question-entry:has(#question-form:not([hidden])) #cancel-order:hover{text-decoration:underline}
.question-entry:has(#question-form:not([hidden])) #cancel-order:focus-visible{outline:2px solid #766d61;outline-offset:3px}

/* Question review: same quiet book-title button, with a secondary notice. */
.question-review #review-draw{position:relative;box-sizing:border-box;width:min(270px,100%);height:62px;min-width:0;padding:0 18px;background:#4d473e;color:#f6efe2;border:1px solid #4d473e;border-radius:0;box-shadow:none;font:400 16px/1.6 var(--f-display)}
.question-review #review-draw::before{content:'';position:absolute;inset:5px;border:1px solid #b9ac98;pointer-events:none}
.question-review #review-draw:hover,.question-review #review-draw:focus-visible{background:#4d473e;color:#f6efe2;border-color:#b9ac98}
.question-review #review-draw:focus-visible{outline:1px solid #877b6a;outline-offset:3px}
.question-review .card-disclosure-notice{position:relative;isolation:isolate;width:100%;max-width:340px;margin:8px auto 18px;color:#51483d;font:400 14px/1.6 var(--f-body);text-align:center;word-break:keep-all;overflow-wrap:anywhere;text-shadow:none;border:0;box-shadow:none;background:none}
.question-review .card-disclosure-notice::before{content:'';position:absolute;z-index:-1;pointer-events:none;inset:-24px -18px;background:radial-gradient(ellipse at center,rgba(244,237,223,.98) 0%,rgba(244,237,223,.94) 45%,rgba(244,237,223,.55) 68%,rgba(244,237,223,0) 100%);border:0;box-shadow:none}
.question-review #review-edit{background:none;border:0;box-shadow:none;color:#51483d;font:400 13px/1.8 var(--f-body);min-height:44px;text-decoration:underline;text-underline-offset:4px}

/* A reading sample between the plans and the checkout action. */
.tarot-checkout .tarot-sample-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;min-height:76px;margin:18px 0 0;padding:14px 18px;background:#eae1d2;border:1px solid #d4c7b1;border-radius:0;box-shadow:none;color:#51483d;font:400 15px/1.6 var(--f-body);cursor:pointer}
.tarot-checkout .tarot-sample-link small{font:400 12px/1.6 var(--f-body);color:#877b6a}
.tarot-checkout .tarot-sample-link:hover{background:#e5dac8}
.tarot-checkout .tarot-sample-link:focus-visible{outline:2px solid #766d61;outline-offset:3px}
/* Preview-only typography and layout tokens. */
body.tarot-sample-active{background:#f5eddf!important;color:#4d473e;overflow:visible!important;min-height:100vh}
body.tarot-sample-active>:not(.tarot-sample-page),body.tarot-sample-active::before,body.tarot-sample-active::after{display:none!important}
.tarot-sample-page[hidden],.tarot-sample-page [hidden]{display:none!important}
main.tarot-sample-page{--sample-body:17px;--sample-title:36px;--sample-section:26px;--sample-card-title:21px;--sample-label:14px;--sample-note:13px;--sample-rule:#cdbfae;--sample-muted:#766d61;box-sizing:border-box;display:block;position:relative;width:100%;max-width:860px;min-height:100vh;margin:0 auto;padding:20px 32px calc(48px + env(safe-area-inset-bottom,0px));background:none;color:#4d473e;overflow:visible;border:0;box-shadow:none;font:400 var(--sample-body)/1.85 var(--f-display)}
.tarot-sample-page .sample-nav{display:flex;justify-content:space-between;align-items:center;font:400 var(--sample-note)/1.65 var(--f-body);color:var(--sample-muted)}
.tarot-sample-page .sample-close{min-height:44px;padding:8px 12px;background:none;border:0;box-shadow:none;color:var(--sample-muted);font:inherit;cursor:pointer}
.tarot-sample-page .sample-close:hover{text-decoration:underline}
.tarot-sample-page button:focus-visible,.tarot-sample-page [role=tabpanel]:focus-visible{outline:2px solid #877b6a;outline-offset:4px}
.tarot-sample-page h1:focus{outline:none}
.tarot-sample-page .sample-header{max-width:660px;text-align:center;margin:20px auto 32px;padding-bottom:28px;border-bottom:1px solid var(--sample-rule)}
.tarot-sample-page .sample-kicker,.tarot-sample-page .sample-chapter{font:400 var(--sample-note)/1.65 var(--f-body);color:var(--sample-muted)}
.tarot-sample-page .sample-kicker{letter-spacing:.08em;font-size:11px}
.tarot-sample-page h1{font:400 var(--sample-title)/1.5 var(--f-display);margin:12px 0 16px}
.tarot-sample-page article{max-width:660px;margin:0 auto;text-align:left}
.tarot-sample-page h2{font:400 var(--sample-section)/1.6 var(--f-display);margin:0 0 24px}
.tarot-sample-page h3{font:700 var(--sample-card-title)/1.65 var(--f-display);margin:0 0 20px}
.tarot-sample-page p{margin:0 0 22px;word-break:keep-all;overflow-wrap:anywhere}
.tarot-sample-page .sample-service-note,.tarot-sample-page .sample-note{font:400 var(--sample-note)/1.65 var(--f-body);color:var(--sample-muted)}
.tarot-sample-page .sample-header .sample-service-note{margin:0}
.tarot-sample-page .sample-question-block{padding:0 0 28px;margin:0;border:0;border-bottom:1px solid var(--sample-rule)}
.tarot-sample-page .sample-question-block h2,.tarot-sample-page .sample-question-block h3,.tarot-sample-page .sample-card-position{font:400 var(--sample-label)/1.65 var(--f-body);color:var(--sample-muted);margin:0 0 12px}
.tarot-sample-page .sample-question-text{font:400 var(--sample-card-title)/1.85 var(--f-display);margin:0 0 24px}
.tarot-sample-page .sample-question-block>p:last-child{margin:0}
.tarot-sample-page .sample-cards{padding:28px 0;margin:0;border:0;border-bottom:1px solid var(--sample-rule)}
.tarot-sample-page .sample-card-row{display:flex;justify-content:center;gap:20px;margin:0}
.tarot-sample-page figure{flex:1;min-width:0;max-width:180px;margin:0;text-align:center}
.tarot-sample-page figure img{display:block;width:100%;height:auto}
.tarot-sample-page figcaption{font:400 var(--sample-label)/1.65 var(--f-body);margin-top:16px;word-break:keep-all;color:var(--sample-muted)}
.tarot-sample-page .sample-card-name,.tarot-sample-page .sample-card-nickname{display:block}
.tarot-sample-page .sample-card-name{margin-top:4px;color:#4d473e}
.tarot-sample-page .sample-reading-section{padding:32px 0 0;margin:32px 0 0;border-top:1px solid var(--sample-rule);text-align:left}
.tarot-sample-page .sample-reading-first{margin:0;border:0}
.tarot-sample-page .sample-reading-section .sample-chapter{margin:0 0 12px}
.tarot-sample-page .sample-reading-section p{text-align:left}
.tarot-sample-page .sample-reading-section .sample-card-position{margin-top:32px;margin-bottom:8px}
.tarot-sample-page .sample-reading-section h2+.sample-card-position{margin-top:0}
.tarot-sample-page .sample-reading-section>:last-child{margin-bottom:0}
.tarot-sample-page .sample-advice-card{display:block;width:160px;height:auto;margin:24px auto}
.tarot-sample-page ul{padding-left:1.3em}
.tarot-sample-page li{margin:16px 0}
.tarot-sample-page .sample-closing{border-bottom:0;padding-bottom:0}
.tarot-sample-page .sample-closing p>strong:first-child{display:inline-block;font:400 var(--sample-label)/1.65 var(--f-body);color:var(--sample-muted);margin-bottom:8px}
.tarot-sample-page .sample-closing p>strong+br+strong{font-size:var(--sample-card-title);line-height:1.85}
.tarot-sample-page .sample-closing ul{list-style:none;padding:0;margin-top:24px}
.tarot-sample-page .sample-spreads{margin:36px 0 0;padding:0;border:0}
.tarot-sample-page .sample-spreads>h2{font:400 var(--sample-label)/1.65 var(--f-body);margin-bottom:20px}
.tarot-sample-page .sample-tabs{display:flex;border-bottom:1px solid var(--sample-rule);margin-bottom:0}
.tarot-sample-page .sample-tabs button{flex:1;min-height:44px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;box-shadow:none;font:400 var(--sample-label)/1.65 var(--f-body);color:var(--sample-muted);cursor:pointer}
.tarot-sample-page .sample-tabs button[aria-selected=true]{border-bottom-color:#4d473e;color:#4d473e;font-weight:600}
.tarot-sample-page .sample-tab-panel h3,.tarot-sample-page .sample-tab-panel h4{font:400 var(--sample-label)/1.65 var(--f-body);margin:0 0 12px}
.tarot-sample-page .sample-tab-panel h4{margin-top:28px}
.tarot-sample-page .sample-mini-row{display:flex;align-items:center;gap:10px;margin:16px auto;max-width:420px;justify-content:center}
.tarot-sample-page .sample-mini-row figure{flex:0 1 64px;min-width:0}
.tarot-sample-page .sample-mini-row img{width:100%;aspect-ratio:2/3;object-fit:contain}
.tarot-sample-page .sample-mini-row figcaption{font:400 var(--sample-note)/1.65 var(--f-body);margin-top:6px;white-space:nowrap}
.tarot-sample-page .sample-plus{font:400 var(--sample-label)/1 var(--f-body);color:var(--sample-muted)}
.tarot-sample-page .sample-note{margin:0;padding:24px 0 0;border:0;border-top:1px solid var(--sample-rule);text-align:center}
.tarot-sample-page .sample-note p{margin:0}
.tarot-sample-page .sample-back{display:block;position:relative;width:min(260px,100%);min-height:56px;margin:28px auto 0;padding:14px 20px;background:#4d473e;color:#f6efe2;border:1px solid #4d473e;border-radius:0;box-shadow:none;font:16px/1.65 var(--f-display);cursor:pointer}
.tarot-sample-page .sample-back::before{content:'';position:absolute;inset:5px;border:1px solid #b9ac98;pointer-events:none}
@media(max-width:600px){main.tarot-sample-page{--sample-body:16px;--sample-title:32px;--sample-section:24px;--sample-card-title:20px;--sample-label:13px;padding:16px 24px calc(40px + env(safe-area-inset-bottom,0px))}.tarot-sample-page .sample-card-row{gap:10px}.tarot-sample-page .sample-mini-row{gap:8px}}

/* Keep the advice beside the centre of two-row spreads. */
.tarot-sample-page .sample-double-spread{display:grid;grid-template-columns:minmax(0,212px) 12px minmax(0,64px);align-items:center;gap:10px;width:100%;max-width:308px;margin:16px auto}
.tarot-sample-page .sample-main-rows{display:grid;gap:16px;min-width:0}
.tarot-sample-page .sample-main-rows .sample-mini-row{margin:0;gap:10px}
.tarot-sample-page .sample-main-rows figure{flex:1 1 0}
.tarot-sample-page .sample-side-advice{min-width:0}
.tarot-sample-page .sample-side-advice figure{width:100%;max-width:64px;margin:0}
.tarot-sample-page .sample-side-advice img{width:100%;height:auto;aspect-ratio:2/3;object-fit:contain}
.tarot-sample-page .sample-side-advice figcaption{font:400 var(--sample-note)/1.65 var(--f-body);margin-top:6px}
.tarot-sample-page .sample-double-spread>.sample-plus{text-align:center}
@media(max-width:600px){.tarot-sample-page .sample-double-spread{grid-template-columns:minmax(0,208px) 12px minmax(0,64px);gap:8px;max-width:300px}.tarot-sample-page .sample-main-rows .sample-mini-row{gap:8px}}

/* Quiet centred heading for the spread preview. */
.tarot-sample-page .sample-spreads-header{text-align:center;margin:0 0 36px;font-family:var(--f-body)}
.tarot-sample-page .sample-diamond-divider{display:flex;align-items:center;gap:5px;width:100%;margin:0 auto 36px;color:#8c8070}
.tarot-sample-page .sample-diamond-divider::before,.tarot-sample-page .sample-diamond-divider::after{content:'';flex:1;height:1px;background:var(--sample-rule)}
.tarot-sample-page .sample-diamond-divider span{font:400 16px/1 var(--f-body)}
.tarot-sample-page .sample-spreads-header h2{margin:0 0 10px;font:400 var(--sample-section)/1.6 var(--f-display);color:#4d473e;text-align:center}
.tarot-sample-page .sample-spreads-header p{margin:0;font:400 var(--sample-note)/1.65 var(--f-body);color:var(--sample-muted);text-align:center}

/* Balance the card artwork, allowing for the caption below it. */
.tarot-sample-page .sample-tab-panel{padding:76px 0 56px}
.tarot-sample-page .sample-tab-panel>.sample-mini-row,.tarot-sample-page .sample-tab-panel>.sample-double-spread{margin:0 auto}
.tarot-sample-page .sample-tab-panel h4{margin:40px 0 20px;text-align:center}
.tarot-sample-page .sample-tab-panel h4:first-child{margin-top:0}

/* Acknowledge the disclosure before entering the card draw. */
.question-review #review-draw:disabled{background:#e9dfca;color:#f6efe2;border-color:#4d473e;opacity:1;box-shadow:none;cursor:default}
.question-review .card-disclosure-confirm{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;margin:-10px 0 10px;color:#51483d;font:400 14px/1.6 var(--f-body);cursor:pointer}
.question-review #review-confirm{appearance:none;flex:none;display:grid;place-content:center;width:18px;height:18px;margin:0;border:1px solid #877b6a;border-radius:0;background:#f4eddf;cursor:pointer}
.question-review #review-confirm:checked{background:#4d473e}
.question-review #review-confirm:checked::after{content:'';width:8px;height:4px;border-left:2px solid #f6efe2;border-bottom:2px solid #f6efe2;transform:rotate(-45deg) translateY(-1px)}
.question-review #review-confirm:focus-visible{outline:2px solid #877b6a;outline-offset:4px}

/* Keep the soft paper wash around both disclosure lines and acknowledgement. */
.question-review .card-disclosure-group{position:relative;isolation:isolate;box-sizing:border-box;width:100%;max-width:376px;margin:8px auto 10px;padding:12px 18px 16px}
.question-review .card-disclosure-group::before{content:'';position:absolute;inset:0 -8px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at center,rgba(244,237,223,.98) 0%,rgba(244,237,223,.94) 48%,rgba(244,237,223,.55) 72%,rgba(244,237,223,0) 100%)}
.question-review .card-disclosure-notice{margin:0 auto 8px}
.question-review .card-disclosure-notice::before{content:none}
.question-review .card-disclosure-confirm{margin:0;font:400 14px/1.6 var(--f-body)}
.question-review .card-disclosure-confirm span{font:inherit;color:inherit}

/* Disclosure acknowledgement belongs to checkout, before payment. */
.tarot-checkout .checkout-disclosure{margin:20px 0 14px;color:#51483d;font:400 14px/1.6 var(--f-body);text-align:center}
.tarot-checkout .checkout-disclosure p{font:inherit;color:inherit;margin:0 0 8px}
.tarot-checkout .checkout-disclosure label{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;font:inherit;cursor:pointer}
.tarot-checkout .checkout-disclosure input{appearance:none;display:grid;place-content:center;flex:none;width:18px;height:18px;margin:0;border:1px solid #877b6a;border-radius:0;background:#f4eddf}
.tarot-checkout .checkout-disclosure input:checked{background:#4d473e}
.tarot-checkout .checkout-disclosure input:checked::after{content:'';width:8px;height:4px;border-left:2px solid #f6efe2;border-bottom:2px solid #f6efe2;transform:rotate(-45deg) translateY(-1px)}
.tarot-checkout .checkout-disclosure input:focus-visible{outline:2px solid #877b6a;outline-offset:4px}

/* Compact purchase notice with inline, keyboard-accessible refund details. */
.tarot-checkout .checkout-disclosure{text-align:left;font:400 13px/1.65 var(--f-body)}
.tarot-checkout .checkout-disclosure h3{margin:0 0 12px;font:500 16px/1.65 var(--f-body);color:#51483d}
.tarot-checkout .checkout-disclosure p{margin:0;font:inherit;line-height:1.65}
.tarot-checkout .checkout-refund-rules{margin:12px 0 0;padding:0 0 16px;border:0;border-bottom:1px solid #cdbfae}
.tarot-checkout .checkout-refund-rules summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;list-style:none}
.tarot-checkout .checkout-refund-rules summary::-webkit-details-marker{display:none}
.tarot-checkout .checkout-refund-rules summary::after{content:'';width:7px;height:7px;flex:none;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin:0 4px 4px}
.tarot-checkout .checkout-refund-rules[open] summary::after{transform:rotate(225deg);margin-bottom:0}
.tarot-checkout .checkout-refund-rules summary:focus-visible{outline:2px solid #877b6a;outline-offset:3px}
.tarot-checkout .checkout-refund-body{padding:8px 0 0}
.tarot-checkout .checkout-disclosure label{justify-content:flex-start;margin:8px 0 0;font:inherit}

.tarot-checkout .checkout-refund-rules summary:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.tarot-checkout .checkout-refund-body section+section{margin-top:20px}
.tarot-checkout .checkout-refund-body h4{margin:0 0 8px;font:500 14px/1.65 var(--f-body);color:#51483d}
.tarot-checkout .checkout-refund-body ul{margin:8px 0;padding-left:20px;list-style:disc}
.tarot-checkout .checkout-refund-body li{font:inherit;line-height:1.65}

/* Quiet checkout title and text-only sample entry; retain product box layout. */
.tarot-checkout h2{font-family:var(--f-display);font-weight:400}
.tarot-checkout .tarot-plan:has(input:checked){background:#ece2d2}
.tarot-checkout .tarot-sample-link{flex-direction:row;gap:12px;width:fit-content;min-height:44px;margin:18px auto 0;padding:0 8px;background:none;border:0;border-radius:0;box-shadow:none;color:#51483d;font:400 13px/1.65 var(--f-body)}
.tarot-checkout .tarot-sample-link:hover{background:none;color:#51483d}
.tarot-checkout .tarot-sample-link-title{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.tarot-checkout .tarot-sample-link-arrow{font-size:18px;text-decoration:none}
.tarot-checkout .checkout-disclosure{border-top:1px solid #cabbab;padding-top:20px}

/* The card-draw confirmation screen has no cancellation link. */
.question-entry:has(#question-review:not([hidden])) #cancel-order{display:none}

.experience-header .reading-question-label{margin:0 0 12px;font:400 13px/1.65 var(--f-body);color:var(--tarot-secondary);text-align:center}

#intent-confirmation{margin:24px 0;text-align:left;color:var(--tarot-ink)}
#intent-prompt{font:400 17px/1.7 var(--f-display);margin:0 0 12px}
#intent-restated{font:13px/1.65 var(--f-body);margin:0 0 16px;color:var(--tarot-secondary)}
#intent-answer{box-sizing:border-box;width:100%;min-height:110px;resize:none;border:1px solid #B8AD9B;border-radius:0;background:rgba(255,252,245,.78);color:#51483D;padding:14px;font:16px/1.85 var(--f-display)}

/* Supplemental question step: compact composition over the unchanged garden. */
.question-dock #question-details>label[for="context-input"]{min-height:0;margin:0 0 6px;font:400 19px/1.6 var(--f-display)}
#question-details .context-help{margin:0 0 18px;text-align:center;font:400 12px/1.6 var(--f-body);color:#766d61}
#question-details #context-input{height:110px;min-height:110px;background:rgba(255,252,245,.78);border:1px solid #b8ad9b;border-image:none;box-shadow:none}
#question-details .context-count{margin:4px 0 0;font:11px/1.5 var(--f-body)}
#question-details #question-period{margin-top:18px}
#question-details #question-period legend{position:relative;padding:0 0 0 28px;margin:0;font:400 17px/1.5 var(--f-display);color:#51483d}
#question-details #question-period legend svg{position:absolute;left:0;top:2px;width:20px;height:20px}
#question-details .period-help{margin:0 0 12px;padding-left:28px;font:12px/1.6 var(--f-body);color:#766d61}
#question-details .period-options{gap:10px}
#question-details .period-options label{cursor:pointer}
#question-details .period-options span{box-sizing:border-box;min-height:76px;padding:12px 4px;border:1px solid #b8ad9b;border-image:none;border-radius:3px;background:rgba(255,252,245,.58);font:400 18px/1.5 var(--f-display)!important;color:#51483d}
#question-details .period-options small{display:inline-block;font:11px/1.6 var(--f-body);white-space:nowrap}
#question-details .period-options input:checked+span{padding:12px 4px;border:1px solid #796956;background:rgba(207,196,177,.70)}
#question-details .period-options input:checked+span::after{content:'✓';position:absolute;right:-1px;top:-5px;width:18px;height:18px;border-radius:50%;background:#665543;color:#f6efe2;font:13px/18px var(--f-body)}
#question-details #question-notice:empty{display:none}
#question-details #question-notice:not(:empty){margin:16px 0 0;padding:14px 18px;background:rgba(236,226,210,.70);border:1px solid rgba(184,173,155,.75);border-radius:3px;color:#51483d;text-align:left}
#question-details #question-notice h3{margin:0 0 6px;font:400 15px/1.6 var(--f-display)}
#question-details #question-notice h3::before{content:'ⓘ';margin-right:8px}
#question-details #question-notice p{margin:6px 0;font:400 13px/1.65 var(--f-body)}
#question-details .period-edit-link{display:block;min-height:36px;padding:4px 0;background:none;border:0;box-shadow:none;color:#665c50;font:13px/1.6 var(--f-body);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#question-details .period-edit-link::after{content:' ›';display:inline-block;margin-left:6px}
#question-details .period-edit-link:focus-visible{outline:1px solid #665c50;outline-offset:3px}
#question-details #period-error:empty{display:none}
#question-details .question-step-actions{margin-top:22px}
@media(max-width:600px){
 .question-dock #question-details>label[for="context-input"]{font-size:16px}
 #question-details #context-input{height:90px;min-height:90px;font-size:15px;padding:12px}
 #question-details #question-period legend{font-size:16px}
 #question-details .period-options{gap:8px}
 #question-details .period-options span{min-height:70px;font-size:17px!important}
 #question-details .period-options small{font-size:10px;white-space:normal}
 #question-details #question-notice:not(:empty){padding:12px 14px}
}
#question-details .period-options span{height:100%}
#question-details .period-options span>br{display:none}
#question-details .period-options small{display:block;margin-top:3px}
@media(max-width:600px){.question-dock:has(#question-details:not([hidden])){top:10px}}

#question-details .period-required{font:400 13px/1.5 var(--f-body);color:#766d61}
#question-details #begin-reading:disabled{background:#e9dfca;color:#877b6a;border-color:#b8ad9b;box-shadow:none;cursor:not-allowed}
#question-details #begin-reading:disabled::before{border-color:#b9ac98}
