.reading-animation{width:min(100%,500px);aspect-ratio:1.45;margin:24px auto 20px;position:relative;mix-blend-mode:multiply;overflow:hidden;mask-image:radial-gradient(ellipse at center,#000 55%,transparent 75%)}
.reading-animation-canvas{position:absolute;width:125%;aspect-ratio:1;left:-12.5%;top:-54%}
.reading-pose{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;opacity:0;animation:reading-cycle 14s step-end infinite}
.reading-pose-reading{opacity:1;animation-name:reading-open}
.reading-pose-drowsy{animation-name:reading-drowsy}
.reading-pose-sleeping{animation-name:reading-sleep}
.reading-pose-awake{animation-name:reading-wake}

@keyframes reading-open{0%,56%{opacity:1}57%,95%{opacity:0}96%,100%{opacity:1}}
@keyframes reading-drowsy{0%,56%{opacity:0}57%,65%{opacity:1}66%,100%{opacity:0}}
@keyframes reading-sleep{0%,65%{opacity:0}66%,81%{opacity:1}82%,100%{opacity:0}}
@keyframes reading-wake{0%,81%{opacity:0}82%,95%{opacity:1}96%,100%{opacity:0}}

@media(prefers-reduced-motion:reduce){.reading-pose{animation:none;opacity:0}.reading-pose-reading{opacity:1}}

.reading-animation{mix-blend-mode:normal}
.tarot-wait{text-align:center;max-width:640px;margin:0 auto;padding:16px;line-height:1.85}.tarot-stage{font-weight:700}.tarot-elapsed{font-variant-numeric:tabular-nums;color:#746b5d}.tarot-prose,#final-summary{line-height:1.95;overflow-wrap:anywhere}.tarot-prose p,#final-summary p{white-space:pre-line}.tarot-table-wrap{overflow-x:auto}.tarot-prose table,#final-summary table{border-collapse:collapse;width:100%}.tarot-prose td,.tarot-prose th,#final-summary td,#final-summary th{padding:10px;border:1px solid #b6aa95}.tarot-result-page{max-width:840px;margin:30px auto;padding:24px;background:#f5efe3;color:#35382e}.tarot-result-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:16px;margin:32px 0}.tarot-result-cards img{width:100%;border-radius:10px}.tarot-result-cards span{display:block}.tarot-result-cards summary{cursor:pointer}.restored-card{display:inline-flex;flex-direction:column;width:120px;background:transparent;border:0;margin:8px;gap:6px}.restored-card img{width:100%;border-radius:8px}.actions{display:flex;gap:12px;flex-wrap:wrap}.tarot-result-page .btn{display:inline-block;padding:12px 18px;border:1px solid #65745e;background:#eef0e5;color:#35452f;border-radius:8px;font:inherit;text-decoration:none;cursor:pointer}.tarot-result-page button:disabled{opacity:.6}.tarot-prose h3,#final-summary h3{margin-top:32px}.tarot-prose li{margin:8px 0}#related-wrap{margin:16px 0}#edit-before-draw{margin-bottom:20px}#question-notice{line-height:1.8}

/* A letter from the garden: square paper edges and quiet brown selection marks. */
.tarot-checkout{box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #9a8b73;border-radius:0;padding:38px 48px 26px;background:#eeece5 url('assets/dochirok-paper.webp') center/627px repeat;background-blend-mode:multiply;color:var(--tarot-ink,#4d463b);box-shadow:0 12px 40px #2e291c24;line-height:1.8}
.tarot-checkout::backdrop{background:#272e2780}
.tarot-checkout h2{margin:0 0 24px;text-align:center;font:400 clamp(23px,3.8vw,29px)/1.6 var(--f-display);letter-spacing:-.055em;color:inherit}
.tarot-checkout form{max-width:380px;margin:0 auto}
.tarot-checkout .tarot-plan{display:flex;align-items:center;gap:14px;padding:13px 16px;margin:5px 0;border:1px solid transparent;cursor:pointer;font:400 15px/1.7 var(--f-display)}
.tarot-checkout .tarot-plan:has(input:checked){background:#7964440d;border-color:#9a8b7355}
.tarot-checkout .tarot-plan input{appearance:none;-webkit-appearance:none;flex:0 0 18px;width:18px;height:18px;position:relative;margin:0;border:1px solid #88765c;border-radius:0;background:#f7f2e6;cursor:pointer}
.tarot-checkout .tarot-plan input:checked::after{content:'';position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #655039;border-width:0 2px 2px 0;transform:rotate(45deg)}
.tarot-checkout input:focus-visible,.tarot-checkout button:focus-visible{outline:2px solid #88765c;outline-offset:4px}
.tarot-checkout s{color:#837866;font-size:.92em}.tarot-checkout strong{font-weight:700}
.tarot-checkout .btn.primary{display:block;margin:26px auto 4px;min-width:210px;border-radius:0;font-family:var(--f-display)}
.tarot-checkout .tarot-checkout-back{display:block;margin:0 auto;padding:7px 16px;min-height:40px;border:0;border-radius:0;background:none;font:400 13px/1.8 var(--f-display);color:#786b59;text-decoration:underline;text-underline-offset:4px}
.tarot-checkout p[role=status]{font-size:13px;text-align:center;margin:12px 0 0}.tarot-checkout p[role=status]:empty{display:none}
@media(max-width:480px){.tarot-checkout{padding:30px 20px 20px}.tarot-checkout .tarot-plan{padding:12px 9px;gap:10px;font-size:14px}}

.question-review{animation:question-arrive .55s ease both}
.question-review h2{font:400 21px/1.8 var(--f-display);color:var(--tarot-ink);margin:0 0 22px;text-shadow:0 1px 10px var(--tarot-paper)}
.question-review dl{margin:0;text-align:left}
.question-review dt{font:400 12px/1.8 var(--f-display);color:var(--tarot-secondary);margin:18px 0 6px;text-shadow:0 1px 10px var(--tarot-paper)}
.question-review dd{margin:0;padding:12px;border:0;border-bottom:1px solid var(--tarot-secondary);background:#eeece578;backdrop-filter:blur(3px);white-space:pre-wrap;overflow-wrap:anywhere;font:400 16px/1.8 var(--f-display);color:var(--tarot-ink)}
.question-dock:has(.question-review:not([hidden]))>#cancel-question{display:none}
@media(max-width:480px){.question-review h2{font-size:19px}.question-review dd{font-size:15px}}
/* Customer notice only: retain the garden and checkout layout. */
.question-filter-notice{margin:0 auto;padding:24px;max-width:560px;background:rgba(244,237,223,.94);border:0;color:#51483d;text-align:left;font-family:'IBM Plex Sans KR',sans-serif;line-height:1.75;font-size:15px;box-sizing:border-box}
.question-filter-notice h3{font:700 20px/1.55 'Gowun Batang',serif;margin:0 0 16px;color:inherit}.question-filter-notice p{font:inherit;margin:0 0 16px;color:inherit;white-space:pre-line}.notice-suggestion{margin:24px 0}.notice-suggestion h4{font:600 15px/1.65 'IBM Plex Sans KR',sans-serif;margin:0 0 10px}.notice-actions{display:flex;gap:10px;flex-wrap:wrap}.notice-action{flex:1;min-height:44px;padding:10px 14px;border:1px solid #a89c89;background:transparent;color:#51483d;font:inherit;cursor:pointer;border-radius:0}.notice-action.primary{background:#4d473e;color:#f6efe2}.notice-contacts{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.notice-contacts a{color:#51483d;text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}.notice-action:focus-visible,.notice-contacts a:focus-visible{outline:2px solid #51483d;outline-offset:3px}.notice-action:disabled{opacity:.6;cursor:wait}
@media(max-width:480px){.question-filter-notice{padding:20px 16px;font-size:14px}.question-filter-notice h3{font-size:19px}.notice-actions{gap:8px}.notice-action{padding:10px 8px;font-size:13px}}

.question-filter-notice h4{font:inherit;font-weight:600;margin:24px 0 8px}.question-filter-notice .notice-actions a{display:flex;align-items:center;justify-content:center;flex:1;min-height:44px;padding:10px 14px;border:1px solid #a89c89;text-decoration:none;font:inherit;box-sizing:border-box}.question-filter-notice .notice-actions a.primary{background:#4D473E;color:#F6EFE2}.question-filter-notice .notice-actions :focus-visible{outline:2px solid #51483D;outline-offset:3px}

/* Equal outer spacing only while checkout shows a question notice. */
.tarot-checkout:has(.question-filter-notice){padding-block:32px;border:0}
.tarot-checkout:has(.question-filter-notice) form,.tarot-checkout:has(.question-filter-notice) [role="status"]{margin-block:0}
@media(max-width:480px){.tarot-checkout:has(.question-filter-notice){padding-block:24px}}

/* Secondary policy explanation, separate from the main restriction message. */
.question-filter-notice .notice-footnote{border-top:1px solid #cdbfae;margin:24px 0;padding-top:18px;color:#51483d;font-size:13px;line-height:1.65}
.question-filter-notice .notice-footnote h4{font:500 13px/1.65 'IBM Plex Sans KR',sans-serif;margin:0 0 8px;color:inherit}
.question-filter-notice .notice-footnote p{font:inherit;margin:0;color:inherit}
