/* Hillside only: Vale slot-card hover (lift, accent glow, image zoom, sheen, 3D tilt).
   Does not change grid, 3:4 portrait, 9-col desktop, strips, banners or category rows. */
html.hs-tpl .gx-card .g-media{
  position:relative;
  outline:1px solid transparent;
  outline-offset:0;
  transition:transform .25s ease,box-shadow .25s ease,outline-color .25s ease;
  transform-style:flat;
  will-change:auto;
  z-index:1;
}
html.hs-tpl .gx-card .gx-thumb img,
html.hs-tpl .gx-card .gx-thumb .gx-ph{
  transition:transform .25s ease;
  transform-origin:50% 45%;
}
html.hs-tpl .gx-card .g-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  border-radius:inherit;
  background:radial-gradient(circle at var(--mx,50%) var(--my,30%),rgba(255,255,255,.5),rgba(255,255,255,.1) 32%,transparent 60%);
  mix-blend-mode:overlay;
  transition:opacity .25s;
  z-index:3;
  display:none;
}
html.hs-tpl .gx-card .g-hover{
  background:linear-gradient(180deg,rgba(6,8,14,.45),rgba(6,8,14,.78));
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  gap:8px;
  transition:opacity .25s ease,transform .2s ease-out;
  z-index:2;
}
html.hs-tpl .gx-card .g-play{
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 20px 12px 16px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#4aa8ff,#5fe39a);
  color:#042018;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 -3px 0 rgba(0,0,0,.18),0 10px 28px -6px rgba(74,168,255,.55),0 0 0 4px rgba(95,227,154,.18);
  transform:scale(.7);
  opacity:0;
  transition:transform .28s cubic-bezier(.2,.9,.3,1.3),opacity .25s ease;
}
html.hs-tpl .gx-card .g-play::before{
  content:"";
  width:0;
  height:0;
  border-style:solid;
  border-width:7px 0 7px 11px;
  border-color:transparent transparent transparent #f4fbff;
  filter:drop-shadow(1px 1px 0 rgba(0,40,40,.35));
  flex:none;
}
html.hs-tpl .gx-card:hover,
html.hs-tpl .gx-card:focus-within,
html.hs-tpl .gx-card.tilt,
html.hs-tpl .gx-card.leave{
  overflow:visible!important;
  z-index:4;
  content-visibility:visible;
  border-color:transparent;
  box-shadow:none;
}
html.hs-tpl .gx-grid .gx-card:hover,
html.hs-tpl .gx-grid .gx-card:focus-within,
html.hs-tpl .hm-games .gx-card:hover,
html.hs-tpl .hm-games .gx-card:focus-within{
  border-color:transparent;
  box-shadow:none;
}
html.hs-tpl .gx-grid:has(.gx-card:hover),
html.hs-tpl .gx-grid:has(.gx-card.tilt),
html.hs-tpl .gx-grid:has(.gx-card:focus-within),
html.hs-tpl .gx-grid:has(.gx-card.leave),
html.hs-tpl .gx-sub:has(.gx-card:hover),
html.hs-tpl .gx-sub:has(.gx-card.tilt),
html.hs-tpl .gx-sub:has(.gx-card:focus-within),
html.hs-tpl .hm-games:has(.gx-card:hover),
html.hs-tpl .hm-games:has(.gx-card.tilt),
html.hs-tpl .hm-rail:has(.gx-card:hover),
html.hs-tpl .hm-rail:has(.gx-card.tilt){
  overflow:visible!important;
}
html.hs-tpl .gx-card:hover .g-media,
html.hs-tpl .gx-card:focus-within .g-media{
  transform:translateY(-5px);
  outline:3px solid #28ffbb;
  outline-offset:0;
  box-shadow:0 0 0 3px #28ffbb,0 0 22px 2px rgba(40,255,187,.75),0 16px 34px -14px rgba(40,255,187,.55);
}
html.hs-tpl .gx-card:hover .gx-thumb img,
html.hs-tpl .gx-card:focus-within .gx-thumb img,
html.hs-tpl .gx-card:hover .gx-thumb .gx-ph,
html.hs-tpl .gx-card:focus-within .gx-thumb .gx-ph{
  transform:scale(1.06);
}
html.hs-tpl .gx-card:hover .g-media::after,
html.hs-tpl .gx-card:focus-within .g-media::after,
html.hs-tpl .gx-card.tilt .g-media::after{
  opacity:1;
}
html.hs-tpl .gx-card:hover .g-play,
html.hs-tpl .gx-card:focus-within .g-play{
  transform:scale(1);
  opacity:1;
}
html.hs-tpl .gx-card.tilt .g-media{
  transform:var(--tf)!important;
  outline:3px solid #28ffbb;
  outline-offset:0;
  box-shadow:0 0 0 3px #28ffbb,0 0 26px 3px rgba(40,255,187,.8),0 30px 50px -18px rgba(0,0,0,.9);
  transition:transform .12s cubic-bezier(.2,.7,.3,1),box-shadow .25s,outline-color .25s;
}
html.hs-tpl .gx-card.tilt .gx-thumb img,
html.hs-tpl .gx-card.tilt .gx-thumb .gx-ph{
  transform:scale(1.12) translate(var(--ax,0),var(--ay,0));
  transition:transform .12s ease-out;
}
html.hs-tpl .gx-card.tilt .g-hover{
  transform:translate(var(--fx,0),var(--fy,0)) scale(1.04);
}
html.hs-tpl .gx-card.leave .gx-thumb img,
html.hs-tpl .gx-card.leave .gx-thumb .gx-ph,
html.hs-tpl .gx-card.leave .g-hover{
  transition:transform .5s cubic-bezier(.2,.8,.2,1);
}
html.hs-tpl .gx-card.leave .g-media{
  transition:transform .55s cubic-bezier(.2,.8,.2,1),box-shadow .3s,outline-color .3s;
}
html.hs-tpl .gx-card .gx-strip{
  position:relative;
  z-index:0;
}
@media (prefers-reduced-motion:reduce){
  html.hs-tpl .gx-card.tilt .g-media{transform:none!important}
  html.hs-tpl .gx-card .g-play{transition:opacity .2s}
}
@media (hover:hover) and (pointer:fine){
  html.hs-tpl .gx-card:hover,
  html.hs-tpl .gx-card.tilt,
  html.hs-tpl .gx-card.leave,
  html.hs-tpl .gx-card:focus-within{perspective:700px}
  html.hs-tpl .gx-card:hover .g-media,
  html.hs-tpl .gx-card.tilt .g-media,
  html.hs-tpl .gx-card.leave .g-media,
  html.hs-tpl .gx-card:focus-within .g-media{transform-style:preserve-3d;will-change:transform}
  html.hs-tpl .gx-card:hover .g-media::after,
  html.hs-tpl .gx-card.tilt .g-media::after,
  html.hs-tpl .gx-card:focus-within .g-media::after{display:block;mix-blend-mode:overlay}
}
@media (max-width:640px){
  html.hs-tpl .gx-card .g-play{padding:9px 14px 9px 12px}
}

html.hs-tpl .gx-card .g-hover{
  pointer-events:none!important;
}
html.hs-tpl .gx-card .g-play{
  pointer-events:auto;
  position:relative;
  z-index:2;
}
html.hs-tpl .gx-card .hs-ovt{
  display:block;
  max-width:100%;
  margin-top:4px;
  font-family:"Arial Black","Segoe UI Black",system-ui,sans-serif;
  font-weight:900;
  font-size:15px;
  line-height:1.1;
  letter-spacing:.05em;
  text-transform:uppercase;
  text-align:center;
  color:#fff;
  text-shadow:0 2px 0 rgba(0,0,0,.6),0 0 16px rgba(0,0,0,.6);
  overflow-wrap:anywhere;
}
html.hs-tpl .gx-card .hs-ovp{
  display:block;
  max-width:100%;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-align:center;
  color:#28ffbb;
  overflow-wrap:anywhere;
}
html.hs-tpl .gx-card .hs-ovp[hidden]{display:none}
html.hs-tpl .gx-card .gx-pi,
html.hs-tpl .gx-card .vl-prv,
html.hs-tpl .gx-card .g-rb,
html.hs-tpl .gx-card .gx-rb{
  z-index:4;
}
@media (max-width:640px){
  html.hs-tpl .gx-card .hs-ovt{font-size:12px}
}
/* Desktop grids must not clip the glowing perimeter */
html.hs-tpl .gx-grid,
html.hs-tpl .gx-sub,
html.hs-tpl #gx-hub{
  overflow:visible!important;
}
