/* Tarot: recording-led geometry and locally drawn arcana. */
.tarot-body .tarot-game-panel{display:block;height:auto;min-height:0;padding:0;border:0;background:#0f212e;overflow:hidden}
.tarot-body .tarot-stage-surface{position:relative;container-type:inline-size;height:630px;overflow:hidden;border-radius:5px;background:#0f212e;--orb:#b3cfda;--orb-dark:#567789}
.tarot-body .tarot-stage-surface[data-difficulty=medium]{--orb:#24bcff;--orb-dark:#1075c5}.tarot-body .tarot-stage-surface[data-difficulty=hard]{--orb:#00e99a;--orb-dark:#078358}.tarot-body .tarot-stage-surface[data-difficulty=expert]{--orb:#ffcb34;--orb-dark:#b57818}
.tarot-body .tarot-console{position:absolute;left:50%;top:50%;width:min(548px,calc(100% - 24px));aspect-ratio:548/400;transform:translate(-50%,-50%);container-type:inline-size}
.tarot-body .tarot-frame{position:absolute;inset:0 0 auto;width:100%;height:77.75%;overflow:visible}
.tarot-body .tarot-card-row{position:absolute;inset:0;perspective:900px}
.tarot-body .tarot-card{--edge:#455f70;--surface:#526f7f;--inset:#314b5b;--frame:#7893a3;position:absolute;width:24.818%;height:52.75%;top:9.5%;perspective:700px;container-type:inline-size;filter:drop-shadow(0 2px 2px #091b2644)}
.tarot-body .tarot-card.left{left:3.832%}.tarot-body .tarot-card.right{left:71.168%}.tarot-body .tarot-card.centre{--edge:#e8a51c;--surface:#ffd019;--inset:#ffb90d;--frame:#f78b0c;left:36.131%;top:5.25%;width:28.102%;height:61.5%}
.tarot-body .tarot-card-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform 360ms cubic-bezier(.2,.65,.3,1);transform:rotateY(0deg)}
.tarot-body .shuffling .tarot-card{overflow:hidden}.tarot-body .tarot-shuffle-copy{transform:translateY(113%)}
.tarot-body .tarot-card.revealed .tarot-card-inner{transform:rotateY(180deg)}
.tarot-body .tarot-card-back,.tarot-body .tarot-card-face{position:absolute;inset:0;backface-visibility:hidden;border-radius:7px;overflow:hidden}
.tarot-body .tarot-card-back{display:grid;place-items:center;background:#223b47;border:7px solid #29434f;color:#68828f}
.tarot-body .tarot-card-back::before{content:"";position:absolute;width:82%;height:75%;border:5px double #3b5461;transform:rotate(32deg)}
.tarot-body .tarot-card-back::after{content:"";position:absolute;width:82%;height:75%;border:5px double #3b5461;transform:rotate(-32deg)}
.tarot-body .tarot-back-emblem{position:relative;z-index:1;display:grid;place-items:center;width:58%;aspect-ratio:1;background:#223b47;border:5px double #3b5461;border-radius:50%;font:italic 700 34cqw/1 Georgia,serif}
.tarot-body .tarot-card-face{transform:rotateY(180deg);border:7px solid var(--edge);background:var(--surface);box-shadow:inset 0 0 0 2px #ffffff1c}
.tarot-body .tarot-card-face::before{content:"";position:absolute;inset:4%;background:var(--inset);border:4px solid var(--frame);clip-path:polygon(12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%);opacity:.77}
.tarot-body .tarot-corner{position:absolute;width:20%;height:14%;border:5px solid var(--frame);transform:skew(-15deg);z-index:1}
.tarot-body .tarot-corner.tl{left:3%;top:2%}.tarot-body .tarot-corner.tr{right:3%;top:2%;transform:skew(15deg)}.tarot-body .tarot-corner.bl{left:3%;bottom:2%;transform:skew(15deg)}.tarot-body .tarot-corner.br{right:3%;bottom:2%}
.tarot-body .tarot-card-rank{position:absolute;z-index:3;left:50%;top:1%;transform:translateX(-50%);display:grid;place-items:center;min-width:29%;height:17%;padding:0 3%;background:var(--surface);border-radius:50%;font-size:clamp(7px,7cqw,11px);font-weight:700;white-space:nowrap;color:#f4faff}
.tarot-body .centre .tarot-card-rank{background:#f89b0c;color:#fff8dc}
.tarot-body .tarot-art{position:absolute;z-index:2;left:4%;top:13%;width:92%;height:66%;filter:drop-shadow(1px 2px 0 #142b351a)}
.tarot-body .tarot-art svg{width:100%;height:100%;overflow:visible}
.tarot-body .tarot-card-badge{position:absolute;z-index:3;left:17%;bottom:15%;width:66%;height:11%;display:grid;place-items:center;border-radius:30px;background:#132e3b;color:#f4faff;font-size:clamp(10px,11cqw,16px);font-weight:800;line-height:1;white-space:nowrap}
.tarot-body .tarot-card-title{position:absolute;z-index:3;left:3%;right:3%;bottom:3%;display:grid;place-items:center;min-height:6%;font-size:clamp(5px,6.1cqw,9px);line-height:1.05;font-weight:650;white-space:nowrap;color:#f6fcff}
.tarot-body .centre .tarot-card-title{color:#fffce7}
.tarot-body .tarot-total{position:absolute;left:22.628%;top:76%;width:54.745%;height:24%;padding:2% 1.3% 5%;display:flex;align-items:center;justify-content:space-between;gap:3%;border-radius:34px;background:#223b46;box-shadow:inset 0 0 0 1px #102b3944}
.tarot-body .tarot-total::before{content:"";position:absolute;z-index:0;inset:0 0 27%;border-radius:34px;background:#405965}
.tarot-body .tarot-total strong{position:relative;display:grid;place-items:center;flex:1;height:100%;min-width:0;background:#162d39;border-radius:25px;color:#fff;font-size:clamp(16px,5cqw,28px);line-height:1;font-variant-numeric:tabular-nums;font-weight:800;white-space:nowrap}
.tarot-body .tarot-orb{position:relative;display:block;flex:0 0 17%;aspect-ratio:1;border:5px solid #213d4a;border-radius:50%;background:var(--orb);box-shadow:inset 0 0 0 2px #c6e4ec55,0 0 0 2px #5f7d8b}
.tarot-body .tarot-orb::before{content:"";position:absolute;left:8%;bottom:5%;width:70%;height:37%;background:var(--orb-dark);border-radius:50%;transform:rotate(20deg);box-shadow:0 1px 0 #d8f3ff99}
.tarot-body .tarot-orb::after{content:"";position:absolute;right:13%;top:13%;width:26%;height:22%;background:#efffff;border-radius:50%;transform:rotate(40deg)}
.tarot-body .tarot-result-popup{position:absolute;z-index:6;left:36.131%;top:34%;width:28.102%;height:32.5%;border:6px solid #607886;border-radius:15px;background:#172e3b;color:#d9e7ee;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2% 1%;box-shadow:0 3px 6px #0c1d2866}
.tarot-body .tarot-result-popup.win{border-color:#00e701;color:#00e701}
.tarot-body .tarot-result-popup strong{font-size:clamp(14px,4cqw,23px);font-weight:800;line-height:1.1;white-space:nowrap}
.tarot-body .tarot-result-popup strong::after{content:"";display:block;width:46%;height:2px;margin:10% auto 12%;background:#5e7b8d}
.tarot-body .tarot-result-popup span{font-size:clamp(10px,3cqw,17px);font-weight:750;max-width:100%;overflow-wrap:anywhere;line-height:1.2}.tarot-body .tarot-result-popup small{font-size:clamp(6px,1.5cqw,9px);color:#a9c2d1;margin-top:3%}
.tarot-body .tarot-recent-results{position:absolute;z-index:7;top:16px;right:16px;left:16px;min-height:36px;display:flex;align-items:center;justify-content:flex-end;gap:8px;overflow:hidden;flex-wrap:nowrap;padding:0;margin:0}
.tarot-body .tarot-recent-results .recent-chip{flex:0 0 auto;min-width:55px;min-height:36px;padding:10px 12px;border:0;border-radius:24px;background:#2f4553;color:#ecf5fa;font-size:11px;font-weight:700;white-space:nowrap;line-height:16px;text-align:center}
.tarot-body .tarot-recent-results .recent-chip.win{background:#00e701;color:#07300c}
.tarot-body .tarot-deck-key{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);display:flex;gap:4px}
.tarot-body .tarot-deck-key span{width:18px;height:20px;border-radius:2px;background:#b3cdd9;box-shadow:inset -3px 0 #80a0b133}.tarot-body .tarot-deck-key span:nth-child(2){background:#ffce13;box-shadow:inset -3px 0 #d5941433}
.tarot-body .tarot-result-grid{display:none}.tarot-body .crash-bet-panel{gap:12px}.tarot-body .crash-bet-panel .segmented{margin-bottom:0}
.tarot-body .tarot-paytable-card{margin:18px 0;background:#132a37;border-radius:8px;padding:16px;min-width:0}
.tarot-body .tarot-paytable-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#d5e4ec;font-size:14px}.tarot-body .tarot-paytable-header span{color:#a6bdcb;font-size:12px}
.tarot-body .tarot-paytable-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:14px}
.tarot-body .tarot-paytable-group h3{font-size:12px;color:#ffc928;margin:0 0 8px}.tarot-body .tarot-paytable-group.minor h3{color:#b7d0dc}.tarot-body .tarot-paytable-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #2d4756;font-size:12px;color:#b6cad5}
.tarot-body .tarot-model-note{font-size:12px;color:#a8c0cf;line-height:1.6;margin:14px 0 0}.tarot-body .mapping-panel{margin:16px 0}.tarot-body .mapping-wrap{max-height:24rem;overflow:auto}.tarot-body .mapping-wrap table{min-width:42rem}
@media(max-width:1100px){.tarot-body .tarot-stage-surface{height:580px}}
@media(max-width:760px){.tarot-body .tarot-stage-surface{height:540px}}
@media(max-width:600px){.tarot-body .tarot-stage-surface{height:clamp(440px,calc(100vw - 80px),520px)}.tarot-body .tarot-card-face,.tarot-body .tarot-card-back{border-width:4px;border-radius:5px}.tarot-body .tarot-corner{border-width:3px}.tarot-body .tarot-card-face::before{border-width:3px}.tarot-body .tarot-total,.tarot-body .tarot-total::before{border-radius:24px}.tarot-body .tarot-orb{border-width:3px}.tarot-body .tarot-result-popup{border-width:4px;border-radius:10px}.tarot-body .tarot-recent-results{left:12px;right:12px;gap:6px}.tarot-body .tarot-recent-results .recent-chip{min-width:50px;font-size:10px;padding:7px 9px;min-height:30px}.tarot-body .tarot-deck-key span{width:15px;height:17px}.tarot-body .tarot-paytable-list{gap:14px}}
@media(prefers-reduced-motion:reduce){.tarot-body *{animation:none!important;transition:none!important}}
