/* ===== Aurora background ===== */
canvas.aurora{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;
  filter:blur(12px) saturate(1.15);opacity:.9}

/* ===== Bottle cut-outs from the asset pack ===== */
.pd-visual{height:320px;display:grid;place-items:center;overflow:hidden}
.pd-bottle-img{height:300px;width:auto;object-fit:contain;
  filter:drop-shadow(0 14px 24px rgba(0,0,0,.45)) drop-shadow(0 0 28px color-mix(in srgb,var(--c1) 55%,transparent));
  animation:pdFade .6s ease both}
@keyframes pdFade{from{opacity:0;transform:translateY(8px)}}
/* popup scene: flavor backdrop, bottle, fruit in front-left, ice front-right */
.pd-visual{position:relative}
.pd-visual.has-bg{background-size:cover;background-position:center 40%}
.pd-visual::after{content:"";position:absolute;inset:auto 0 0 0;height:70px;pointer-events:none;
  background:linear-gradient(transparent,#2a0f44)}
.pd-visual > img{position:relative;z-index:1}
.pd-fruit{position:absolute!important;left:2%;bottom:-6px;width:44%;z-index:2!important;
  filter:drop-shadow(0 10px 14px rgba(0,0,0,.5));animation:pdFade .7s ease .15s both}
.pd-ice{position:absolute!important;right:6%;bottom:14px;width:22%;z-index:2!important;
  filter:drop-shadow(0 0 12px rgba(200,170,255,.6));animation:pdFade .7s ease .25s both}

/* M10 cards: same look as the mockup cards, built from the bottle cut-out */
.m10card{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;aspect-ratio:.675;border-radius:14px;overflow:hidden;
  background:radial-gradient(80% 55% at 50% 40%,color-mix(in srgb,var(--c1) 85%,transparent),transparent 75%),linear-gradient(180deg,var(--c2),#12061c 90%);
  border:1.5px solid color-mix(in srgb,var(--c1) 70%,#fff 10%)}
.m10card img{position:absolute;top:7%;left:50%;height:70%;transform:translateX(-50%);filter:drop-shadow(0 8px 12px rgba(0,0,0,.5))}
.m10-name{position:relative;z-index:1;margin-bottom:8px;font-weight:700;font-size:19px;text-shadow:0 2px 8px rgba(0,0,0,.9),0 0 12px color-mix(in srgb,var(--c1) 70%,transparent)}
.m10-tag{position:absolute;top:7px;left:7px;z-index:1;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:700;color:#3b1a00;
  background:linear-gradient(180deg,#fff2d6,#f2c98a)}
.chips .chip{font-size:15px}
/* the hidden attribute must always win over display rules (slip preview, unset contact buttons, QR) */
[hidden]{display:none!important}
a.info-row{color:inherit;text-decoration:none}
a.info-row[href]{cursor:pointer}
.qr svg{display:block;width:100%;height:100%}
/* promo ribbon (e.g. "โปร ลด 10.-"), same look as the mockup's tag */
.promo-tag{position:absolute;top:9px;right:-6px;z-index:2;transform:rotate(-8deg);padding:2px 12px 2px 9px;
  border-radius:7px 0 0 7px;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;
  background:linear-gradient(90deg,#ff2d8a,#ff5fb0);box-shadow:0 0 12px rgba(255,45,138,.75)}

/* new images in popups and empty states */
.popup-hero{display:block;width:130px;margin:-6px auto 6px;filter:drop-shadow(0 0 16px rgba(255,200,120,.45))}
.empty-img{display:block;width:150px;margin:0 auto 8px;filter:drop-shadow(0 0 18px rgba(255,80,170,.35))}

img.ci-img{width:52px;height:68px;object-fit:contain;border-radius:10px;padding:2px;
  background:radial-gradient(circle,color-mix(in srgb,var(--c1) 55%,transparent),transparent 72%)}
img.mini{width:30px;height:46px;object-fit:contain}
img.sr-img{width:30px;height:44px;object-fit:contain;flex:none}
.fly img{width:100%;height:auto;display:block}

/* ===== Border Beam (selected items only) =====
   One smooth beam of light travels slowly around the frame of whatever is
   selected: a rotating conic gradient, masked so only the border ring shows.
   Constant speed, no blinking, no scattered light. */
@property --beam{syntax:'<angle>';inherits:false;initial-value:0deg}

.chip.active,.opt.active,.size.active,.pcard.art{position:relative}
/* .nav-pill and .hit are already absolutely positioned, which also anchors ::before */

.chip.active::before,
.opt.active::before,
.size.active::before,
.nav-pill::before,
.pcard.art:hover::before,
.pcard.art:focus-visible::before,
.hit:hover::before,
.hit:focus-visible::before,
.tier-tile:hover::before,
.tier-tile:focus-visible::before,
.mode.active::before,
.grade.active::before{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:var(--beam-w,2px);
  background:
    conic-gradient(from var(--beam),
      transparent 0deg 250deg,
      rgba(255,95,176,.35) 290deg,
      #ff5fb0 325deg,
      #ffd36b 350deg,
      #fff 360deg),
    linear-gradient(rgba(255,170,220,.28),rgba(255,170,220,.28)); /* faint full frame underneath */
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
  animation:beamRun var(--beam-dur,6s) linear infinite;
  pointer-events:none;z-index:3}
@keyframes beamRun{to{--beam:360deg}}

/* per-element tuning */
.chip.active::before{--beam-w:2px}
.size.active::before{--beam-w:1.5px;--beam-dur:5s}
.nav-pill::before{--beam-w:1.5px;--beam-dur:7s}
.pcard.art:hover::before,.pcard.art:focus-visible::before{--beam-w:2.5px;--beam-dur:5s}
.hit:hover::before,.hit:focus-visible::before{--beam-w:2px}
.hit.gold:hover::before{background:
    conic-gradient(from var(--beam),transparent 0deg 250deg,rgba(255,210,120,.35) 290deg,#ffcc4d 330deg,#fff3c4 360deg),
    linear-gradient(rgba(255,210,120,.25),rgba(255,210,120,.25))}

/* the selected option keeps its glow steady (no pulsing) */
.opt.active{box-shadow:0 0 16px rgba(255,45,138,.35)}
.hit-glow{animation:none}
.hit:hover{background:rgba(255,255,255,.04);box-shadow:0 0 22px rgba(255,80,170,.35)}

/* "Reduce motion" is on in Windows on this machine. The beam is a slow, steady
   glide (no flashing), so keep it running there too, just slower. This beats the
   blanket *::before rule in style.css by specificity. */
@media (prefers-reduced-motion: reduce){
  .chip.active::before,.opt.active::before,.size.active::before,.nav-pill::before,
  .pcard.art:hover::before,.pcard.art:focus-visible::before,.hit:hover::before,.hit:focus-visible::before,
  .tier-tile:hover::before,.mode.active::before,.grade.active::before{
    animation-name:beamRun!important;animation-duration:9s!important;
    animation-iteration-count:infinite!important;animation-timing-function:linear!important}
}
