/* Tarot table: layered scene and perspective cards, without a rendering dependency. */
.horo-shell{max-width:1120px;background:#0a0819}.horo-nav{height:88px;background:#0d0a20}.horo-brand{font-size:27px;letter-spacing:5px}.horo-brand small{font-size:9px;letter-spacing:5px}.brand-moon{font-size:53px}.horo-profile{width:43px;height:43px}.horo-main{padding:0 3% 30px}.tg{position:relative;isolation:isolate;margin:0 -3.2% 30px;padding:23px 5% 20px;background:#100a20;color:#f7eddf;border:1px solid #ac80472e;overflow:hidden;scroll-margin-top:12px;border-radius:0 0 28px 28px}.tg *{box-sizing:border-box}.tg-scene{position:absolute;z-index:-2;inset:0;background:linear-gradient(180deg,#08061644,#08051900 20%,#10081c22 46%,#10091ef2 76%,#10091e),url('../images/horoscope/tarot-sanctuary.webp') center top/100% auto no-repeat}.tg:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;box-shadow:inset 0 0 85px #05040bb3}.tg-topline,.tg-topline>div{display:flex;align-items:center;justify-content:space-between;gap:15px}.tg-topline{font-size:10px;letter-spacing:3px;color:#e6c494}.tg-free{font-size:11px;letter-spacing:0;color:#ddd1ea}.tg-topline button{padding:6px 12px;border-radius:20px;background:#160f2a99;border:1px solid #dbc7f23d;color:#eadced;font-size:12px;letter-spacing:0}.tg-heading{text-align:center;margin:28px 0 24px!important;text-shadow:0 3px 15px #07020b}.tg-heading>p:first-child{color:#efd8b3;font-size:13px;letter-spacing:1px}.tg-heading h1{font-size:clamp(33px,5.7vw,65px);font-weight:600;line-height:1.4;margin-top:8px!important;color:#ffdfa2;text-shadow:0 2px 0 #765224,0 0 32px #d38c4855}.tg-heading h1 span{margin-left:10px}.tg-heading>p:last-child{font-size:15px;color:#eee2f0;margin-top:7px!important}.tg-ornament{color:#d6ab63;font-size:17px;letter-spacing:5px;opacity:.9}.tg-topic-wrap{margin-top:175px}.tg-topics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:730px;margin:auto}.tg-topics button{position:relative;display:grid;grid-template-columns:35px auto;align-items:center;text-align:left;padding:12px 15px;background:linear-gradient(145deg,#201b32ec,#110c22f5);border:1px solid #bd97554a;border-radius:14px;color:#e1d2e8;transition:transform .2s,border-color .2s}.tg-topics button>span{grid-row:1/3;font:32px Georgia;color:#e8b9d2}.tg-topics button>b{font-size:16px;font-weight:500}.tg-topics small{font-size:10px;color:#bcaeca}.tg-topics button[aria-pressed=true]{background:linear-gradient(130deg,#663040ed,#30172fed);border-color:#e5b572;box-shadow:0 0 20px #d69b3233,inset 0 0 15px #f8cf8022;color:#ffe3b2}.tg-topics button:nth-child(2)>span{color:#e9c27a}.tg-topics button:nth-child(3)>span{color:#89ddc1}.tg-topics button:nth-child(4)>span{color:#cda2fa}.tg-topics button:hover{transform:translateY(-3px);border-color:#ecc787}.tg-table{position:relative;padding:28px 0 8px;perspective:1400px}.tg-table-ring{position:absolute;width:85%;height:240px;border:1px solid #cfa85c55;left:7.5%;top:88px;border-radius:50%;transform:rotateX(63deg);box-shadow:0 0 0 15px #b2833110,0 0 0 16px #d0a55233,0 0 50px #a946cb25,inset 0 0 45px #ce94372a;pointer-events:none}.tg-table-caption{text-align:center;font-size:9px;letter-spacing:4px;color:#d2b080;margin-bottom:26px!important}.tg-deck{display:flex;justify-content:center;gap:0;min-height:260px;padding:15px 10px 12px;perspective:1300px;transform:rotateY(var(--tilt,0deg));transition:transform .3s;transform-style:preserve-3d}.tg button.tg-card{position:relative;flex:0 0 139px;width:139px;height:222px;margin:0 -6px;padding:0;border:0;border-radius:13px;background:none;cursor:pointer;color:#f5d18b;perspective:1100px;transform:translateY(calc(var(--i) * 0px)) rotate(var(--fan));transition:transform .35s,opacity .3s;z-index:1;-webkit-tap-highlight-color:transparent}.tg button.tg-card:nth-child(1),.tg button.tg-card:nth-child(6){top:22px}.tg button.tg-card:nth-child(2),.tg button.tg-card:nth-child(5){top:6px}.tg button.tg-card:hover:not(:disabled),.tg button.tg-card:focus-visible{transform:translateY(-18px) rotate(0deg);z-index:3}.tg-card-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .85s cubic-bezier(.18,.7,.2,1)}.tg-card.is-open .tg-card-inner{transform:rotateY(180deg)}.tg button.tg-card.is-open{transform:translateY(-7px) rotate(0);z-index:2}.tg-face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border:2px solid #dfb567;border-radius:12px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 9px 18px #000a,3px 3px 0 #977145,inset 0 0 0 4px #1a142b,inset 0 0 0 5px #b8935744}.tg-face:after{content:'';position:absolute;inset:7px;border:1px solid #b38c5580;border-radius:7px;pointer-events:none}.tg-back{background:radial-gradient(ellipse at 50% 35%,#63487544,transparent 65%),repeating-conic-gradient(from 45deg,#eed4aa06 0 25%,transparent 0 50%) 0 0/13px 13px,#14142b}.tg-card-corner{position:absolute;top:12px;left:15px;font-size:19px}.tg-seal{display:grid;place-items:center;width:75px;height:75px;font:60px Georgia;border:1px solid #bc945c;border-radius:50%;box-shadow:0 0 0 7px #ac855716,0 0 0 8px #b3945855,0 0 35px #ab6fc133;margin-bottom:25px;text-shadow:0 0 20px #d2a954}.tg-card-brand{font:12px Georgia;letter-spacing:3px}.tg-card-hint{font-size:8px;letter-spacing:.5px;color:#bdabce;margin-top:7px}.tg-front{transform:rotateY(180deg);background:#151025;justify-content:flex-end;box-shadow:0 0 22px #e7b55c55,0 10px 20px #0009,3px 3px #977145}.tg-card-art,.tg-detail-art,.tg-mini.has-art{background-image:url('../images/horoscope/tarot-arcana.webp');background-size:300% 200%;background-position:var(--art-x) var(--art-y)}.tg-card-art{position:absolute;inset:0}.tg-front:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#10081c44,transparent 30%,transparent 65%,#10081c 92%);z-index:1}.tg-card-number{position:absolute;top:12px;left:0;right:0;z-index:2;font:13px Georgia;text-shadow:0 2px 4px #000;text-align:center}.tg-card-name{z-index:2;font:11px Georgia;letter-spacing:.8px;text-align:center}.tg-card-thai{z-index:2;font-size:10px;margin:3px 0 13px}.tg-pick-order{display:none;position:absolute;top:-13px;right:-6px;width:26px;height:26px;place-items:center;border-radius:50%;background:#f1cf8d;color:#35212d;font-size:12px;border:2px solid #9d6a3f;box-shadow:0 3px 9px #0006}.is-open .tg-pick-order{display:grid}.tg button.tg-card:disabled{opacity:.38;cursor:default}.tg-progress{text-align:center;margin:15px 0 17px;color:#d9c9e6;font-size:13px;min-height:52px}.tg-progress>span{display:block;font-size:19px;letter-spacing:9px;color:#f2c980;margin-bottom:5px}.tg-actions{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:13px;max-width:780px;margin:auto}.tg-actions button,.tg-primary{display:flex;align-items:center;justify-content:center;gap:15px;min-height:66px;border-radius:17px;padding:11px 14px;color:#fff0d8;font:inherit;cursor:pointer}.tg-primary{border:1px solid #ffe3a0;background:radial-gradient(ellipse at 50% 0%,#ba58eeaa,transparent 80%),linear-gradient(120deg,#421583,#872dab,#511784);box-shadow:inset 0 0 0 3px #fad38f33,0 0 24px #b242da55;text-shadow:0 2px 7px #351251;font-size:20px!important}.tg-actions button small{display:block;font-size:10px;font-weight:400;color:#c6b6d2;margin-top:3px}.tg-primary small{color:#ead0ee!important}.tg-secondary{border:1px solid #c795585f;background:linear-gradient(135deg,#282037cc,#100d22ef);font-size:14px!important}.tg-secondary>span:first-child{font-size:27px;color:#e9c687}.tg-actions button:hover:not(:disabled){filter:brightness(1.2)}.tg-actions button:disabled{opacity:.48;cursor:default}.tg-reading{position:relative;display:flex;gap:23px;align-items:center;margin:29px auto 0;padding:22px 26px;border:1px solid #b98b52;border-radius:20px;background:radial-gradient(ellipse at right bottom,#60335f44,transparent 65%),linear-gradient(110deg,#131126ed,#191026ed);box-shadow:inset 0 0 0 4px #d3a75a0e;min-height:202px}.tg-mini{flex:0 0 92px;height:145px;border:1px solid #c8a268;border-radius:7px;display:grid;place-items:center;color:#eed296;background:#201735;position:relative;overflow:hidden}.tg-mini>span{font:60px Georgia}.tg-mini.has-art>span{position:absolute;bottom:0;width:100%;background:#0b071adb;padding:7px 2px;text-align:center;font:9px Georgia;letter-spacing:1px}.tg-kicker{font-size:10px!important;letter-spacing:1.5px;color:#dabb8b;margin:0 0 7px!important}.tg-reading h2{font-size:23px;font-weight:500;color:#f6dfa9;margin-bottom:9px!important}.tg-reading-copy{z-index:1;flex:1;min-width:0}.tg-reading-copy>p:not(.tg-kicker){font-size:14px;line-height:1.9;color:#d4c7e1}.tg-reading-star{position:absolute;font:130px Georgia;right:16px;top:0;color:#ddb58d0a;pointer-events:none}.tg-reading-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}.tg-reading-tabs:empty{display:none}.tg-reading-tabs button{border:1px solid #8f728744;background:#21192e;border-radius:20px;color:#c5b5d1;font-size:10px;padding:5px 10px}.tg-reading-tabs button[aria-pressed=true]{color:#ffdea3;border-color:#c09a62;background:#4d30444d}.tg-note{text-align:center;color:#ad9eb8;font-size:10px!important;line-height:1.7;margin:15px 0 0!important}.tg-stars{position:absolute;inset:120px 5% auto;display:flex;justify-content:space-between;color:#f4d695;font-size:22px;z-index:-1;animation:tg-twinkle 5s ease-in-out infinite;pointer-events:none}.tg-stars span:nth-child(2){margin-top:130px}.tg-stars span:last-child{margin-top:80px}.tg.is-shuffling .tg-card{animation:tg-shuffle .6s ease-in-out both;animation-delay:calc(var(--i)*18ms)}
.tg-dialog{color:#efe4f3;font-family:'Noto Sans Thai',sans-serif;background:radial-gradient(ellipse at top,#3b214c,#110c20 70%);border:1px solid #c7a168;border-radius:24px;width:min(690px,calc(100% - 28px));max-height:88dvh;overflow:auto;padding:30px;box-shadow:0 30px 90px #000a}.tg-dialog::backdrop{background:#080315d9;backdrop-filter:blur(7px)}.tg-dialog h2{font-size:25px;color:#ffe2a6;margin:8px 35px 8px 0}.tg-dialog>p:not(.tg-note){color:#cbb6d8;font-size:13px}.tg-close{position:absolute;top:15px;right:15px;width:36px;height:36px;border:1px solid #c4a47066;background:#ffffff07;color:#ffe1b8;border-radius:50%;font-size:25px;cursor:pointer}.tg-detail-art{flex:0 0 80px;height:125px;border:1px solid #b78b4e;border-radius:7px}.tg-dialog article{display:flex;gap:18px;padding:20px 0;border-bottom:1px solid #f8dda520}.tg-dialog article h3{font-size:17px;color:#ead4a7;margin:0 0 8px}.tg-dialog article p:not(.tg-kicker){font-size:13px;line-height:1.9;margin:0;color:#d6c6de}.tg-dialog-done{width:100%;margin-top:20px;min-height:48px;font-size:15px!important}.tg-dialog button:focus-visible{outline:3px solid #ffe0a4;outline-offset:3px}
@keyframes tg-twinkle{50%{opacity:.35;filter:drop-shadow(0 0 10px #fff)}}@keyframes tg-shuffle{50%{transform:translateX(calc((2.5 - var(--i))*35px)) translateY(-22px) rotate(0deg)}}
@media(min-width:1000px){.tg-topic-wrap{margin-top:235px}.tg-heading{margin-top:32px!important}.tg-deck{min-height:278px}.tg button.tg-card{width:151px;flex-basis:151px;height:239px}.tg-seal{width:83px;height:83px;font-size:67px}}
@media(max-width:700px){.horo-nav{height:72px}.horo-brand{font-size:22px;gap:8px}.horo-brand small{font-size:8px}.brand-moon{font-size:42px}.horo-profile{width:36px;height:36px}.tg{padding:17px 4% 18px}.tg-topline{font-size:8px;letter-spacing:2px}.tg-topline>div{gap:8px}.tg-free{font-size:9px}.tg-heading{margin-top:22px!important}.tg-heading h1{font-size:39px}.tg-heading>p:first-child{font-size:11px}.tg-heading>p:last-child{font-size:12px}.tg-topic-wrap{margin-top:160px}.tg-scene{background-size:auto,auto 680px;background-position:center top,center top}.tg-topics{gap:7px}.tg-topics button{display:flex;flex-direction:column;text-align:center;padding:9px 4px;border-radius:12px}.tg-topics button>span{font-size:26px;line-height:1.1}.tg-topics button>b{font-size:13px;margin-top:4px}.tg-topics small{font-size:8px;margin-top:2px}.tg-deck{min-height:203px;padding-top:10px}.tg button.tg-card{flex-basis:16.7%;width:16.7%;height:auto;aspect-ratio:.62;margin:0 -.4%;max-height:208px}.tg-face{border-width:1.5px;border-radius:8px}.tg-face:after{inset:5px}.tg-seal{width:45px;height:45px;font-size:39px;margin-bottom:18px;box-shadow:0 0 0 4px #ac855716,0 0 0 5px #b3945855}.tg-card-corner{font-size:13px;top:8px;left:10px}.tg-card-brand{font-size:8px;letter-spacing:1.3px}.tg-card-hint{font-size:6px;margin-top:5px}.tg-card-name{font-size:8px;letter-spacing:0}.tg-card-thai{font-size:8px;margin-bottom:8px}.tg-card-number{font-size:10px;top:8px}.tg-actions{gap:8px;grid-template-columns:1fr 1.45fr 1fr}.tg-actions button{padding:10px 5px;gap:5px;min-height:62px;border-radius:13px}.tg-primary{font-size:17px!important}.tg-secondary{font-size:11px!important}.tg-actions button small{font-size:8px}.tg-secondary>span:first-child{font-size:20px}.tg-reading{padding:18px 16px;gap:16px;min-height:180px;margin-top:23px}.tg-mini{flex-basis:74px;height:119px}.tg-reading h2{font-size:19px}.tg-reading-copy>p:not(.tg-kicker){font-size:12px}.tg-reading-tabs button{font-size:9px}.tg-table{padding-top:24px}.tg-table-caption{font-size:8px;letter-spacing:2px;margin-bottom:17px!important}.tg-table-ring{height:160px;top:100px}.tg-progress{margin-top:4px}.tg-topline button{font-size:10px;padding:5px 9px}}
@media(max-width:450px){.tg-heading h1{font-size:34px}.tg-heading h1 span{margin-left:6px}.tg-topic-wrap{margin-top:151px}.tg-deck{min-height:166px;padding-left:0;padding-right:0}.tg-card-name{font-size:6px}.tg-card-thai{font-size:7px}.tg-seal{width:33px;height:33px;font-size:29px;margin-bottom:14px}.tg-card-brand{font-size:6px}.tg-card-hint{display:none}.tg-pick-order{width:20px;height:20px;font-size:10px}.tg-reading{align-items:flex-start;gap:12px}.tg-mini{flex-basis:61px;height:99px}.tg-reading h2{font-size:17px}.tg-kicker{font-size:8px!important;letter-spacing:.5px}.tg-reading-copy>p:not(.tg-kicker){font-size:12px}.tg-secondary>span:first-child{display:none}.tg-actions button small{font-size:7px}.tg-primary{font-size:15px!important}.tg-progress{font-size:11px}.tg-topics small{font-size:7px}.tg-detail-art{flex-basis:60px;height:95px}.tg-dialog{padding:25px 18px}.tg-dialog article{gap:13px}.tg-dialog article h3{font-size:15px}}
@media(prefers-reduced-motion:reduce){.tg *,.tg *:before,.tg *:after{animation:none!important;transition:none!important}.tg-deck{transform:none!important}}
/* Keep the title above the portrait, with a continuous fade into the table. */
.tg-scene{background-image:linear-gradient(180deg,#10091e 0px,#10091e44 185px,transparent 330px,#10091e33 660px,#10091e 900px),url('../images/horoscope/tarot-sanctuary.webp');background-size:100% 100%,100% auto;background-position:center top,center 145px;background-repeat:no-repeat}
@media(max-width:700px){.tg-scene{background-image:linear-gradient(180deg,#10091e 0px,#10091e44 150px,transparent 260px,#10091e55 600px,#10091e 800px),url('../images/horoscope/tarot-sanctuary.webp');background-size:100% 100%,auto 680px;background-position:center top,center 145px}}
.tg-scene{background-image:linear-gradient(180deg,#10091e 135px,#10091eb3 195px,transparent 300px,#10091e33 660px,#10091e 900px),url('../images/horoscope/tarot-sanctuary.webp')}
@media(max-width:700px){.tg-scene{background-image:linear-gradient(180deg,#10091e 135px,#10091eaa 195px,transparent 270px,#10091e55 600px,#10091e 800px),url('../images/horoscope/tarot-sanctuary.webp')}}
/* Responsive card geometry: never stretch the face to fill the flex cross-axis. */
.tg-deck{align-items:flex-start}
.tg button.tg-card{height:auto;aspect-ratio:2 / 3;align-self:flex-start}
.tg-card-art,.tg-detail-art,.tg-mini.has-art{background-size:300% 200%}
.tg-mini,.tg-detail-art{height:auto;aspect-ratio:2 / 3;align-self:flex-start}
.tg button.tg-card:focus-visible{outline:3px solid #ffe1a4;outline-offset:5px}
@media(max-width:980px){
 .tg-deck{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:start;justify-items:center;gap:12px;padding:14px 0 18px;min-height:0;transform:none}
 .tg button.tg-card{width:100%;max-width:139px;max-height:none;min-height:0;margin:0;top:0!important;transform:none;flex:none}
 .tg button.tg-card.is-open{transform:none}
 .tg button.tg-card:hover:not(:disabled),.tg button.tg-card:focus-visible{transform:translateY(-4px)}
 .tg-table-ring{width:95%;left:2.5%;top:45px}
}
@media(max-width:600px){
 .tg-deck{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 16px;max-width:420px;margin:auto;padding:14px 7px 18px}
 .tg button.tg-card{max-width:128px}
 .tg-seal{width:48px;height:48px;font-size:42px;margin-bottom:21px}
 .tg-card-brand{font-size:10px;letter-spacing:1.5px}
 .tg-card-hint{display:block;font-size:8px;margin-top:7px}
 .tg-card-number{font-size:12px;top:9px}
 .tg-card-name{font-size:10px;letter-spacing:0}
 .tg-card-thai{font-size:10px;margin-bottom:11px}
 .tg-pick-order{width:26px;height:26px;font-size:12px;right:-5px;top:-10px}
 .tg-table-ring{height:290px;top:120px}
 .tg-topics button{min-height:82px}.tg-topics button>b{font-size:14px}.tg-topics small{display:none}
 .tg-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .tg-actions .tg-primary{grid-column:1 / -1;grid-row:1;min-height:64px;font-size:20px!important}
 .tg-actions .tg-secondary{font-size:14px!important;min-height:60px}
 .tg-actions button small{font-size:11px}
 .tg-actions .tg-secondary>span:first-child{display:inline;font-size:22px}
 .tg-reading-copy>p:not(.tg-kicker){font-size:14px;line-height:1.85}
 .tg-reading{gap:14px;padding:18px 14px}.tg-mini{flex-basis:64px}
 .tg-reading h2{font-size:19px;line-height:1.5}
 .tg-reading-tabs button{min-height:44px;padding:8px 12px;font-size:12px}
 .tg-kicker{font-size:10px!important;line-height:1.7}
 .tg-progress{font-size:13px;margin-top:8px}
 .tg-note{font-size:12px!important}
 .tg-topline button{min-height:44px;min-width:44px}
 .tg-close{width:44px;height:44px;top:10px;right:10px}
 .tg-dialog h2{margin-right:36px}.tg-dialog article>div:last-child{min-width:0}
 .tg-dialog article p:not(.tg-kicker){font-size:14px}
 .tg.is-shuffling .tg-card{animation-name:tg-mobile-shuffle}
}
@media(max-width:350px){
 .tg-deck{gap:20px 12px;padding-inline:4px}.tg-seal{width:39px;height:39px;font-size:34px;margin-bottom:17px}
 .tg-card-brand{font-size:9px}.tg-card-name{font-size:9px}.tg-card-thai{font-size:9px}
 .tg-heading h1{font-size:30px}.tg-topline{letter-spacing:1px}.tg-topline>div{gap:5px}
 .tg-reading{flex-wrap:wrap}.tg-reading-copy{flex-basis:180px}
}
@keyframes tg-mobile-shuffle{50%{transform:translateY(-8px) rotate(3deg)}}
