/* Home VOTW height and consistent hover feedback — 15 November 2026.
   Loaded after the icon-parity rules; desktop WOTD remains the height reference. */
@media (min-width:1021px) {
  body[data-current-view="home"] #content .h162-root .h162-primary[data-h162-balanced="true"] {
    /* 59% server / 41% weekly video instead of 62% / 38%. */
    grid-template-rows:minmax(0,1.42fr) minmax(0,1fr)!important;
  }
  body[data-current-view="home"] #content .h162-root .h162-primary[data-h162-balanced="true"] .h162-status {
    padding:11px 14px!important;
  }
}
@media (min-width:561px) {
  /* Only trim the oversized count and clock tiles, not the chart or icons. */
  body[data-current-view="home"] #content .h162-status :is(.h245-server-count-main,.h245-server-time),
  body[data-current-view="home"] #content .h162-primary[data-h162-balanced="true"] .h162-status :is(.h245-server-count-main,.h245-server-time) {
    min-height:78px!important;
    padding:9px 11px!important;
  }
}
body[data-current-view="home"] #content .h162-status .h245-server-top {
  margin-bottom:10px!important;
}
body[data-current-view="home"] #content .h162-status .h245-server-summary {
  margin-bottom:9px!important;
}

/* Bubbles respond to their own hitboxes only.
   Do not gate mouse CSS hover on (hover:hover) / (pointer:fine):
   Chromium/Edge on hybrid touch+mouse hardware may report a coarse primary
   pointer even while the mouse truly hovers over the element. JavaScript's
   h245-bubble-lit class is a supplemental pointer/touch path, not a
   prerequisite for the regular hover style. */
body[data-current-view="home"] #content .h162-root :is(
  .h162-heading-icon,.h193-icon-orb,.h245-server-icon,
  .h245-info-icon,.h245-metric-icon,.h241-arcade-game-image,
  .h162-float-bubble,.h245-server-badge
) {
  transition:transform .26s cubic-bezier(.2,.7,.2,1),
             border-color .26s ease,box-shadow .26s ease,
             background-color .26s ease!important;
  transform-origin:center center;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
}
/* Explicitly target the bubble itself, not .h162-card:hover, heading:hover,
   a stats window hover, or its parent navigation link. */
body[data-current-view="home"] #content .h162-root
:is(.h162-heading-icon,.h193-icon-orb,.h245-server-icon,.h245-info-icon,
    .h245-metric-icon,.h241-arcade-game-image):is(:hover,.h245-bubble-lit),
body[data-current-view="home"] #content .h162-root
.h241-arcade-game:focus-visible .h241-arcade-game-image {
  transform:translateY(-4px) scale(1.045)!important;
  border-color:rgba(230,244,255,.86)!important;
  background:radial-gradient(circle at 26% 6%,rgba(248,253,255,.39),transparent 49%),
             linear-gradient(145deg,rgba(163,212,255,.40),rgba(67,113,194,.30))!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.40),
             0 13px 28px rgba(5,24,61,.34),
             0 0 23px rgba(109,186,255,.14)!important;
}
body[data-current-view="home"] #content .h162-root
:is(.h162-float-bubble,.h245-server-badge):is(:hover,.h245-bubble-lit,:focus-visible) {
  transform:translateY(-3px) scale(1.025)!important;
  border-color:rgba(210,236,255,.73)!important;
  background:radial-gradient(circle at 26% 6%,rgba(248,253,255,.26),transparent 49%),
             linear-gradient(145deg,rgba(110,180,237,.34),rgba(39,89,159,.29))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.32),
             0 11px 24px rgba(4,19,46,.29)!important;
}
body[data-current-view="home"] #content .h162-root .h241-arcade-game:focus-visible .h241-arcade-game-image {
  outline:2px solid #b8ecff;
  outline-offset:2px;
}
/* Reduced motion keeps an obvious highlight but no movement. */
@media (prefers-reduced-motion:reduce) {
 body[data-current-view="home"] #content .h162-root
 :is(.h162-heading-icon,.h193-icon-orb,.h245-server-icon,.h245-info-icon,
     .h245-metric-icon,.h241-arcade-game-image,.h162-float-bubble,.h245-server-badge) {
   transition:none!important;
 }
 body[data-current-view="home"] #content .h162-root
 :is(.h162-heading-icon,.h193-icon-orb,.h245-server-icon,.h245-info-icon,
     .h245-metric-icon,.h241-arcade-game-image,.h162-float-bubble,.h245-server-badge):is(:hover,.h245-bubble-lit,:focus-visible),
 body[data-current-view="home"] #content .h162-root
 .h241-arcade-game:focus-visible .h241-arcade-game-image {
   transform:none!important;
 }
}

/* WOTD vs. Server Status header alignment. The server's balanced card uses
   11px top padding; match that only in the side-by-side balanced layout.
   No position changes for the stacked phone/zoom layout. */
@media (min-width:1021px) {
  body[data-current-view="home"] #content .h162-root
  .h162-primary[data-h162-balanced="true"] > .h162-wotd {
    padding-top:11px!important;
  }
  /* Removing the separate Watch Video link returns its height to the
     thumbnail, which is now the full clickable YouTube target. */
  body[data-current-view="home"] #content .h162-root
  .h162-primary[data-h162-balanced="true"] .h162-votw .h163-video-thumb {
    flex:1 1 0!important;
    margin-bottom:3px!important;
  }
}
/* In the natural-height layout, preserve the 16:9 thumbnail aspect ratio. */
body[data-current-view="home"] #content .h162-root .h162-votw .h163-video-thumb {
  cursor:pointer;
  width:100%;
}
body[data-current-view="home"] #content .h162-root .h162-votw .h163-video-thumb:focus-visible {
  outline:2px solid #b8ecff;
  outline-offset:3px;
}

