/* RVX FX — สไตล์ของ fx.js (การ์ดเอียง 3D · พลุกระดาษ · ป้ายระดับ · การ์ดโปรไฟล์แชร์รูป) */

/* ---------- การ์ดเอียง 3 มิติ ---------- */
.fx-t{transition:transform .6s var(--ease),border-color .3s,background .3s,box-shadow .4s}
html .fx-t.fx-on{
  animation:none!important;z-index:2;will-change:transform;
  transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale3d(1.03,1.03,1.03);
  transition:transform .1s linear,border-color .3s,background .3s,box-shadow .4s;
  box-shadow:0 26px 50px -20px color-mix(in srgb,var(--fg) 38%,transparent),0 0 0 1px var(--line2)
}

/* แสงสะท้อน: จุดสว่างตามเมาส์ + แถบแสงเฉียงที่วิ่งผ่านการ์ดตามตำแหน่งเมาส์ */
.fx-glare{
  --hot:rgba(255,255,255,.16);--fl:rgba(255,255,255,0);--ce:rgba(255,255,255,.3);
  position:absolute;inset:0;z-index:5;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity .35s;
  background:
    radial-gradient(440px circle at var(--gx,50%) var(--gy,50%),var(--hot),transparent 62%),
    linear-gradient(112deg,transparent calc(var(--sx,-30%) - 17%),var(--fl) calc(var(--sx,-30%) - 8%),var(--ce) var(--sx,-30%),var(--fl) calc(var(--sx,-30%) + 8%),transparent calc(var(--sx,-30%) + 17%))
}
.fx-on>.fx-glare{opacity:1}
/* ธีมสว่าง: การ์ดสีอ่อน ใช้แถบขาวเข้มพร้อมเงาบางๆ ข้างแถบให้เห็นความเงา */
:root:not([data-theme=dark]) .fx-glare{--hot:rgba(255,255,255,.5);--fl:rgba(10,10,10,.05);--ce:rgba(255,255,255,.7)}
/* การ์ด "คุ้มค่าที่สุด" สลับสี (ธีมมืด = การ์ดขาว, ธีมสว่าง = การ์ดดำ) */
[data-theme=dark] .pcard.hot .fx-glare{--hot:rgba(255,255,255,.4);--fl:rgba(10,10,10,.06);--ce:rgba(120,130,255,.3)}
:root:not([data-theme=dark]) .pcard.hot .fx-glare{--hot:rgba(255,255,255,.16);--fl:rgba(255,255,255,0);--ce:rgba(255,255,255,.32)}

/* ---------- พลุกระดาษ ---------- */
.fx-confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:100}

/* ---------- แบนเนอร์ฉลองตอนซื้อสำเร็จ ---------- */
.fx-cele{position:fixed;left:50%;top:max(84px,13vh);z-index:101;width:min(430px,calc(100vw - 28px));cursor:pointer;
  opacity:0;transform:translate(-50%,-16px) scale(.9);transition:transform .55s cubic-bezier(.2,1.4,.3,1),opacity .3s}
.fx-cele.on{opacity:1;transform:translate(-50%,0) scale(1)}
.fx-cele-in{display:grid;gap:5px;justify-items:center;text-align:center;padding:22px 26px 24px;border-radius:26px;
  border:1px solid var(--line2);background:color-mix(in srgb,var(--bg) 88%,transparent);
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 34px 80px -24px rgba(0,0,0,.6)}
.fx-cele-ic{font-size:40px;line-height:1;margin-bottom:4px;animation:fx-bob 1.1s ease-in-out infinite}
.fx-cele-in b{font-size:23px;letter-spacing:-.025em;line-height:1.3}
.fx-cele-l{font-size:14.5px;color:var(--mut);line-height:1.5}
.fx-cele-l:nth-of-type(2){color:var(--fg);font-weight:600}
@keyframes fx-bob{50%{transform:translateY(-5px) rotate(-8deg) scale(1.08)}}

/* ---------- ป้ายระดับ ---------- */
.lv-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 14px 5px 10px;border-radius:999px;font-size:12.5px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;line-height:1.5;color:#0b0b12;background:linear-gradient(120deg,var(--c1),var(--c2));
  box-shadow:0 8px 22px -10px var(--c2);white-space:nowrap}
.lv-badge svg{width:14px;height:14px;flex:none}
.d-lv{margin-top:8px}

/* ---------- การ์ดโปรไฟล์แชร์รูป ---------- */
.sc-root:empty{display:none}
.sc-wrap{margin-bottom:34px}
.sc-h{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.sc-h h3{font-size:19px;letter-spacing:-.02em}
.sc-h p{font-size:13.5px;margin-top:2px;max-width:56ch}
.sc-stage{position:relative;max-width:760px;line-height:0;border-radius:22px;overflow:hidden;background:#09090f;border:1px solid var(--line2)}
.sc-stage canvas{display:block;width:100%;height:auto;aspect-ratio:1200/630}
.sc-prog{max-width:760px;display:grid;gap:8px;margin-top:16px}
.sc-bar{height:8px;border-radius:99px;background:var(--card2);overflow:hidden}
.sc-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--c1),var(--c2));transition:width .9s var(--ease)}
.sc-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.sc-wrap .fine{max-width:760px;margin-top:14px}
@media (max-width:560px){.sc-acts .btn-pill{flex:1 1 100%;justify-content:center}}

@media (prefers-reduced-motion:reduce){.fx-cele-ic{animation:none}}
