.tarot-panel { margin-top:16px; scroll-margin-block-start:12px; }
.tarot-panel .home-module-heading>span { color:#8f805b; font-size:10px; }
.tarot-intro { margin:8px 0 16px; color:#718077; font-size:13px; line-height:1.75; }
.tarot-subjects { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-bottom:20px; }
.tarot-subjects button,.tarot-gallery-filters button { min-height:44px; min-width:0; padding:8px 2px; border:1px solid var(--card-border); border-radius:var(--radius); background:#fff; color:#617568; font:600 11px var(--font); cursor:pointer; }
.tarot-subjects button[aria-pressed=true],.tarot-gallery-filters button[aria-pressed=true] { color:#007d37; background:#edf9f1; border-color:#03c75a; }
.tarot-question { margin:0; color:#234b36; font-size:16px; font-weight:750; text-align:center; line-height:1.6; }
.tarot-instruction { margin:6px 0 18px; text-align:center; color:#69776e; font-size:11px; line-height:1.7; }
.tarot-deck { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:4px 0 12px; }
.tarot-card { padding:0; border:0; background:transparent; min-width:0; cursor:pointer; perspective:800px; font-family:inherit; }
.tarot-panel button:focus-visible,.tarot-viewer button:focus-visible { outline:3px solid #03c75a; outline-offset:3px; }
.tarot-card-inner { display:block; position:relative; width:100%; aspect-ratio:4/7; transform-style:preserve-3d; transition:transform 650ms cubic-bezier(.2,.7,.2,1); }
.tarot-face { position:absolute; inset:0; display:block; border-radius:8px; backface-visibility:hidden; -webkit-backface-visibility:hidden; overflow:hidden; background:#173c2d; }
.tarot-face img { display:block; width:100%; height:100%; object-fit:contain; }
.tarot-front { transform:rotateY(180deg); }
.tarot-card.is-picked .tarot-card-inner { transform:rotateY(180deg); }
.tarot-deck.has-selection .tarot-card:not(.is-picked) { opacity:.35; }
.tarot-position { display:block; color:#6c7a71; font-size:10px; margin-top:10px; min-height:24px; line-height:1.5; }
.tarot-card.is-picked .tarot-position { color:#078945; font-weight:700; }
.tarot-result[hidden] { display:none; }
.tarot-result { margin-top:14px; border-top:1px solid #e3ece5; padding-top:20px; animation:tarot-reveal 350ms ease both; }
.tarot-result-title { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.tarot-result-title h3 { margin:0; font-size:22px; color:#17482f; letter-spacing:-.6px; }
.tarot-direction { padding:4px 7px; color:#24734c; background:#edf7f0; border-radius:4px; font-size:10px; flex-shrink:0; }
.tarot-keywords { margin:0 0 16px; color:#8a7038; font-size:12px; font-weight:650; }
.tarot-reading { color:#4a5c50; font-size:13px; line-height:1.9; margin:0; }
.tarot-advice { margin:18px 0 0; padding:14px; border-radius:8px; background:#f0faf3; color:#346448; font-size:12px; line-height:1.8; }
.tarot-advice>span { display:block; color:#07813b; font-size:11px; margin-bottom:4px; font-weight:750; }
.tarot-advice strong { font-weight:800; }
.tarot-reflection { font-size:12px; line-height:1.8; color:#526b59; }
.tarot-reset { width:100%; margin-top:16px; }
.tarot-footnote { margin:16px 0 0; color:#758278; font-size:10px; line-height:1.7; }
.tarot-gallery-link { display:block; width:100%; min-height:44px; margin-top:2px; border:0; background:transparent; color:#486c56; text-decoration:underline; text-underline-offset:3px; font:500 11px var(--font); cursor:pointer; }
.tarot-viewer { width:min(390px,calc(100vw - 24px)); max-width:100%; box-sizing:border-box; padding:0; max-height:calc(100dvh - 32px); overflow:hidden; border:1px solid #d1e8d1; border-radius:12px; background:#fff; color:#19462e; font-family:var(--font); margin:auto; }
.tarot-viewer[open] { display:flex; flex-direction:column; }
.tarot-viewer::backdrop { background:#142b2480; }
.tarot-viewer-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid #e3ece5; flex-shrink:0; }
.tarot-viewer-heading h2 { margin:0; font-size:16px; }
.tarot-viewer-heading button { width:44px; height:44px; border:0; border-radius:8px; color:#526a5d; background:#f2f7f3; font-size:26px; cursor:pointer; }
.tarot-viewer-body { overflow-y:auto; overscroll-behavior:contain; min-height:0; padding:16px; }
.tarot-gallery-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:16px; }
.tarot-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px 8px; }
.tarot-gallery-grid button { padding:0; border:0; background:transparent; min-width:0; font:600 11px var(--font); color:#31533e; cursor:pointer; }
.tarot-gallery-grid img { width:100%; height:auto; aspect-ratio:4/7; object-fit:contain; border-radius:6px; background:#173c2d; }
.tarot-gallery-grid span { display:block; margin-top:6px; line-height:1.5; }
.tarot-viewer-name { font-size:18px; margin:12px 0; }
.tarot-large-image img { display:block; width:auto; max-width:100%; height:auto; max-height:65dvh; aspect-ratio:4/7; object-fit:contain; border-radius:8px; background:#173c2d; margin-inline:auto; }
.tarot-large-image { margin-bottom:16px; }
.tarot-gallery-nav { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:16px; }
.tarot-gallery-nav button:disabled { opacity:.4; }
.tarot-image-status { color:#b42318; font-size:12px; line-height:1.6; }
@keyframes tarot-reveal { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .tarot-card-inner { transition:none; }.tarot-result { animation:none; } }
