.tarot-share{display:inline-flex;align-items:center;gap:.7rem;color:#d6fdf6;border:1px solid rgba(94,234,212,.48);border-radius:999px;padding:.78rem 1.15rem;background:linear-gradient(120deg,rgba(73,31,122,.4),rgba(19,67,75,.28));box-shadow:inset 0 1px rgba(255,255,255,.08),0 10px 28px rgba(0,0,0,.22)}
.tarot-share svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.tarot-share .tarot-ig-dot{fill:currentColor;stroke:none}
.tarot-share-dialog{width:min(990px,calc(100% - 2rem));max-height:min(92svh,950px);padding:0;border:1px solid rgba(232,205,144,.38);border-radius:26px;background:#100b20;color:#f7f1e8;box-shadow:0 38px 120px rgba(0,0,0,.65);overflow:auto}
.tarot-share-dialog::backdrop{background:rgba(3,2,12,.84);backdrop-filter:blur(12px)}
.tarot-share-shell{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,360px);gap:clamp(1.3rem,4vw,3rem);padding:clamp(1.3rem,4vw,3rem);background:radial-gradient(circle at 80% 22%,rgba(134,72,216,.22),transparent 37%),linear-gradient(135deg,#160f29,#0b1020)}
.tarot-share-close{position:absolute;right:1rem;top:1rem;z-index:2;width:42px;height:42px;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:#151025;color:white;font-size:1.7rem;line-height:1;cursor:pointer}
.tarot-share-copy{min-width:0;padding-top:1rem}.tarot-share-copy .eyebrow{color:#dfc37f}.tarot-share-copy h2{font:400 clamp(2.2rem,4vw,3.8rem)/1.04 Georgia,serif;letter-spacing:-.035em;margin:.6rem 0 1rem;text-wrap:balance}.tarot-share-copy>p{max-width:47ch;line-height:1.6;color:#c9c1d6}
.tarot-share-copy form{display:grid;gap:.85rem;margin-top:1.8rem}.tarot-share-copy form>label,.tarot-share-copy legend{color:#e6d7b0;font-size:.75rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.tarot-share-copy input[name="name"]{width:100%;height:54px;border:1px solid rgba(215,184,90,.38);border-radius:14px;padding:0 1rem;color:#fff;background:rgba(255,255,255,.065);font:inherit;outline:none}.tarot-share-copy input[name="name"]:focus{border-color:#79e6dd;box-shadow:0 0 0 3px rgba(94,234,212,.12)}
.tarot-share-timestamp{color:#afa4bf;font-size:.82rem}
.tarot-share-copy fieldset{display:flex;gap:.7rem;flex-wrap:wrap;border:0;padding:0;margin:.45rem 0 0}.tarot-share-copy legend{margin-bottom:.6rem}.tarot-share-copy fieldset label{position:relative;min-width:142px;cursor:pointer}.tarot-share-copy fieldset input{position:absolute;opacity:0;inset:0}.tarot-share-copy fieldset span{display:flex;flex-direction:column;gap:.1rem;padding:.8rem 1rem;border:1px solid rgba(215,184,90,.28);border-radius:13px;background:rgba(255,255,255,.03);font-weight:700;transition:border-color .2s,background .2s}.tarot-share-copy fieldset small{color:#a89eb8;font-size:.7rem;font-weight:500}.tarot-share-copy fieldset input:checked+span{border-color:#65ddd5;background:rgba(94,234,212,.11)}.tarot-share-copy fieldset input:focus-visible+span{outline:2px solid #fff;outline-offset:3px}
.tarot-share-generate,.tarot-share-download,.tarot-share-actions button{min-height:48px;border:1px solid rgba(152,115,222,.75);border-radius:999px;padding:.7rem 1.2rem;color:#fff;background:linear-gradient(100deg,#6c35bd,#234b74);font:700 .87rem system-ui,sans-serif;cursor:pointer;text-align:center}.tarot-share-generate{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.6rem}.tarot-share-generate:disabled{opacity:.5;cursor:wait}
.tarot-share-progress{margin-top:1rem;color:#c7eae4;font-size:.82rem}.tarot-share-progress i{display:block;height:4px;margin-top:.55rem;border-radius:10px;background:linear-gradient(90deg,#8b5cf6,#5eead4);transform-origin:left;animation:tarot-share-loading 1.3s ease-in-out infinite}
.tarot-share-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1.3rem}.tarot-share-download{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.tarot-share-actions button{background:rgba(94,234,212,.11);border-color:rgba(94,234,212,.55)}
.tarot-share-actions[hidden],.tarot-share-progress[hidden],.tarot-share-preview [hidden]{display:none!important}
.tarot-share-note{font-size:.75rem!important;color:#aa9fb7!important;margin:1rem 0 0}
.tarot-share-preview{min-height:500px;border:1px solid rgba(229,195,117,.3);border-radius:18px;display:grid;place-items:center;padding:1rem;background:radial-gradient(circle at 50% 35%,rgba(153,83,228,.3),transparent 50%),#0b0917;box-shadow:inset 0 0 45px rgba(0,0,0,.4)}.tarot-share-preview img{max-height:min(74svh,760px);width:auto;max-width:100%;border-radius:8px;box-shadow:0 20px 50px rgba(0,0,0,.5)}.tarot-share-preview [data-tarot-share-placeholder]{font:italic 1.4rem Georgia,serif;text-align:center;line-height:2;color:#bfa9d2;max-width:190px}.tarot-share-preview span{color:#e4c989}
@keyframes tarot-share-loading{0%{transform:scaleX(.03)}60%{transform:scaleX(.82)}100%{transform:scaleX(1)}}
@media(max-width:740px){.tarot-share-dialog{width:100%;height:100svh;max-height:100svh;border:0;border-radius:0}.tarot-share-shell{grid-template-columns:1fr;padding:4rem 1.25rem 2rem;gap:2rem}.tarot-share-close{right:1rem;top:1rem}.tarot-share-copy{padding-top:0}.tarot-share-copy h2{font-size:clamp(2.25rem,10vw,3.4rem)}.tarot-share-preview{min-height:320px}.tarot-share-preview img{max-height:480px}.tarot-share-actions>*{flex:1}}
@media(prefers-reduced-motion:reduce){.tarot-share-progress i{animation:none}}
