/* Reading choices only; the existing card fan and its geometry remain untouched. */
#table.is-locked #draw-question-locked,#table.is-locked #ritual-stage-header{display:none!important}
#table .reading-choice-heading{position:relative;z-index:2;text-align:center;margin:0 auto 10px;max-width:800px}
#table .reading-choice-heading[hidden]{display:none}
#table .reading-choice-heading h2{margin:0 0 14px;font:500 clamp(28px,3.1vw,40px)/1.4 var(--serif);color:var(--text)}
#table .reading-choice-heading p{margin:0;font:500 clamp(17px,1.7vw,21px)/1.7 var(--serif);overflow-wrap:anywhere;color:var(--gold-light)}
#table #consult-lock.reading-choices{max-width:860px!important;width:100%;padding:0!important;margin:8px auto 0!important;border:0;background:none;box-shadow:none}
.reading-choice-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:16px;align-items:stretch}
.reading-choice{position:relative;min-width:0;display:flex;flex-direction:column;padding:26px clamp(18px,2.4vw,30px);border:1px solid #9c8052;border-radius:6px;background:linear-gradient(180deg,#1f1d19,#151516);text-align:left}
.reading-choice-paid{border-color:#c4a477;background:linear-gradient(180deg,#27241d,#171614);box-shadow:0 0 30px #c4a4771a}
.reading-choice-paid:before{content:'推荐';position:absolute;top:-10px;right:16px;font-size:11px;line-height:19px;padding:0 8px;border-radius:2px;background:#e8cfa1;color:#14140f}
html[lang=en] .reading-choice-paid:before{content:'Recommended';letter-spacing:.04em}
.reading-choice-paid:has(#unlock-reading:disabled):before{display:none}
html[lang=en] #footer-afdian{display:none}
.history-choice-note{text-align:center;font-size:13px;line-height:1.7;margin:16px 0 0;color:var(--muted)}
.reading-choice-grid.has-paid-entitlement{grid-template-columns:1fr}
.reading-choice-grid.has-paid-entitlement .reading-choice-paid{border-left:0;max-width:500px;width:100%;margin:auto}
#table .reading-choice h3{display:block;margin:0 0 4px;font:500 26px/1.5 var(--serif);color:var(--gold-light)}
.reading-choice-price{margin:0 0 10px;font:500 34px/1.2 var(--serif);color:var(--gold-light)}
.reading-choice-copy{margin:0 0 12px;min-height:3.4em;font-size:16px;line-height:1.7;color:var(--text)}
.reading-choice-list{flex:1 0 auto;list-style:none;margin:0 0 18px;padding:0;font-size:15px;line-height:1.85;color:var(--muted)}
.reading-choice-list li{position:relative;padding-left:1.1em}
.reading-choice-list li:before{content:'·';position:absolute;left:0;color:var(--gold)}
.reading-choice-paid .reading-choice-list{color:var(--gold-light)}
.reading-choice-paid .reading-choice-list li:before{content:'✓'}
/* Beats the older .is-ritual ul rules and #consult-lock ul margins for these bullet lists only. */
#table #consult-lock .reading-choice-list{display:block;max-width:none;flex:1 0 auto;margin:0 0 18px;padding:0;border:0;list-style:none;font-size:15px;line-height:1.85;color:var(--muted)}
#table #consult-lock .reading-choice-list li{position:relative;margin:0;padding:0 0 0 1.1em;border:0;font-size:inherit;line-height:inherit;color:inherit}
#table #consult-lock .reading-choice-paid .reading-choice-list{color:var(--gold-light)}
#table #start-free-reading,#table #unlock-reading{display:flex;justify-content:center;align-items:center;width:100%;min-height:50px;margin:0;padding:12px 16px;font:500 17px/1.5 var(--serif);white-space:normal}
#table #start-free-reading{border:1px solid #9c8052;background:transparent;color:var(--gold-light);box-shadow:none}
#table #start-free-reading:hover{border-color:#c4a477;background:#c4a47714}
#table #unlock-reading{background:linear-gradient(100deg,#d5b580,#e8cfa1,#cfac73);border:1px solid #c4a477;color:#201b12;box-shadow:0 6px 22px #c4a47726}
#table #unlock-reading:hover{filter:brightness(1.06)}
#table #unlock-reading:disabled{background:transparent;border-color:#5d5140;color:var(--muted);box-shadow:none;filter:none;cursor:default}
#table #unlock-with-code{display:inline-flex;width:auto;margin:2px auto 0;padding:4px 8px;min-height:44px;border:0;background:none;font-size:15px;text-decoration:underline;text-underline-offset:4px}
#table #unlock-with-code[hidden],#table #start-free-reading[hidden]{display:none}
#table #trial-fee-note{font-size:13px;line-height:1.6;margin:6px 0 0!important;min-height:0;color:var(--muted)}
#table #trial-fee-note:empty{display:none}
.reading-choice-note{text-align:center;font-size:14px;line-height:1.8;margin:20px 0 0;color:var(--muted)}
.reading-choice-note:before,.reading-choice-note:after{content:'✦';font-size:10px;color:var(--gold);margin:0 14px}
@media(max-width:699px){.reading-choice-grid{grid-template-columns:minmax(0,1fr)}}
#table #consult-lock .sealed-recovery-details{max-width:860px;margin-top:12px;font-size:13px}
#table #consult-lock .sealed-recovery-details>summary{justify-content:center;gap:14px}
#table #consult-lock .sealed-recovery-details>summary:after{margin-left:0}
.reading-upgrade{margin:32px auto;padding:24px;border:1px solid #9c8052;max-width:760px;text-align:center;background:#1a191480}
.reading-upgrade[hidden]{display:none}
.reading-upgrade h3{font:500 25px/1.5 var(--serif);color:var(--gold-light);margin:0 0 8px}
.reading-upgrade p{color:var(--muted);font-size:16px;line-height:1.7;margin:0 0 16px}
.reading-upgrade .reading-upgrade-actions{display:flex;gap:14px;justify-content:center;align-items:center;flex-wrap:wrap}
.reading-upgrade .text-button{min-height:44px;text-decoration:underline;text-underline-offset:4px}
.reading-upgrade-status{margin:12px 0 0!important}
.reading-upgrade-status:empty{display:none}
@media(max-width:600px){
  #table .reading-choice-heading{margin-bottom:8px}
  #table .reading-choice-heading h2{font-size:27px}
  #table .reading-choice-heading p{font-size:17px;line-height:1.6}
  #table #consult-lock.reading-choices{margin-top:8px!important}
  .reading-choice{padding:20px 18px}
  #table .reading-choice h3{font-size:24px}
  .reading-choice-price{font-size:30px;margin-bottom:6px}
  .reading-choice-copy{min-height:0;margin-bottom:12px;font-size:16px;line-height:1.65}
  #table #unlock-with-code{display:flex;margin-top:5px}
  .reading-choice-note{font-size:13px;padding-inline:4px;margin-top:15px}
  .reading-choice-note:before,.reading-choice-note:after{display:none}
  .reading-upgrade{padding:20px}
  .reading-upgrade .reading-upgrade-actions{flex-direction:column;gap:4px}
  .reading-upgrade .outline-button{width:100%}
}

/* Compact only the sealed three-card choice page, never the drawing canvas. */
body.is-ritual #table.is-locked{padding-top:18px;padding-bottom:24px}
#table.is-locked .spread{margin:4px auto 10px!important}
#table.is-locked[data-count="3"]{--board-card-width:clamp(92px,10vw,144px)!important;--board-card-height:clamp(138px,15vw,216px)!important}
#table.is-locked .shuffle-status:empty,#table.is-locked .ritual-unlock-status:empty{display:none}
#table #consult-lock.reading-choices:before,#table #consult-lock.reading-choices:after{display:none}
@media(min-width:761px) and (max-height:800px){
  body.is-ritual #table.is-locked{padding-top:12px}
  #table.is-locked[data-count="3"]{--board-card-width:120px!important;--board-card-height:180px!important}
  #table .reading-choice-heading h2{font-size:30px;margin-bottom:6px}
  #table .reading-choice-heading p{font-size:18px}
  .reading-choice-grid{gap:12px}
  #table .reading-choice h3{font-size:24px}
  .reading-choice-price{font-size:30px;margin-bottom:6px}
  .reading-choice-copy{font-size:15px;margin-bottom:10px}
}
@media(max-width:760px){
  #table.is-locked[data-count="3"]{--board-card-width:clamp(80px,22vw,112px)!important;--board-card-height:clamp(120px,33vw,168px)!important}
}


/* A viewport-centered status surface, separate from the unchanged draw scene. */
#reading-wait-dialog{position:fixed;inset:0;width:min(480px,calc(100vw - 32px));height:max-content;max-width:none;max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));margin:auto;padding:28px 32px 16px;border:1px solid #c4a477b3;border-radius:6px;background:linear-gradient(145deg,#1b1c19,#121411);color:var(--text);box-shadow:0 24px 90px #0009;overflow-y:auto;overscroll-behavior:contain;text-align:center}
#reading-wait-dialog::backdrop{background:#080a08b8;backdrop-filter:blur(2px)}
.reading-wait-mark{display:block;width:86px;height:60px;margin:0 auto 10px;color:var(--gold-light)}
#reading-wait-title{margin:0;font:500 clamp(24px,3vw,30px)/1.4 var(--serif);color:var(--text);outline:none;overflow-wrap:anywhere}
.reading-wait-progress{height:4px;max-width:300px;margin:22px auto 14px;overflow:hidden;background:#ffffff22;border-radius:4px}
.reading-wait-progress>span{display:block;width:32%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#c8a76b,#efdaad);box-shadow:0 0 10px #e0bd8080;animation:reading-wait-line 2.4s ease-in-out infinite alternate}
#reading-wait-dialog[data-state="waiting"] .reading-wait-mark{animation:reading-wait-breathe 2.4s ease-in-out infinite alternate}
#reading-wait-dialog .reading-wait-elapsed{margin:0 0 12px;color:var(--gold-light);font-size:16px;line-height:1.5;font-variant-numeric:tabular-nums}
#reading-wait-dialog .reading-wait-message{margin:0;font-size:16px;line-height:1.7;color:var(--text);overflow-wrap:anywhere}
#reading-wait-dialog .reading-wait-retained{margin:18px 0 0;padding-top:14px;border-top:1px solid #c4a47736;font-size:14px;line-height:1.6;color:var(--muted)}
.reading-wait-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 12px;margin-top:8px}
#reading-wait-dialog .reading-wait-actions button{min-height:44px;margin:0;padding:10px 14px;font-size:14px;line-height:1.5}
#reading-wait-dialog .reading-wait-actions .gold-button{width:auto;min-width:160px}
#reading-wait-dialog[data-state="error"] .reading-wait-elapsed{margin-top:14px}
#reading-wait-reopen{position:fixed;z-index:1500;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));width:max-content;max-width:calc(100vw - 32px);min-height:48px;margin:0 auto;padding:12px 20px;border:1px solid #c4a477b3;border-radius:4px;background:#191b16;color:var(--gold-light);box-shadow:0 8px 32px #000a;font:500 15px/1.5 var(--serif)}
body:has(#reading-wait-reopen:not([hidden])) #feedback-open{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
@keyframes reading-wait-line{from{transform:translateX(0)}to{transform:translateX(212.5%)}}
@keyframes reading-wait-breathe{from{opacity:.65}to{opacity:1}}
@media(max-width:600px){#reading-wait-dialog{padding:22px 20px 12px}.reading-wait-mark{width:76px;height:53px}#reading-wait-title{font-size:25px}.reading-wait-progress{margin-top:18px}#reading-wait-dialog .reading-wait-message{font-size:15px}}
@media(max-height:500px){#reading-wait-dialog{padding:14px 20px 8px}.reading-wait-mark{width:55px;height:38px;margin-bottom:5px}#reading-wait-title{font-size:23px}.reading-wait-progress{margin:12px auto 8px}#reading-wait-dialog .reading-wait-elapsed{margin-bottom:6px}#reading-wait-dialog .reading-wait-message{font-size:14px}#reading-wait-dialog .reading-wait-retained{margin-top:10px;padding-top:8px}.reading-wait-actions{margin-top:4px}}
@media(prefers-reduced-motion:reduce){#reading-wait-dialog .reading-wait-mark,#reading-wait-dialog .reading-wait-progress>span{animation:none}.reading-wait-progress>span{width:32%;transform:translateX(106.25%);opacity:.7}}
