/* Illustrated invitation: content-sized on Safari, never a stretched dialog. */
#tarot-preview .reading-invitation{position:fixed;inset:auto 24px max(24px,env(safe-area-inset-bottom)) auto;z-index:40;width:460px;max-width:calc(100vw - 32px);height:auto;min-height:0;max-height:calc(100dvh - 36px);overflow:auto;display:grid;grid-template-columns:122px minmax(0,1fr);gap:14px 20px;padding:28px 28px 22px 20px;background:#252130;border-radius:16px;box-shadow:0 16px 60px #0007;animation:invitation-enter .5s var(--ease)}
#tarot-preview .invite-art{grid-row:1/3;align-self:center;width:122px;height:160px;transform:rotate(-5deg)}
#tarot-preview .invite-art img{display:block;width:100%;height:100%;object-fit:contain}
#tarot-preview .invite-copy{padding-right:14px}
#tarot-preview .invite-copy h2{font-size:31px;line-height:1.05;font-weight:500;text-wrap:balance}
#tarot-preview .invite-copy p{font-size:14px;line-height:1.5;color:#c8bed0;margin-top:12px}
#tarot-preview .invite-close{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:none;color:#eee7dc;font:26px/1 Arial,sans-serif}
#tarot-preview .invite-close:hover{background:#c6b38e16}
#tarot-preview .invite-actions{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
#tarot-preview .invite-start{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:46px;padding:12px 18px;background:#d7c4a5;color:#27212e;border:0;border-radius:30px;font-size:14px;transition:background .25s,translate .25s}
#tarot-preview .invite-start:hover{background:#ebd9b9;translate:0 -2px}
#tarot-preview .invite-dismiss{background:none;border:0;padding:10px 0;color:#c8bed0;font-size:13px;min-height:44px}
/* The whole product card is the link. Hover art has no redundant toggle. */
#tarot-preview .site-product>a[data-product]{display:block;width:100%;padding:0;text-align:left}
#tarot-preview .site-product-image{position:relative;aspect-ratio:3/4;background:#f3ebdd;overflow:hidden}
#tarot-preview .site-product-image>img{width:100%;height:100%;object-fit:contain;transform:none;transition:opacity .35s}
#tarot-preview .site-product-image>.collection-meaning{position:absolute;inset:0;opacity:0;pointer-events:none}
#tarot-preview .site-product>a:focus-visible .quick-view{transform:none}
@media(hover:hover) and (pointer:fine){#tarot-preview .site-product>a:hover .collection-meaning{opacity:1}#tarot-preview .site-product>a:hover .quick-view{transform:none}}
/* Layout owns the settled state. Animations must never leave content hidden. */
#cat-tarot-ritual .rt-main{opacity:1;transform:none}
#cat-tarot-ritual .rt-grid-card,#cat-tarot-ritual .rt-hex-pair .rt-yao{opacity:1;transform:none}
#cat-tarot-ritual .rt-motion-ghost{transform-origin:center;pointer-events:none;backface-visibility:hidden;will-change:transform}
#cat-tarot-ritual .rt-slot-card{display:grid;place-items:center;width:38px;height:61px;flex:none;position:relative}
#cat-tarot-ritual .rt-slot-number{font:23px/1 Georgia,serif;color:#c6b38e}
#cat-tarot-ritual .rt-slot-card .rt-slot-back{display:block;width:100%;height:100%;aspect-ratio:5/8;padding:2px}
#cat-tarot-ritual .rt-slot-back .rt-back-top{display:none}
#cat-tarot-ritual .rt-picked-slots>div{height:100px;gap:8px;padding:8px}
#cat-tarot-ritual .rt-picked-slots>div>.rt-slot-card{height:61px;font-size:inherit}
#cat-tarot-ritual .rt-picked-slots p{line-height:1.2}
#cat-tarot-ritual .rt-flip-card,#cat-tarot-ritual .rt-flip-inner{transform-style:preserve-3d}
#cat-tarot-ritual .rt-flip-front,#cat-tarot-ritual .rt-flip-back{backface-visibility:hidden;-webkit-backface-visibility:hidden}
#cat-tarot-ritual[data-screen=reveal] .rt-reveal-caption{min-height:126px;padding-top:22px}
#cat-tarot-ritual[data-screen=reveal] .rt-actions{min-height:116px;margin-top:14px;justify-content:flex-start}
#cat-tarot-ritual .rt-reveal-caption p{line-height:1.55}
#cat-tarot-ritual[data-busy=true] .rt-main .rt-primary:disabled{opacity:1}
/* Necklace recommendation: full photograph, no arch mask or thumbnail cap. */
#cat-tarot-ritual[data-screen=reading] .rt-main{max-width:1050px;padding:32px 36px}
#cat-tarot-ritual .rt-result-product{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:'photo heading' 'photo offer';column-gap:42px;row-gap:20px;text-align:left;align-items:start;margin:0 auto 60px}
#cat-tarot-ritual .rt-product-heading{grid-area:heading;align-self:end;padding-top:24px}
#cat-tarot-ritual .rt-product-heading .rt-eyebrow{display:none}
#cat-tarot-ritual .rt-product-heading h1{font-size:clamp(40px,4.5vw,62px);line-height:1.05}
#cat-tarot-ritual .rt-result-category{color:#c8bed0;font-size:15px;margin-top:10px}
#cat-tarot-ritual .rt-result-photo{grid-area:photo;display:block;width:100%;max-width:none;height:auto;max-height:none;aspect-ratio:3/4;object-fit:contain;border:0;border-radius:0;box-shadow:none;background:#f3ebdd}
#cat-tarot-ritual .rt-result-offer{grid-area:offer;width:100%;max-width:none}
#cat-tarot-ritual .rt-result-price{font-size:36px;line-height:1.2;margin:0 0 24px}
#cat-tarot-ritual .rt-result-price span{font-size:14px}
#cat-tarot-ritual .rt-product-reason{font-size:15px;line-height:1.6}
/* Individual product page: gallery first, quiet editorial details. */
#tarot-preview .necklace-page{background:#17131e}
#tarot-preview .product-breadcrumb{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:22px 5%;font-size:13px;color:#c8bed0}
#tarot-preview .product-breadcrumb a{text-decoration:underline;text-underline-offset:4px}
#tarot-preview .necklace-main{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:7%;padding:0 5% 80px;align-items:start}
#tarot-preview .necklace-gallery{min-width:0}
#tarot-preview .necklace-photo{display:block;position:relative;width:100%;padding:0;border:0;background:#f3ebdd;cursor:zoom-in;overflow:hidden;color:#322a37}
#tarot-preview .necklace-photo>img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}
@media(min-width:761px){#tarot-preview .necklace-photo>img{height:clamp(480px,calc(100svh - 240px),880px);aspect-ratio:auto}}
#tarot-preview .photo-enlarge{position:absolute;bottom:16px;right:16px;display:flex;align-items:center;gap:8px;padding:10px 14px;background:#faf5eccf;border-radius:30px;font-size:13px;box-shadow:0 3px 16px #3a2d3910}
#tarot-preview .photo-enlarge svg{width:18px;height:18px}
#tarot-preview .image-note{font-size:11px;color:#bdb2c5;line-height:1.5;margin-top:10px}
#tarot-preview .necklace-information{position:sticky;top:24px;padding:25px 0 0;min-width:0}
#tarot-preview .necklace-information h1{font-size:clamp(48px,4.8vw,76px);line-height:1.04;text-wrap:balance}
#tarot-preview .necklace-category{font-size:15px;letter-spacing:.04em;color:#d1c5d6;margin-top:12px}
#tarot-preview .necklace-price{font-size:30px;line-height:1.2;margin-top:28px}
#tarot-preview .necklace-price>span:last-child{font-size:13px;color:#c8bed0}
#tarot-preview .necklace-reminder{font-size:19px;line-height:1.6;max-width:36ch;margin-top:28px;color:#e4d8e5}
#tarot-preview .necklace-keywords{display:flex;flex-wrap:wrap;gap:8px 20px;list-style:none;padding:0;margin:20px 0 28px;color:#d7c4a5;font-size:13px}
#tarot-preview .necklace-keywords li+li:before{content:'·';margin-right:20px}
#tarot-preview .necklace-order{padding:0 0 28px;border-bottom:1px solid #51445a}
#tarot-preview .necklace-order .necklace-coming{width:100%;border:0;border-radius:32px;background:#d7c4a5;color:#27212e;box-shadow:none;min-height:54px;opacity:1;font-weight:400;letter-spacing:.03em}
#tarot-preview .necklace-order .necklace-coming:after{display:none}
#tarot-preview .necklace-order .necklace-coming:before{display:none}
#tarot-preview .necklace-order>p{font-size:13px;color:#bfb2c9;line-height:1.5;margin-top:12px;max-width:48ch}
#tarot-preview .necklace-details details{padding:14px 0}
#tarot-preview .necklace-details summary{font-size:16px}
#tarot-preview .necklace-details details p{font-size:15px;line-height:1.65;padding:12px 0 4px}
#tarot-preview .necklace-back{display:flex;justify-content:space-between;align-items:center;padding:22px 0 10px;color:#d7c4a5;font-size:15px}
#tarot-preview .necklace-reading{display:block;margin-top:12px;font-size:13px}
#tarot-preview .necklace-story{display:grid;grid-template-columns:220px minmax(0,600px);align-items:center;justify-content:center;gap:60px;background:#211b2a;padding:70px 7%}
#tarot-preview .necklace-story-art img{width:100%;height:auto;display:block}
#tarot-preview .necklace-story h2{font-size:48px;line-height:1.08}
#tarot-preview .necklace-story p{font-size:17px;color:#d1c5d6;margin-top:24px;line-height:1.65;max-width:55ch}
#tarot-preview .necklace-story .necklace-reflection-note{font-size:13px;color:#baacc5}
#product-zoom{position:fixed;inset:0;margin:auto;width:min(1100px,100vw);height:95dvh;max-width:100vw;max-height:100dvh;border:0;padding:0;background:#f3ebdd;color:#27212e;overflow:hidden}
#product-zoom::backdrop{background:#100e16e8}
#product-zoom .zoom-close{position:absolute;z-index:2;right:16px;top:16px;border:0;border-radius:30px;min-height:44px;padding:10px 18px;background:#211b2a;color:#f4ecde;font-size:15px;display:flex;gap:18px;align-items:center;cursor:pointer}
#product-zoom .zoom-scroll{height:100%;overflow:auto;overscroll-behavior:contain}
#product-zoom img{display:block;width:max(900px,100%);max-width:none;height:auto}
@media(max-width:760px){
 #tarot-preview .reading-invitation{right:16px;bottom:max(16px,env(safe-area-inset-bottom));width:400px;grid-template-columns:94px minmax(0,1fr);gap:12px;padding:24px 20px 16px 12px}
 #tarot-preview .invite-art{width:94px;height:126px;grid-row:1}
 #tarot-preview .invite-copy{padding-right:12px}
 #tarot-preview .invite-copy h2{font-size:28px;line-height:1.02}
 #tarot-preview .invite-copy p{font-size:13px;line-height:1.45;margin-top:10px}
 #tarot-preview .invite-actions{grid-column:1/-1;justify-content:center;gap:8px 20px}
 #cat-tarot-ritual .rt-picked-slots{margin-bottom:16px}
 #cat-tarot-ritual .rt-picked-slots>div{height:90px;padding:4px;gap:6px}
 #cat-tarot-ritual .rt-slot-card,#cat-tarot-ritual .rt-picked-slots>div>.rt-slot-card{width:34px;height:54.4px}
 #cat-tarot-ritual .rt-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:320px;gap:12px 10px}
 #cat-tarot-ritual .rt-grid-card,#cat-tarot-ritual .rt-grid-card .rt-back{aspect-ratio:5/8}
 #cat-tarot-ritual .rt-reveal-touch{width:clamp(145px,22svh,190px)}
 #cat-tarot-ritual[data-screen=reveal] .rt-reveal-caption{min-height:120px;padding-top:18px}
 #cat-tarot-ritual[data-screen=reveal] .rt-actions{min-height:110px;margin-top:12px}
 #cat-tarot-ritual .rt-main{padding:16px 22px}
 #cat-tarot-ritual[data-screen=reading] .rt-main{padding:22px 20px;max-width:500px}
 #cat-tarot-ritual .rt-result-product{display:flex;flex-direction:column;gap:18px;text-align:center;margin-bottom:42px;width:100%}
 #cat-tarot-ritual .rt-product-heading{padding:0;align-self:auto}
 #cat-tarot-ritual .rt-product-heading h1{font-size:44px}
 #cat-tarot-ritual .rt-result-photo{width:100%;max-width:none;max-height:none;border-radius:0}
 #cat-tarot-ritual .rt-result-price{font-size:32px;margin-bottom:18px}
 #cat-tarot-ritual .rt-result-offer .rt-product-reason{font-size:14px;line-height:1.6}
 #tarot-preview .product-breadcrumb{padding:18px 20px;font-size:12px}
 #tarot-preview .necklace-main{grid-template-columns:1fr;padding:0 20px 46px;gap:28px}
 #tarot-preview .necklace-information{position:static;padding:0}
 #tarot-preview .necklace-information h1{font-size:48px}
 #tarot-preview .necklace-price{margin-top:20px}
 #tarot-preview .necklace-reminder{font-size:18px;margin-top:20px}
 #tarot-preview .necklace-keywords{margin:18px 0 24px}
 #tarot-preview .necklace-story{grid-template-columns:86px minmax(0,1fr);gap:22px;padding:42px 24px;align-items:start}
 #tarot-preview .necklace-story h2{font-size:34px}
 #tarot-preview .necklace-story p{font-size:15px;margin-top:18px}
 #tarot-preview .photo-enlarge{right:12px;bottom:12px;font-size:12px}
 #product-zoom{width:100vw;height:100dvh}
}
@media(prefers-reduced-motion:reduce){#tarot-preview .reading-invitation{animation:none}#tarot-preview .invite-start{transition:none}#tarot-preview .site-product-image>img{transition:none}}
