/* iPad-style pre-click hover. Only the decorative plate moves; control bounds stay put. */
.ws-hover-host { isolation: isolate; }
.ws-hover-static { position: relative; }
.ws-hover-host > .ws-hover-lens {
  position: absolute;
  inset: -3px;
  z-index: 4;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffffb8;
  border-radius: var(--ws-hover-radius,inherit);
  pointer-events: none !important;
  user-select: none;
  opacity: 0;
  background: linear-gradient(155deg,#ffffff19,#ffffff05 50%,#557d650a);
  box-shadow: inset 0 1px 1px #ffffffdc,inset 0 -1px 1px #325c3e24,0 7px 19px #1c482526,0 2px 4px #234c3214;
  transform: scale(.965);
  transform-origin: center;
  transition: opacity 140ms ease-out,transform 280ms cubic-bezier(.2,.85,.25,1.15);
}
.ws-hover-lens::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--ws-hover-x,50%) var(--ws-hover-y,15%),#ffffff4d,transparent 68%);
}
.ws-hover-lens::after {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(180px circle at var(--ws-hover-x,50%) var(--ws-hover-y,15%),#fff,#ffffff21 68%);
  mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
}
.ws-hover-host[data-ws-hover] > .ws-hover-lens { opacity: 1; transform: scale(1); }
.ws-hover-host[data-ws-hover='press'] > .ws-hover-lens {
  transform: scale(.98);
  box-shadow: inset 0 1px 2px #ffffffa8,0 2px 6px #24442e17;
  transition-duration: 70ms;
}
.ws-hover-host[data-ws-hover-kind='link'] > .ws-hover-lens { inset: -4px -7px; background-color: #d8e3db29; }
.ws-hover-host[data-ws-hover-kind='card'] > .ws-hover-lens { inset: 0; background: linear-gradient(150deg,#ffffff14,transparent 60%); box-shadow: inset 0 2px 2px #fff,inset 0 -1px 1px #446b4630,0 12px 26px #234b3224; }
.ws-hover-host[data-ws-hover-kind='reel'] > .ws-hover-lens { inset: 0; border: 0; box-shadow: inset 0 8px 23px #ffffff47,inset 0 -5px 15px #315f3b12; transform: none; }
#unitCards.ws-unit-rail > .card.ws-glass-surface[data-ws-hover] { border-color: #fff; box-shadow: inset 0 2px 2px #fff,inset 1px 0 0 #ffffffbf,inset 0 -1px 0 #64826840,0 12px 27px #244c3529; }
.ws-hover-field[data-ws-hover] { border-color: #6e9277; box-shadow: inset 0 1px 1px #fff,0 0 0 3px #ffffff8c,0 6px 17px #234c321c; }
/* Pen hover must work even when iPad reports its primary pointer as coarse. */
@media (prefers-reduced-motion: reduce) {
  .ws-hover-host > .ws-hover-lens, .ws-hover-host[data-ws-hover] > .ws-hover-lens { transition: none; transform: none; }
  .ws-hover-lens::before { background: linear-gradient(150deg,#ffffff24,transparent 65%); }
  .ws-hover-lens::after { background: #ffffffbf; }
}
@media (prefers-reduced-transparency: reduce) {
  .ws-hover-host[data-ws-hover-kind] > .ws-hover-lens { background: none; }
  .ws-hover-lens::before { display: none; }
}
@media (forced-colors: active) {
  .ws-hover-host > .ws-hover-lens { display: none; }
  .ws-hover-host[data-ws-hover], .ws-hover-field[data-ws-hover] { outline: 2px solid Highlight; outline-offset: 3px; }
}
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .ws-hover-lens::after { display: none; }
}
