/* ===== POINTS page — the owner's loyalty mockup picture with live values on top (18 Nov) =====
   Sizes use cqw: 1 mockup pixel = 100cqw / 1024 ≈ .0977cqw, so everything scales with the picture. */
.screen[data-screen="points"]{padding:0}
.pt8{position:relative;container-type:inline-size;margin:0 0 6px;color:#fff;font-family:var(--font-ui,'Kanit',sans-serif)}
.pt8-canvas{position:relative} /* Overlay percentages must use the artwork height, excluding the phone form. */
.pt8-bg{display:block;width:100%;height:auto;user-select:none;pointer-events:none}
.pt8-l{position:absolute;margin:0}
.pt8-hit{background:none;border:0;padding:0;border-radius:3cqw;cursor:pointer}
.pt8-hit:focus-visible{outline:2px solid #ffc94f;outline-offset:-2px}
.pt8-hit:active{background:rgba(255,255,255,.08)}

/* cart count bubble */
.pt8-badge{display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 40% 35%,#ff5a8e,#e8125a);color:#fff;
  font-size:2.6cqw;font-weight:700;box-shadow:0 0 1.4cqw rgba(255,40,110,.9);pointer-events:none}
.pt8-badge:empty{display:none}

/* big 3D numbers (ring + round) */
.pt8-ring,.pt8-round{display:flex;align-items:center;justify-content:center;pointer-events:none}
.pt8-ring img{height:86%;width:auto;filter:drop-shadow(0 0 1cqw rgba(255,120,220,.6))}
.pt8-ring b{font-size:8.8cqw;font-weight:800;font-style:italic;line-height:1;margin-left:.4cqw;
  background:linear-gradient(180deg,#fff6cf,#ffd25a 50%,#e2961c);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 .3cqw 0 rgba(120,50,0,.6)) drop-shadow(0 0 .8cqw rgba(255,190,70,.7))}
.pt8-round img{height:92%;width:auto}
.pt8-n{font-size:8.6cqw;font-weight:800;font-style:italic;line-height:1;
  background:linear-gradient(180deg,#fff,#ffc8ef 55%,#ff8ad8);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 .8cqw rgba(255,120,220,.8))}

/* "ครบ 3 มงกุฎ" */
.pt8-need{display:flex;align-items:center;justify-content:center;gap:1.2cqw;font-size:3.9cqw;font-weight:600;font-style:italic;white-space:nowrap;
  text-shadow:0 0 .8cqw rgba(255,150,230,.6);pointer-events:none}
.pt8-need img{height:4.8cqw;width:auto}

/* 7 bottles: lit = collected */
.pt8-bottles{display:grid;grid-template-columns:repeat(7,1fr);pointer-events:none}
.pt8-bottles i{background:rgba(18,4,26,.62);border-radius:1cqw;transition:background .4s}
.pt8-bottles i.on{background:transparent}

/* milestones */
.pt8-line{display:block;border-radius:1cqw;background:rgba(150,80,240,.7);box-shadow:0 0 .8cqw rgba(160,80,255,.7)}
.pt8-line.on{background:linear-gradient(90deg,#ff3fc8,#ff9ce6);box-shadow:0 0 1cqw rgba(255,70,210,.9)}
.pt8-ms{display:flex;flex-direction:column;align-items:center;justify-content:space-between;pointer-events:none}
.pt8-ms img{width:6.8cqw;height:6.8cqw;object-fit:contain}
.pt8-ms span{display:block;width:11.8cqw;padding:.6cqw 0;border-radius:99cqw;text-align:center;font-size:3.3cqw;font-weight:700;line-height:1.25;
  background:linear-gradient(180deg,rgba(70,40,95,.95),rgba(32,14,50,.95));border:.25cqw solid rgba(190,160,230,.55);box-shadow:inset 0 .2cqw 0 rgba(255,255,255,.18)}
.pt8-ms.on span{background:linear-gradient(180deg,#ff4f9e,#d0146a);border-color:#ffb6dc;box-shadow:0 0 1.4cqw rgba(255,40,140,.7),inset 0 .2cqw 0 rgba(255,255,255,.35)}
.pt8-ms.cur span{background:linear-gradient(180deg,#ffcf5a,#e08a12);border-color:#ffe9a8;color:#fff;box-shadow:0 0 1.6cqw rgba(255,180,50,.8),inset 0 .2cqw 0 rgba(255,255,255,.45)}

/* progress row */
.pt8-sum,.pt8-pct{display:flex;align-items:center;font-size:3.3cqw;font-weight:600;white-space:nowrap;pointer-events:none}
.pt8-sum b{margin-left:1cqw;font-weight:600}
.pt8-pct{justify-content:flex-end;padding-right:.6cqw}
.pt8-bar{border-radius:99cqw;background:rgba(25,6,36,.85);border:.25cqw solid rgba(255,140,235,.35);overflow:hidden;pointer-events:none}
.pt8-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff2fb4,#ff7ade);box-shadow:0 0 1.4cqw rgba(255,60,200,.95);transition:width .8s ease}

/* current status pill + note */
.pt8-now{display:flex;align-items:center;gap:1.6cqw;padding:0 3cqw 0 2.4cqw;border-radius:99cqw;
  background:linear-gradient(180deg,#7a24c8,#4a0c8a 60%,#38076c);border:.3cqw solid #ffc35a;
  box-shadow:0 0 2cqw rgba(255,170,60,.6),inset 0 .4cqw 1.2cqw rgba(255,255,255,.18);pointer-events:none}
.pt8-now img{width:10cqw;height:auto}
.pt8-now b{flex:1;text-align:center;font-size:4cqw;font-weight:700;font-style:italic;white-space:nowrap;color:#f6e6ff;text-shadow:0 0 1cqw rgba(220,150,255,.8)}
.pt8-note{display:flex;align-items:center;justify-content:center;font-size:2.6cqw;letter-spacing:-.02em;font-weight:600;font-style:italic;white-space:nowrap;pointer-events:none}

.pt8-check{position:relative;margin:2px 16px 8px}
.pt8-check .pc-in{flex:1;min-width:0}
.pt8-check .pc-go{white-space:nowrap}

/* picture tiles: same pixels as the picture underneath, lift + glow on hover like the rest of the shop (owner, 18 Nov) */
.pt8-tile{background-image:url('assets/points/bg-points.webp?v=8');background-repeat:no-repeat;border:0;padding:0;border-radius:3cqw;color:inherit;
  transition:transform .35s cubic-bezier(.34,1.56,.64,1),filter .35s ease;will-change:transform}
button.pt8-tile{cursor:pointer}
.pt8-tile:focus-visible{outline:2px solid #ffc94f;outline-offset:2px}
@media (hover:hover){
  .pt8-tile:hover{transform:translateY(-6px) scale(1.04);z-index:3;filter:drop-shadow(0 8px 14px rgba(0,0,0,.45)) drop-shadow(0 0 12px rgba(255,90,220,.75))}
  .pt8-tile[data-tier="gold"]:hover,.pt8-tile[data-tier="platinum"]:hover,.pt8-tile[data-tier="silver"]:hover{transform:translateY(-8px) scale(1.06)}
}
.pt8-tile:active{transform:scale(.97)}
.pt8-tile[data-k="sq"]{border-radius:2.6cqw}
.pt8-tile[data-k="ring"]{border-radius:50%}
.pt8-tile[data-k="card"]{border-radius:3.4cqw}
.pt8-tile[data-k="pill"]{border-radius:99cqw}
.pt8-tile[data-tier]{border-radius:2.6cqw}

/* status pill: the picture's own pill; crown follows the real level, name in the mockup's lettering (18 Nov) */
.pt8-nowc{object-fit:contain;filter:drop-shadow(0 0 1cqw rgba(220,140,255,.8));pointer-events:none}
.pt8-nowc.dim{filter:grayscale(.85) brightness(.6);opacity:.7}
.pt8-nowt{display:flex;align-items:center;justify-content:center;font-size:4.3cqw;font-weight:700;font-style:italic;white-space:nowrap;line-height:1;
  color:#f7eaff;text-shadow:0 0 1.2cqw rgba(225,160,255,.9),0 .2cqw 0 rgba(60,0,90,.6);pointer-events:none}
.pt8-nowt[data-lv="silver"]{color:#f2f2f8}.pt8-nowt[data-lv="gold"]{color:#ffe59a;text-shadow:0 0 1.2cqw rgba(255,190,60,.8),0 .2cqw 0 rgba(90,40,0,.6)}
.pt8-nowt[data-lv="none"]{font-size:3.6cqw}
/* note: two short lines so it stays big enough to read */

/* ring label (the picture's own label sat on the area that is now redrawn clean) */
.pt8-ringlbl{display:flex;align-items:center;justify-content:center;font-size:4.2cqw;font-weight:700;font-style:italic;color:#fff;
  text-shadow:0 0 1cqw rgba(255,150,240,.8);pointer-events:none}
/* status note = current total for this round (owner, 18 Nov): "ยอดสะสม 150 ขวด" */
.pt8-note{flex-direction:row;align-items:baseline;justify-content:center;gap:.4em;white-space:nowrap;font-size:3cqw}
.pt8-note small{font-size:1em;font-weight:600;color:#ffd9f4}
.pt8-note b{font-size:1.75em;font-weight:800;font-style:italic;line-height:1;text-shadow:none;
  background:linear-gradient(180deg,#fff6cf,#ffd25a 55%,#e2961c);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 .8cqw rgba(255,190,70,.6))}
/* crown card: both lines drawn as text (the picture's lines were removed so nothing old shows through) */
.pt8-need1{display:flex;align-items:center;justify-content:center;font-size:3.6cqw;font-weight:600;font-style:italic;white-space:nowrap;color:#fff;
  text-shadow:0 0 .8cqw rgba(255,150,230,.6);pointer-events:none}
.pt8-need{font-size:4.1cqw;color:#fff}
.pt8-need img{height:5.6cqw}

/* member level cards: dark until the customer reaches that level, then full colour (owner, 18 Nov) */
.pt8-tile[data-tier][data-got="0"]{filter:grayscale(1) brightness(.32) contrast(1.1)}
.pt8-tile[data-tier][data-got="1"]{filter:drop-shadow(0 0 10px rgba(255,200,90,.55))}
@media (hover:hover){.pt8-tile[data-tier][data-got="0"]:hover{filter:grayscale(1) brightness(.45) contrast(1.1)}}
.pt8-tile[data-tier]{transition:transform .35s cubic-bezier(.34,1.56,.64,1),filter .5s ease}
/* cart icon drawn crisp (the picture's icon carried a fixed "3" badge) */
.pt8-carticon{fill:none;stroke:#fff;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 .6cqw rgba(255,150,240,.7));pointer-events:none}

/* status pills drawn as crisp shapes in the mockup's colours (no picture seams underneath) */
.pt8-pill1,.pt8-pill2{display:block;border-radius:99cqw;pointer-events:none;border:.32cqw solid transparent}
.pt8-pill1{background:linear-gradient(180deg,#7426c4 0%,#4f0f98 45%,#3c0878 100%) padding-box,
    linear-gradient(90deg,#ffb04a 0%,#ff9a5a 14%,#ff5fd2 45%,#e86bff 100%) border-box;
  box-shadow:0 0 1.6cqw rgba(255,90,210,.75),0 0 .6cqw rgba(255,170,80,.6),inset 0 .5cqw 1.4cqw rgba(255,255,255,.14),inset 0 -.6cqw 1.2cqw rgba(30,0,60,.5)}
.pt8-pill2{background:linear-gradient(180deg,rgba(92,22,108,.92),rgba(52,8,66,.95)) padding-box,
    linear-gradient(90deg,#d65cf0,#ff7ad8 50%,#c85cf0) border-box;
  border-width:.22cqw;box-shadow:0 0 1.2cqw rgba(230,90,230,.55),inset 0 .4cqw 1cqw rgba(255,255,255,.1)}

/* VIP lock: tier rewards + purple-crown reward need VIP; the 7+1 bottle card stays open (owner, 18 Nov) */
.pt8-lock{display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:3cqw;cursor:pointer;z-index:4;
  background:rgba(14,2,22,.62);backdrop-filter:grayscale(.6);-webkit-backdrop-filter:grayscale(.6)}
.pt8-lock span{padding:1.2cqw 3cqw;border-radius:99cqw;font-size:3.3cqw;font-weight:700;color:#3a1600;white-space:nowrap;
  background:linear-gradient(180deg,#ffe58a,#ffbe2e 55%,#f29a10);border:.25cqw solid #fff1b8;box-shadow:0 0 2cqw rgba(255,190,50,.7)}
.pt8-lock:focus-visible{outline:2px solid #ffc94f;outline-offset:2px}
@media (hover:hover){.pt8-lock:hover span{filter:brightness(1.08);transform:translateY(-2px)}}

/* "รางวัลถัดไปของคุณ" banner under the picture (owner's design, 1170×390, sample "6" erased).
   The live number sits where the "6" was: x 54.3–59.4%, y 56.4–73.8% of the banner. */
.pt8-next{position:relative;z-index:1;display:block;width:calc(100% - 8px);margin:-1cqw auto 0;padding:0;border:0;background:none;cursor:pointer;
  -webkit-tap-highlight-color:transparent;transition:transform .15s ease}
.pt8-next img{display:block;width:100%;height:auto;pointer-events:none;user-select:none}
.pt8-next:active{transform:scale(.98)}
.pt8-next:focus-visible{outline:2px solid #ffc94f;outline-offset:2px;border-radius:5cqw}
.pt8-next-n{position:absolute;left:53.4%;top:55%;width:7%;height:20%;display:flex;align-items:center;justify-content:center;pointer-events:none;
  font:italic 800 7.4cqw/1 var(--font-ui,'Kanit',sans-serif);letter-spacing:-.02em;
  background:linear-gradient(180deg,#fff6c8 0%,#ffd84d 45%,#f0a21a 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 .3cqw .2cqw rgba(90,30,0,.55)) drop-shadow(0 0 1.2cqw rgba(255,190,60,.55))}
