/* Quiet information cards keep the same breathing room as the purchase tickets. */
.commerce-stories .commerce-details{gap:20px}
.commerce-stories .commerce-detail{position:relative;isolation:isolate;min-width:0;display:flex;flex-direction:column;align-items:start;padding:clamp(24px,2.4vw,32px);border:1px solid var(--theme-line,var(--line));border-radius:24px;background:var(--theme-surface,var(--surface));box-shadow:inset 0 1px 0 #fff5e608}
.commerce-stories .commerce-detail>span{display:grid;place-items:center;flex:none;width:38px;height:38px;margin:0;border:1px solid color-mix(in srgb,var(--theme-accent,var(--accent)) 28%,transparent);border-radius:13px;background:color-mix(in srgb,var(--theme-accent,var(--accent)) 8%,transparent);color:var(--theme-accent,var(--accent));font-size:11px;line-height:1}
.commerce-stories .commerce-detail h3{margin:20px 0 12px;font-size:20px;line-height:1.35;letter-spacing:-.025em}
.commerce-stories .commerce-detail p{margin:0;max-width:40ch;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:1000px){.commerce-stories .commerce-details{grid-template-columns:1fr;gap:16px}.commerce-stories .commerce-detail{padding:24px}.commerce-stories .commerce-detail h3{margin-top:16px}.commerce-stories .commerce-detail p{max-width:65ch}}
@media(max-width:480px){.commerce-stories .commerce-detail{padding:22px;border-radius:22px}}
/* Prepainted light moves on its own layer instead of repainting a pointer gradient. */
.commerce-stories .commerce-get{position:relative;isolation:isolate}
.commerce-stories .commerce-details[data-offer-motion=scroll] .commerce-detail,.commerce-stories .commerce-get[data-offer-motion=scroll]{transform:perspective(1000px) translate3d(0,var(--offer-lift,0px),0) rotateX(var(--offer-tilt-x,0deg)) rotateY(var(--offer-tilt-y,0deg))}
.commerce-stories :is(.commerce-detail,.commerce-get)>:not(.detail-magic):not(.story-magic-layer){position:relative;z-index:1}
.commerce-stories .detail-magic{position:absolute;inset:0;z-index:0;border-radius:inherit;overflow:hidden;pointer-events:none;opacity:var(--offer-pointer-light,0)}
.commerce-stories .detail-magic-light{position:absolute;inset:0;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--theme-accent,var(--accent)) 22%,transparent),transparent 70%);transform:translate3d(calc(var(--offer-pointer-x,50%) - 50%),calc(var(--offer-pointer-y,50%) - 50%),0) scale(1.5)}
.commerce-stories :is(.commerce-detail,.commerce-get)::after{content:'';position:absolute;inset:-1px;z-index:0;border-radius:inherit;border:1px solid color-mix(in srgb,var(--theme-accent,var(--accent)) 48%,transparent);box-shadow:0 12px 32px color-mix(in srgb,var(--theme-accent,var(--accent)) 10%,transparent),inset 0 0 22px color-mix(in srgb,var(--theme-accent,var(--accent)) 5%,transparent);pointer-events:none;opacity:var(--offer-pointer-light,0)}
.commerce-stories :is(.commerce-details[data-offer-tilt=active] .commerce-detail,.commerce-get[data-offer-tilt=active]){will-change:transform}
.commerce-stories [data-offer-tilt=active] .detail-magic,.commerce-stories :is(.commerce-details[data-offer-tilt=active] .commerce-detail,.commerce-get[data-offer-tilt=active])::after{will-change:opacity}
.commerce-stories [data-offer-tilt=active] .detail-magic-light{will-change:transform}
:root[data-motion=reduced] .commerce-stories :is(.commerce-detail,.commerce-get){transform:none!important}
:root[data-motion=reduced] .commerce-stories .detail-magic,:root[data-motion=reduced] .commerce-stories :is(.commerce-detail,.commerce-get)::after{display:none}
@media(prefers-reduced-motion:reduce),(hover:none),(pointer:coarse){.commerce-stories :is(.commerce-detail,.commerce-get){transform:none!important}.commerce-stories .detail-magic,.commerce-stories :is(.commerce-detail,.commerce-get)::after{display:none}}
/* Two enchanted tickets; text and buttons stay above the decorative layers. */
.commerce-stories .offer-grid[data-offer-motion]{isolation:isolate}
.commerce-stories .offer-grid[data-offer-motion=scroll] .offer-card{
  --offer-progress:.5;--offer-glow:1;
  transform-origin:center;
  transform:perspective(1500px) translate3d(0,calc((.5 - var(--offer-progress))*18px + var(--offer-lift,0px)),0) rotateX(var(--offer-tilt-x,0deg)) rotateY(calc(var(--ticket-side)*(1 - var(--offer-progress))*5deg + var(--offer-tilt-y,0deg))) rotateZ(calc(var(--ticket-side)*(.5 - var(--offer-progress))*1.5deg));
  transition:box-shadow .3s;
  box-shadow:0 calc(16px + var(--offer-pointer-light,0)*8px) 42px #05030d25,0 0 calc(var(--offer-pointer-light,0)*28px) #edc58313;
}
.commerce-stories .offer-grid[data-offer-tilt=active] .offer-card{will-change:transform}
.commerce-stories .offer-magic{position:absolute;inset:0;border-radius:inherit;pointer-events:none;overflow:hidden;z-index:0;opacity:var(--offer-glow,0)}
.commerce-stories .offer-magic::after{content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(ellipse at var(--offer-pointer-x,50%) var(--offer-pointer-y,50%),#fff3d62b,transparent 58%);opacity:var(--offer-pointer-light,0)}
.commerce-stories .offer-card>:not(.offer-magic):not(.offer-symbol){position:relative;z-index:1}
.commerce-stories .offer-symbol{z-index:1;transform:rotate(calc((var(--offer-progress,.5) - .5)*55deg)) scale(calc(1 + var(--offer-glow,0)*.12))}
.offer-magic-edge{position:absolute;inset:0;border-radius:inherit;padding:2px;background:conic-gradient(from calc(var(--offer-progress,.5)*360deg),transparent 0 10%,#edc583 20%,#fff3c7 27%,transparent 39% 58%,#edc58388 70%,transparent 84%);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude}
.offer-magic-sheen{position:absolute;inset:-35%;background:linear-gradient(115deg,transparent 40%,#edc58304 44%,#fff0b91c 50%,#edc58304 56%,transparent 60%);transform:translateX(calc(-70% + var(--offer-progress,.5)*140%)) rotate(-6deg)}
.offer-constellation{position:absolute;inset:auto 0 15%;width:100%;height:150px;color:#edc583;opacity:.25;transform:translateY(calc((.5 - var(--offer-progress,.5))*22px))}
.offer-constellation path{stroke:currentColor;stroke-width:1;stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--offer-progress,.5)*100)}
.offer-constellation circle{fill:currentColor}
.offer-magic-star{position:absolute;left:calc(6% + var(--star-index)*14%);top:calc(11% + var(--star-index)*11%);width:9px;height:9px;background:#ffe6a4;clip-path:polygon(50% 0,61% 37%,100% 50%,61% 62%,50% 100%,38% 62%,0 50%,38% 37%);opacity:.55;transform:translateY(calc((.5 - var(--offer-progress,.5))*(16px + var(--star-index)*9px))) rotate(calc(var(--offer-progress,.5)*180deg + var(--star-index)*31deg)) scale(calc(.45 + var(--offer-glow,0)*.55))}
.commerce-stories .offer-grid[data-offer-motion=reduced] .offer-magic{display:none}
.commerce-stories .offer-grid[data-offer-motion=reduced] .offer-card,.commerce-stories .offer-grid[data-offer-motion=reduced] .offer-symbol{transform:none;transition:none}
@media(max-width:760px){.commerce-stories .offer-grid[data-offer-motion=scroll] .offer-card{transform:perspective(1500px) translate3d(0,calc((.5 - var(--offer-progress))*8px + var(--offer-lift,0px)),0) rotateX(var(--offer-tilt-x,0deg)) rotateY(var(--offer-tilt-y,0deg)) rotateZ(calc(var(--ticket-side)*(.5 - var(--offer-progress))*.6deg))}.offer-constellation{opacity:.16}.offer-magic-star{width:7px;height:7px}}
@media(prefers-reduced-motion:reduce){.commerce-stories .offer-magic{display:none}.commerce-stories .offer-card,.commerce-stories .offer-symbol{transform:none!important;transition:none!important}}
