/* Storefront effects controlled from the back office (พื้นหลังและเอฟเฟกต์). */

/* Background-fit rules live inline in views/layouts/head.php: relative image URLs
   inside var(--site-bg-image) must resolve against the page, not this file. */

/* ---------- Product card sparkle ---------- */
body:not([data-card-style="sparkle"]) .sf-sparkle{display:none!important}
body:not([data-card-style="shine"]) .sf-shine{display:none!important}
/* "shine" style: one soft diagonal sweep of light across the product image on hover, no stars */
.sf-shine{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;border-radius:inherit}
.sf-shine::before{content:"";position:absolute;top:-30%;bottom:-30%;left:-60%;width:38%;
  background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.55) 50%,transparent 100%);
  transform:skewX(-14deg) translateX(0);mix-blend-mode:soft-light;opacity:0;transition:opacity .2s}
@media (hover:hover) and (pointer:fine){
  .sf-product-card:hover .sf-shine::before{opacity:1;animation:sf-shine-sweep 1s ease forwards}
}
@keyframes sf-shine-sweep{from{transform:skewX(-14deg) translateX(0)}to{transform:skewX(-14deg) translateX(430%)}}
body[data-motion="off"] .sf-shine{display:none}
@media (prefers-reduced-motion:reduce){.sf-shine{display:none}}
.sf-sparkle{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;border-radius:inherit;
  --spark:color-mix(in srgb,#fff 78%,var(--main));--spark-glow:color-mix(in srgb,var(--main) 70%,#fff)}
/* light sweep across the image */
.sf-sparkle::before{content:"";position:absolute;top:-20%;bottom:-20%;left:-60%;width:45%;
  background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.06) 30%,rgba(255,255,255,.38) 50%,rgba(255,255,255,.06) 70%,transparent 100%);
  transform:translateX(0) skewX(-8deg);animation:sf-sweep 5.5s cubic-bezier(.45,.05,.25,1) infinite;will-change:transform}
/* twinkling stars */
.sf-sparkle i{position:absolute;width:20px;height:20px;opacity:0;transform:scale(0) rotate(0deg);
  background:var(--spark);
  clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);
  filter:drop-shadow(0 0 4px var(--spark-glow)) drop-shadow(0 0 8px var(--spark-glow));
  animation:sf-twinkle 2.6s ease-in-out infinite;will-change:transform,opacity}
.sf-sparkle i:nth-child(1){top:12%;left:16%;animation-delay:.2s}
.sf-sparkle i:nth-child(2){top:22%;right:14%;width:14px;height:14px;animation-delay:1.1s;animation-duration:2.6s}
.sf-sparkle i:nth-child(3){top:52%;left:8%;width:13px;height:13px;animation-delay:2s}
.sf-sparkle i:nth-child(4){bottom:18%;right:22%;width:24px;height:24px;animation-delay:.7s;animation-duration:3.8s}
.sf-sparkle i:nth-child(5){top:40%;left:58%;width:12px;height:12px;animation-delay:1.6s;animation-duration:2.4s}
.sf-sparkle i:nth-child(6){bottom:10%;left:34%;width:16px;height:16px;animation-delay:2.6s;animation-duration:3s}
/* different cards start at different moments so the grid doesn't blink in sync */
.sf-product-card:nth-child(3n+2) .sf-sparkle::before{animation-delay:-1.8s}
.sf-product-card:nth-child(3n+3) .sf-sparkle::before{animation-delay:-3.6s}
.sf-product-card:nth-child(4n+2) .sf-sparkle i{animation-delay:calc(var(--o,0s) + .9s)}
.sf-product-card:nth-child(4n+3) .sf-sparkle i{animation-direction:reverse}
/* hover: a little more magic */
@media (hover:hover) and (pointer:fine){
  .sf-product-card:hover .sf-sparkle::before{animation-duration:1.8s}
  .sf-product-card:hover .sf-sparkle i{animation-duration:1.6s}
}
/* sold-out cards stay quiet */
.sf-product-card--sold-out .sf-sparkle{display:none}
/* respect motion settings */
body[data-motion="off"] .sf-sparkle{display:none}
@media (prefers-reduced-motion:reduce){.sf-sparkle{display:none}}

@keyframes sf-sweep{0%{transform:translateX(0) skewX(-8deg)}38%,100%{transform:translateX(420%) skewX(-8deg)}}
@keyframes sf-twinkle{0%,100%{opacity:0;transform:scale(0) rotate(0deg)}45%{opacity:1;transform:scale(1) rotate(45deg)}60%{opacity:.9;transform:scale(.85) rotate(70deg)}80%{opacity:0;transform:scale(.2) rotate(110deg)}}

/* ---------- Icons follow the theme colour ---------- */
body.storefront-page{--icon-accent:var(--main)}
html body.storefront-page .site-stat-card[class*="site-stat-card--"] .site-stat-icon{
  color:var(--main)!important;
  background:none!important;border:0!important;box-shadow:none!important}
html body.storefront-page .site-stat-card[class*="site-stat-card--"] .site-stat-icon::before,html body.storefront-page .site-stat-card[class*="site-stat-card--"] .site-stat-icon::after{display:none!important}
html body.storefront-page .site-stat-card[class*="site-stat-card--"] .site-stat-icon :is(svg,i,.sf-icon,.ui-icon){color:var(--main)!important}
/* icons sitting on a filled theme-colour tile use the button text colour so they stay visible */
html body.storefront-page[data-page] :is(.sf-heading-icon,.sf-page-hero-icon,.site-section-title-icon) :is(svg,i,.sf-icon,.ui-icon){color:var(--on-primary)!important}
html body.storefront-page[data-page] :is(.sf-heading-icon,.sf-page-hero-icon,.site-section-title-icon){color:var(--on-primary)!important;background:linear-gradient(135deg,var(--main),var(--sub))!important}
html body.storefront-page[data-page] .site-faq-question-icon{color:var(--main)!important}
html body.storefront-page :is(.sf-empty-icon,.sf-help-icon,.sf-purchase-avatar,.sf-quick-icon,.sf-category-icon){color:var(--main)!important}
html body.storefront-page .topup-notification-mark{color:var(--main)!important;background:color-mix(in srgb,var(--main) 14%,transparent)!important}

/* ---------- Category card style: "overlay" — image fills the card, title/description
   sit on a gradient scrim over the bottom of the photo instead of below it ---------- */
.sf-storefront .sf-category-card--configured.sf-category-style-overlay{position:relative;aspect-ratio:16/9;min-height:0;overflow:hidden}
.sf-storefront .sf-category-card--configured.sf-category-style-overlay .sf-category-media{position:absolute;inset:0}
.sf-storefront .sf-category-card--configured.sf-category-style-overlay .sf-category-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
.sf-category-style-overlay .sf-category-media::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(0deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.45) 42%,transparent 75%)}
.sf-category-style-overlay .sf-category-body{position:absolute;inset:auto 0 0 0;z-index:2;padding:18px 20px;background:none!important}
.sf-category-style-overlay .sf-category-copy{max-width:none;padding:0}
.sf-category-style-overlay .sf-category-title,.sf-category-style-overlay .sf-category-description{color:#fff!important}
.sf-category-style-overlay .sf-category-description{opacity:.85}
.sf-category-style-overlay .sf-category-action{color:#fff!important;opacity:.9}
.sf-category-style-overlay .sf-category-count-badge{z-index:2;background:rgba(0,0,0,.45)!important;color:#fff!important;backdrop-filter:blur(6px)}
@media (max-width:760px){.sf-storefront .sf-category-card--configured.sf-category-style-overlay{aspect-ratio:4/3}}

/* =========================================================================
   Stat cards — full redesign, not a recolor: icon is a large bold outline
   glyph on the right, number is the focus, 2-up grid on phones like the
   reference layout (sits right under the hero banner, moved there in home.php).
   ========================================================================= */
.site-statbox-wrap{padding:18px 0 6px!important;background:none!important}
.site-statbox-head{margin-bottom:14px!important}
.site-statbox-head h2{display:flex;align-items:center;gap:10px;font-size:17px!important;font-weight:700}
.site-statbox-head .site-section-title-icon{
  display:grid;place-items:center;width:34px;height:34px;border-radius:11px;flex:none;
  background:linear-gradient(135deg,var(--main),var(--sub));color:#fff}
.site-statbox-head .site-section-title-icon svg{width:17px;height:17px}

/* Sized and spaced to match the quick-link shortcut cards just below (.sf-quick-card)
   so the two rows read as one consistent grid system. */
.site-statbox-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important}
@media (max-width:760px){.site-statbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}}
@media (max-width:420px){.site-statbox-grid{gap:9px!important}}
.site-stat-card{
  position:relative;overflow:hidden;display:flex!important;align-items:center;gap:12px;
  min-height:91px!important;padding:15px!important;border-radius:10px!important;
  background:linear-gradient(120deg,var(--surface),var(--surface))!important;
  border:1px solid var(--border)!important;box-shadow:none!important;isolation:isolate;
  transition:transform .25s ease,border-color .25s}
.site-stat-card::after{
  content:"";position:absolute;right:-14px;top:-14px;width:54px;height:54px;border-radius:50%;z-index:0;
  background:color-mix(in srgb,var(--main) 10%,transparent)}
@media (hover:hover) and (pointer:fine){
  .site-stat-card:hover{border-color:var(--main)}
}
.site-stat-copy{position:relative;z-index:1;display:flex;flex-direction:column;gap:2px;min-width:0;order:1}
.site-stat-copy small{font-size:11px;font-weight:600;color:var(--muted);order:-1;white-space:nowrap}
.site-stat-copy strong{font-size:clamp(16px,2.2vw,20px);font-weight:800;color:var(--font);letter-spacing:-.02em;line-height:1.15}
.site-stat-copy em{display:none}
.site-stat-card .site-stat-icon,
.site-stat-card--sales .site-stat-icon,.site-stat-card--topup .site-stat-icon,
.site-stat-card--users .site-stat-icon,.site-stat-card--stock .site-stat-icon{
  position:relative!important;inset:auto!important;right:auto!important;bottom:auto!important;
  z-index:1!important;order:2;margin-left:auto;flex:0 0 32px!important;display:grid!important;place-items:center!important;
  width:32px!important;height:32px!important;border-radius:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;opacity:1!important;transform:none!important}
.site-stat-card .site-stat-icon svg,.site-stat-card .site-stat-icon .sf-icon,
.site-stat-card--sales .site-stat-icon svg,.site-stat-card--topup .site-stat-icon svg,
.site-stat-card--users .site-stat-icon svg,.site-stat-card--stock .site-stat-icon svg{
  width:100%!important;height:100%!important;color:var(--main)!important;stroke-width:1.6!important;opacity:1!important;
  filter:drop-shadow(0 2px 6px color-mix(in srgb,var(--main) 35%,transparent))}
@media (max-width:560px){
  .site-stat-card .site-stat-icon,.site-stat-card--sales .site-stat-icon,.site-stat-card--topup .site-stat-icon,
  .site-stat-card--users .site-stat-icon,.site-stat-card--stock .site-stat-icon{
    width:26px!important;height:26px!important;flex-basis:26px!important;margin-left:0}
}

@media (max-width:900px){
  .site-statbox-grid{grid-template-columns:repeat(2,1fr)!important}
}
@media (max-width:560px){
  .site-stat-card{min-height:79px!important;padding:12px 16px!important;border-radius:10px!important;flex-direction:row!important;align-items:center!important;gap:12px}
  .site-stat-copy strong{font-size:18px}
}

/* ---------- Stats row = quick-links row: same width, same spacing, no wrapper panel ---------- */
.sf-storefront .site-statbox-wrap{padding:0!important;margin-top:17px!important;background:none!important;overflow:visible!important}
.sf-storefront .site-statbox-wrap::before,.sf-storefront .site-statbox-wrap::after{display:none!important}
.sf-storefront .site-statbox-container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;gap:0!important}
.sf-storefront .site-statbox-container::before,.sf-storefront .site-statbox-container::after{display:none!important}
.sf-storefront .site-statbox-head{display:none!important}

/* bigger icon, thin numbers */
.site-stat-card .site-stat-icon,.site-stat-card--sales .site-stat-icon,.site-stat-card--topup .site-stat-icon,
.site-stat-card--users .site-stat-icon,.site-stat-card--stock .site-stat-icon{
  width:48px!important;height:48px!important;flex:0 0 48px!important}
.site-stat-card .site-stat-icon svg{stroke-width:1.4!important}
@media (max-width:560px){
  .site-stat-card .site-stat-icon,.site-stat-card--sales .site-stat-icon,.site-stat-card--topup .site-stat-icon,
  .site-stat-card--users .site-stat-icon,.site-stat-card--stock .site-stat-icon{
    width:38px!important;height:38px!important;flex:0 0 38px!important}
}

/* card stays put; only the icon spins in place on hover / tap */
html body.storefront-page .site-stat-card,html body.storefront-page .site-stat-card:hover,html body.storefront-page .site-stat-card:active{transform:none!important}
html body.storefront-page .site-stat-card .site-stat-icon{transition:transform .6s cubic-bezier(.34,1.56,.64,1)!important}
html body.storefront-page .site-stat-card:is(:hover,:active,:focus-within) .site-stat-icon{transform:rotate(360deg)!important}
@media (prefers-reduced-motion:reduce){html body.storefront-page .site-stat-card .site-stat-icon{transition:none!important}}

/* ---------- Dark mode = pure black panels (no grey tints from color-mix) ---------- */
body.storefront-page[data-theme="dark"],
body.storefront-page[data-theme="dark"] :is(.site-header .header-inner,.site-navigation,.account-dropdown,.mobile-drawer,
  .sf-product-card,.sf-category-card,.sf-quick-card,.site-stat-card,.sf-announcement,.sf-activity-card,.sf-purchase-card,
  .site-footer,.surface-panel,.sf-popup-dialog,.topup-method-sidebar,.topup-wallet-card,.topup-slip-card,.topup-redeem-card,
  .sf-product-image-link,.sf-category-media){
  background:#000!important;background-image:none!important}
body.storefront-page[data-theme="dark"] :is(input,select,textarea,.form-control){background:#000!important}

/* header wrapper stays see-through (only the floating bar itself is black) */
body.storefront-page .site-header{background:transparent!important;box-shadow:none!important}

/* Dark mode: section wrappers (reviews, FAQ, footer band) are see-through so the page
   stays pure black / shows the background image; only the cards themselves are black. */
body.storefront-page[data-theme="dark"] :is(.site-reviews,.site-reviews-container,.site-faq,.site-faq-inner,.site-footer){
  background:transparent!important;background-image:none!important}
body.storefront-page[data-theme="dark"] :is(.site-reviews,.site-faq)::before,
body.storefront-page[data-theme="dark"] :is(.site-reviews,.site-faq)::after{display:none!important}
body.storefront-page[data-theme="dark"] :is(.site-review-card,.site-faq-item){background:#000!important;background-image:none!important}

/* Dark mode: literal black behind everything (incl. behind the transparent centre of the
   background image), set here in the stylesheet as well so it holds even if a saved
   theme colour or an older inline theme still sets --background to a near-black grey. */
html:has(body.storefront-page[data-theme="dark"]),
body.storefront-page[data-theme="dark"]{background-color:#000!important;--background:#000!important;--surface:#000!important;--surface-raised:#000!important}
body.storefront-page[data-theme="dark"] > .site-background-layer{background-color:#000!important}

/* ---------- Search as a modal ---------- */
body.storefront-page .site-search-form:not([hidden]){
  position:fixed!important;z-index:1200!important;left:50%!important;top:min(18vh,140px)!important;right:auto!important;bottom:auto!important;
  transform:translateX(-50%)!important;width:min(620px,calc(100vw - 28px))!important;margin:0!important;
  display:flex!important;align-items:center;gap:10px;padding:10px 12px 10px 16px!important;
  border-radius:18px!important;border:1px solid var(--border)!important;background:var(--surface)!important;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.6)!important;animation:sf-search-in .18s ease}
@keyframes sf-search-in{from{opacity:0;transform:translate(-50%,-8px)}}
body.storefront-page .site-search-form label{display:grid;place-items:center;color:var(--main);flex:none}
body.storefront-page .site-search-form input[type="search"]{flex:1;min-width:0;min-height:46px!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;color:var(--font)!important;font-size:16px!important;padding:0!important}
body.storefront-page .site-search-form .site-search-close{flex:none;padding:5px 9px;border-radius:8px;border:1px solid var(--border);background:transparent!important;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;box-shadow:none!important}
body.storefront-page .site-search-backdrop{position:fixed;inset:0;z-index:1190;background:rgba(0,0,0,.55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
body.storefront-page .site-search-backdrop[hidden]{display:none}

/* ---------- Icon tiles: icon always visible on the coloured tile ---------- */
html body.storefront-page :is(.sf-stat-card>span,.sf-empty-icon,.topup-method-icon,.topup-method-head-icon){
  display:grid!important;place-items:center!important;background:linear-gradient(135deg,var(--main),color-mix(in srgb,var(--main) 55%,#000))!important;
  color:var(--on-primary,#fff)!important;border:0!important}
html body.storefront-page :is(.sf-stat-card>span,.sf-empty-icon,.topup-method-icon,.topup-method-head-icon) :is(svg,i,.sf-icon,.ui-icon){
  color:var(--on-primary,#fff)!important;stroke:currentColor;opacity:1!important}
html body.storefront-page .topup-method-card:not(.is-active) .topup-method-icon{
  background:color-mix(in srgb,var(--main) 16%,var(--surface))!important;color:var(--main)!important}
html body.storefront-page .topup-method-card:not(.is-active) .topup-method-icon :is(svg,i){color:var(--main)!important}

/* ---------- History page: readable title, calm empty state (no tilted gradient slab) ---------- */
html body.storefront-page .sf-page-hero h1{background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;
  -webkit-text-fill-color:var(--font)!important;color:var(--font)!important}
html body.storefront-page .sf-empty-state{background:var(--surface)!important;border:1px dashed var(--border)!important;border-radius:18px!important}
html body.storefront-page .sf-empty-state::before,html body.storefront-page .sf-empty-state::after{display:none!important}
html body.storefront-page .sf-empty-icon{width:64px!important;height:64px!important;border-radius:18px!important;transform:none!important;flex:none}
html body.storefront-page .sf-empty-icon svg{width:28px!important;height:28px!important}

/* ---------- Product corner badge ---------- */
.sf-product-image-link{position:relative}
.sf-corner-badge{position:absolute;top:10px;right:10px;z-index:4;padding:4px 10px;border-radius:999px;
  background:var(--badge,#ef4444);color:#fff;font-size:11.5px;font-weight:800;letter-spacing:.02em;line-height:1.3;
  box-shadow:0 6px 16px -6px var(--badge,#ef4444);pointer-events:none}
.sf-corner-badge--hot::before{content:"🔥 "}
.sf-all-products-more{display:flex;justify-content:center;margin-top:18px}

/* ---------- Product reviews (verified buyers) ---------- */
.pr-wrap{margin:18px auto 28px;padding:20px;border-radius:18px;border:1px solid var(--border);background:var(--surface);color:var(--font)}
.pr-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.pr-head h2{margin:0 0 4px;font-size:19px}
.pr-head p{margin:0;color:var(--muted);font-size:13.5px;display:flex;align-items:center;gap:6px}
.pr-avg{font-size:22px;color:var(--font)}
.pr-stars{position:relative;color:color-mix(in srgb,var(--muted) 45%,transparent);letter-spacing:2px}
.pr-stars::before{content:"★★★★★";position:absolute;inset:0;width:var(--v);overflow:hidden;color:#f5b301;white-space:nowrap}
.pr-sort{display:flex;gap:6px;flex-wrap:wrap}
.pr-sort a{padding:6px 12px;border-radius:999px;border:1px solid var(--border);color:var(--muted);font-size:12.5px;text-decoration:none}
.pr-sort a.is-on{background:var(--main);border-color:var(--main);color:var(--on-primary,#fff)}
.pr-form{display:grid;gap:10px;padding:14px;border-radius:14px;border:1px dashed color-mix(in srgb,var(--main) 50%,var(--border));margin-bottom:14px}
.pr-rate{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:2px}
.pr-rate input{position:absolute;opacity:0;pointer-events:none}
.pr-rate label{font-size:28px;line-height:1;cursor:pointer;color:color-mix(in srgb,var(--muted) 45%,transparent);transition:color .12s,transform .12s}
.pr-rate input:checked~label,.pr-rate label:hover,.pr-rate label:hover~label{color:#f5b301}
.pr-rate label:active{transform:scale(.9)}
.pr-form textarea{width:100%;border-radius:12px;border:1px solid var(--border);background:var(--background);color:var(--font);padding:10px 12px;font:inherit;resize:vertical}
.pr-form .sf-button{justify-self:start}
.pr-note{margin:0 0 12px;font-size:13px;color:var(--muted)}
.pr-list{display:grid;gap:10px}
.pr-item{padding:12px 14px;border-radius:12px;background:color-mix(in srgb,var(--font) 3%,transparent);border:1px solid var(--border)}
.pr-item-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pr-badge{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:color-mix(in srgb,#22c55e 15%,transparent);color:#22c55e}
.pr-item-stars{margin-left:auto;color:#f5b301;letter-spacing:1px}
.pr-item-stars i{font-style:normal;color:color-mix(in srgb,var(--muted) 40%,transparent)}
.pr-item p{margin:6px 0 4px;font-size:14px;white-space:pre-wrap}
.pr-item time{font-size:11.5px;color:var(--muted)}

/* ---------- Footer: big bouncing logo next to the widgets + copyright line ---------- */
.site-footer .footer-widget-grid{align-items:center}
.site-footer .footer-widget-grid--logo-only{display:flex!important;justify-content:center}
.footer-big-logo{display:grid;place-items:center;min-height:220px;padding:20px}
.footer-big-logo img{width:clamp(120px,16vw,190px);height:auto;max-height:190px;object-fit:contain;
  filter:drop-shadow(0 18px 30px color-mix(in srgb,var(--main) 45%,transparent));animation:footer-logo-bob 2.6s cubic-bezier(.45,0,.55,1) infinite}
@keyframes footer-logo-bob{0%,100%{transform:translateY(0) scale(1)}45%{transform:translateY(-16px) scale(1.03)}55%{transform:translateY(-16px) scale(1.03)}85%{transform:translateY(0) scale(.98,1.02)}}
@media (prefers-reduced-motion:reduce){.footer-big-logo img{animation:none}}
@media (max-width:760px){.footer-big-logo{min-height:160px;padding:10px}}

.footer-copyright{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;margin:14px 0 0;padding-top:14px;border-top:1px solid var(--border);font-size:12.5px;color:var(--muted);text-align:center}
.footer-made-by{color:var(--main);font-weight:700}
.footer-report-link{color:#ef4444!important;font-weight:700;text-decoration:none}
.footer-report-link:hover{text-decoration:underline}

/* HOT image badge (artwork supplied by the shop owner) */
.sf-corner-badge-img{position:absolute;top:6px;right:6px;z-index:4;width:clamp(58px,32%,92px);height:auto;pointer-events:none;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.35));transform-origin:70% 30%;animation:sf-hot-wiggle 2.8s ease-in-out infinite}
@keyframes sf-hot-wiggle{0%,80%,100%{transform:rotate(0) scale(1)}85%{transform:rotate(-6deg) scale(1.06)}90%{transform:rotate(5deg) scale(1.06)}95%{transform:rotate(-2deg)}}
@media (prefers-reduced-motion:reduce){.sf-corner-badge-img{animation:none}}
