.tarot-topics { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.tarot-count { margin:17px 0 9px; color:#e8c8a3; }
.tarot-deck { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:clamp(6px,1.2vw,13px); max-width:680px; margin:3px 0 10px; }
.tarot-back {
  position:relative; display:grid; place-items:center; isolation:isolate; overflow:hidden;
  min-width:0; min-height:58px; aspect-ratio:0.67; padding:0; border:1px solid #b99a76;
  border-radius:7px; color:#e7d3a7; cursor:pointer;
  background:#33262f url("./art/library-tarot.webp") 50.5% 48% / 253% 142% no-repeat;
}
.tarot-back::before { content:""; position:absolute; inset:4px; z-index:-1; border:1px solid #dfbb8580; border-radius:4px; }
.tarot-back-mark { display:grid; place-items:center; width:58%; aspect-ratio:1; border:1px solid #e0c08c88; border-radius:50%; font:400 clamp(16px,3.1vw,31px)/1 Georgia,serif; }
.tarot-back:not(:disabled) .tarot-back-mark { visibility:hidden; }
.tarot-back:disabled { background-blend-mode:soft-light; color:#fff1d6; cursor:default; }
.tarot-back:disabled .tarot-back-mark { background:#6d505e; }
.tarot-back:not(:disabled):hover { border-color:#fff2cf; background-color:#503c4f; }
.tarot-app :focus-visible { outline:2px solid #f2dba7; outline-offset:3px; }
.tarot-reading { display:grid; grid-template-columns:clamp(86px,16vw,155px) minmax(0,1fr); gap:clamp(14px,3vw,32px); padding:24px 0 14px; border-top:1px solid #634d61; align-items:start; }
.tarot-reading+.tarot-reading { margin-top:12px; }
.tarot-face { margin:0; width:100%; }
.tarot-face svg { display:block; width:100%; height:auto; }

.tarot-reading-head .book-label,.tarot-reading-head h3,.tarot-reading-head .tarot-orientation { margin:0; }
.tarot-orientation { font-size:14px; color:#dcc8c4; }
.tarot-image-line { color:#e5cdbb; }
.tarot-reading h4,.tarot-synthesis h4 { font-size:1.05em; margin:1.25em 0 .25em; }
.tarot-reading-copy>p,.tarot-synthesis>p {margin:.65em 0;}
.tarot-synthesis { margin:16px 0 0; padding:clamp(15px,3vw,27px); border:1px solid #86706d; border-radius:7px; background:linear-gradient(135deg,#382c3d,#26232d); }
.tarot-conclusion,.tarot-reflection { color:#f8dec0; }
.tarot-synthesis .tarot-reflection { padding:12px 0 0; border-top:1px solid #79636c; }
.tarot-footer { display:flex; gap:4px 16px; flex-wrap:wrap; align-items:center; margin:14px 0; }
@media(max-width:560px) {
  .tarot-deck { grid-template-columns:repeat(4,minmax(0,1fr)); max-width:365px; gap:9px; }
}
