/* Isolated styles for /tarot/tarot-beta-v2/ only. */
.tarot-v2{--t2-plum:#704879;--t2-ink:#342b3b;--t2-line:#eadfe8;--t2-bg:#fcf9fd;direction:rtl;max-width:100%;overflow-wrap:anywhere}
.tarot-v2 .t2-note,.tarot-v2 .t2-status,.tarot-v2 .t2-warning{padding:12px 16px;border-radius:12px;margin:0 0 18px;background:#f6f0fa;border:1px solid #eaddf2;font-size:14px;line-height:2}
.tarot-v2 .t2-status{background:#f2f7f5;border-color:#d6e8de}
.tarot-v2 .t2-warning{background:#fff5eb;border-color:#f5dabb}
.tarot-v2 code{direction:ltr;display:inline-block;word-break:break-all}
.tarot-v2 .t2-section{margin:26px 0 34px}
.tarot-v2 .t2-section h2{font-size:21px;margin:8px 0 16px}
.tarot-v2 .t2-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tarot-v2 .t2-mode{display:flex;flex-direction:column;gap:5px;padding:18px;border:1px solid var(--t2-line);border-radius:14px;background:linear-gradient(140deg,#fff,#fcf7ff);color:var(--t2-ink);min-width:0;transition:border-color .2s,box-shadow .2s}
.tarot-v2 .t2-mode:hover{text-decoration:none;border-color:#c2a5d0;box-shadow:0 6px 18px #49305c14}
.tarot-v2 .t2-mode strong{font-size:16px}
.tarot-v2 .t2-mode small{font-size:12px;color:#776c7b;line-height:1.8;min-height:42px}
.tarot-v2 .t2-mode span{font-size:13px;color:var(--t2-plum);font-weight:bold;margin-top:auto}
.tarot-v2 .t2-play{scroll-margin-top:18px}
.tarot-v2 .t2-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.tarot-v2 .t2-back,.tarot-v2 .t2-outline{display:inline-block;padding:8px 15px;border:1px solid #bca4c6;border-radius:10px;background:#fff;color:var(--t2-plum);font-size:14px;cursor:pointer;font-family:inherit}
.tarot-v2 .t2-inline{margin:0}
.tarot-v2 .t2-outline{background:#744a85;color:#fff;border-color:#744a85;font-weight:700}
.tarot-v2 .t2-outline:hover{background:#61376d}
.tarot-v2 .t2-progress{margin:18px 0 24px;font-size:13px;color:#554459}
.tarot-v2 .t2-progress>div{height:8px;background:#efe6f2;border-radius:10px;margin-top:7px;overflow:hidden}
.tarot-v2 .t2-progress i{display:block;height:100%;background:#704879;border-radius:10px;transition:width .2s}
.tarot-v2 .t2-deck{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:20px 0 28px}
.tarot-v2 .t2-pickform{min-width:0;margin:0}
.tarot-v2 .t2-backcard{display:grid;place-items:center;width:100%;aspect-ratio:2/3;border-radius:10px;cursor:pointer;border:2px solid #aa8fbd;color:#f9dc9b;background:linear-gradient(145deg,#291b49,#694384 55%,#3b2856);padding:5px;box-shadow:0 4px 8px #2d173a22;overflow:hidden;transition:transform .15s,border-color .15s}
.tarot-v2 .t2-backcard:hover,.tarot-v2 .t2-backcard:focus-visible{transform:translateY(-4px);border-color:#e5b45e}
.tarot-v2 .t2-backcard>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:5px}
.tarot-v2 .t2-backcard>span{display:flex;align-items:center;flex-direction:column;justify-content:center;font-size:clamp(25px,4vw,46px);line-height:1.4}
.tarot-v2 .t2-backcard small{display:block;font-size:9px;letter-spacing:2px}
.tarot-v2 .t2-smallpicks{display:flex;gap:8px;overflow-x:auto;padding:8px 0 14px;scrollbar-width:thin}
.tarot-v2 .t2-picked{min-width:94px;width:94px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;line-height:1.4;border-radius:10px;background:#f7f1f8;padding:8px}
.tarot-v2 .t2-picked img,.tarot-v2 .t2-picture-fallback{height:104px;width:70px;object-fit:contain;display:grid;place-items:center;background:#e8ddee;color:#5f3f79;border-radius:5px;font-size:24px}
.tarot-v2 .t2-picked strong{font-size:11px;line-height:1.5}
.tarot-v2 .t2-picked small{font-size:10px}
.tarot-v2 .t2-results{display:grid;gap:12px;margin:20px 0}
.tarot-v2 .t2-result{border:1px solid #e9dcea;border-radius:14px;background:#fff;overflow:hidden}
.tarot-v2 .t2-result summary{cursor:pointer;display:flex;align-items:center;gap:12px;padding:15px;font-weight:700;background:#fbf8fd;list-style:none}
.tarot-v2 .t2-result summary::-webkit-details-marker{display:none}
.tarot-v2 .t2-result summary:after{content:'+';margin-right:auto;font-size:20px;color:#7a5186}
.tarot-v2 .t2-result[open] summary:after{content:'−'}
.tarot-v2 .t2-index{display:grid;place-items:center;min-width:32px;height:32px;border-radius:50%;background:#704879;color:#fff}
.tarot-v2 .t2-result summary small{font-size:12px;color:#76667d;font-weight:400}
.tarot-v2 .t2-reading{display:grid;grid-template-columns:minmax(110px,160px) minmax(0,1fr);gap:16px;padding:17px}
.tarot-v2 .t2-face{width:100%;height:auto;max-height:310px;object-fit:contain;border-radius:10px;background:#f3edf5}
.tarot-v2 .t2-noimage{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;text-align:center;gap:12px}
.tarot-v2 .t2-noimage span{font-size:48px;color:#76518f}
.tarot-v2 .t2-noimage strong{font-size:14px}
.tarot-v2 .t2-noimage small{font-size:11px;color:#8a778f}
.tarot-v2 .t2-readingtext{min-width:0}
.tarot-v2 .t2-readingtext p{margin:0;line-height:2.1;white-space:normal;font-size:15px}
.tarot-v2 .t2-hint{margin:14px 0;background:#fff6ea;border-right:3px solid #cc9a59;padding:9px 13px;border-radius:6px;color:#705838;font-size:12px}
.tarot-v2 .t2-smallmeta{color:#88778f;font-size:11px;margin-top:12px}
.tarot-v2 .t2-bottom{border-top:1px solid #eee2ee;padding-top:16px;font-size:13px;color:#726679}
.tarot-v2 .t2-bottom p{margin-bottom:8px}
@media(max-width:680px){.tarot-v2 .t2-grid{grid-template-columns:1fr}.tarot-v2 .t2-deck{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.tarot-v2 .t2-reading{grid-template-columns:1fr}.tarot-v2 .t2-face{max-width:165px;max-height:265px;margin:auto}.tarot-v2 .t2-play h2{font-size:19px}.tarot-v2 .t2-result summary{padding:12px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.tarot-v2 *{scroll-behavior:auto!important;transition:none!important}}

.tarot-v2 .t2-rotate{transform:rotate(180deg)}

/* Version 3: smaller cards, safe grid, clear steps, compact 12-card readings. */
.tarot-v2 .t2-deck{
 display:grid;
 grid-template-columns:repeat(8,minmax(0,1fr));
 gap:9px;
 max-width:720px;
 margin:14px auto 24px;
}
.tarot-v2 .t2-pickform{min-width:0;margin:0;display:block}
.tarot-v2 .t2-backcard{
 width:100%;height:auto;aspect-ratio:2/3;min-height:0;
 border:1px solid #bbacbb;border-radius:8px;
 padding:3px;background:#241b38;
 box-shadow:0 2px 6px rgba(38,23,53,.13);
 transform-origin:center center;
}
.tarot-v2 .t2-backcard>img{width:100%;height:100%;object-fit:fill;border-radius:4px;aspect-ratio:2/3;pointer-events:none}
.tarot-v2 .t2-backcard:hover{transform:translateY(-3px);border-color:#8a6193;box-shadow:0 5px 12px rgba(38,23,53,.17)}
.tarot-v2 .t2-backcard:focus-visible{outline:3px solid #bd8d27;outline-offset:3px}
.tarot-v2 .t2-current-step{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:20px 0 6px}
.tarot-v2 .t2-current-step h2{margin:0}
.tarot-v2 .t2-current-step span{font-size:12px;background:#f0e9f4;color:#644670;border-radius:30px;padding:3px 10px}
.tarot-v2 .t2-current-step+p{font-size:14px;color:#786b79;margin:0 0 10px}
.tarot-v2 .t2-progress{margin:15px 0 19px}
.tarot-v2 .t2-result summary:hover{background:#f5ecf8}
.tarot-v2 .t2-result summary:focus-visible{outline:3px solid #bd8d27;outline-offset:-3px}
@media(max-width:960px){.tarot-v2 .t2-deck{grid-template-columns:repeat(7,minmax(0,1fr));max-width:640px}}
@media(max-width:680px){.tarot-v2 .t2-deck{grid-template-columns:repeat(5,minmax(0,1fr));max-width:440px;gap:7px}.tarot-v2 .t2-backcard{padding:2px;border-radius:7px}.tarot-v2 .t2-backcard>img{border-radius:4px}}
@media(max-width:390px){.tarot-v2 .t2-deck{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}}
@media(prefers-reduced-motion:reduce){.tarot-v2 .t2-backcard{transition:none!important}.tarot-v2 .t2-backcard:hover{transform:none}}
