/* Workbench bubble-hover parity.
   Reuse the V90 Growtopia liquid-bubble interaction on:
   - category icons in the top navigation dropdown headings
   - visible navigation category icons
   - all three unrevealed Arcade question-mark orbs
   - the small icon bubbles in the Home Favorites tiles.
   Motion is deliberately hover-only; unreleased items remain inert. */

@media (hover:hover) and (pointer:fine) {
  /* Only the icon itself is an interactive hover bubble; header/card areas are not. */
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-menu-head.wb3-menu-head .wb3-menu-head-icon {
    transform:translate3d(0,0,0);
    transform-origin:center center;
    transition:transform .26s cubic-bezier(.2,.7,.2,1),
      border-color .26s ease,box-shadow .26s ease,
      filter .26s ease,background .26s ease!important;
    box-shadow:inset 0 1px rgba(245,253,255,.19),0 5px 12px rgba(3,19,47,.12);
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-menu-head.wb3-menu-head .wb3-menu-head-icon:hover,
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-menu-head.wb3-menu-head .wb3-menu-head-icon:focus-visible {
    transform:translateY(-5px) 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 25px rgba(5,24,61,.30),0 0 22px rgba(109,186,255,.13)!important;
    filter:drop-shadow(0 3px 5px rgba(0,13,37,.15));
  }

  /* Nav art only responds when the pointer is directly on its own icon box. */
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-nav-button .wb2-nav-mark {
    transition:transform .26s cubic-bezier(.2,.7,.2,1),
      filter .26s ease!important;
    transform-origin:center;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-nav-button .wb2-nav-mark:hover,
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-nav-button .wb2-nav-mark:focus-visible {
    transform:translateY(-3px) scale(1.075)!important;
    filter:drop-shadow(0 5px 7px rgba(100,187,255,.27));
  }

  /* The Arcade's three question marks are inert, but individually hoverable.
     The locked-card parent previously disabled pointer events for everything. */
  body[data-current-view="home"] #content
  .h162-root .h264-mystery-bubbles > .h247-unrevealed-bubble {
    pointer-events:auto!important;
    cursor:default;
    transform:translate3d(0,0,0);
    transform-origin:center center;
    transition:transform .26s cubic-bezier(.2,.7,.2,1),
      border-color .26s ease,box-shadow .26s ease,
      background .26s ease,opacity .26s ease!important;
  }
  body[data-current-view="home"] #content
  .h162-root .h264-mystery-bubbles > .h247-unrevealed-bubble img {
    transition:transform .26s cubic-bezier(.2,.7,.2,1),
      filter .26s ease!important;
  }
  body[data-current-view="home"] #content
  .h162-root .h264-mystery-bubbles > .h247-unrevealed-bubble:hover {
    transform:translateY(-5px) scale(1.045)!important;
    opacity:1!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 .h264-mystery-bubbles > .h247-unrevealed-bubble:hover img {
    transform:scale(1.08)!important;
    filter:drop-shadow(0 7px 9px rgba(0,9,33,.26));
  }

  /* Favorites: icon-only hover; the surrounding tile does not activate it. */
  body[data-current-view="home"] #content
  .h162-favorites-card .h246-fav-tile > .h246-fav-art {
    transform:translate3d(0,0,0);
    transform-origin:center;
    transition:transform .26s cubic-bezier(.2,.7,.2,1),
      border-color .26s ease,background .26s ease,
      box-shadow .26s ease!important;
  }
  body[data-current-view="home"] #content
  .h162-favorites-card .h246-fav-tile > .h246-fav-art img {
    transition:transform .26s cubic-bezier(.2,.7,.2,1),
      filter .26s ease!important;
  }
  body[data-current-view="home"] #content
  .h162-favorites-card .h246-fav-tile > .h246-fav-art:hover {
    transform:translateY(-5px) 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 10px 20px rgba(5,24,61,.31),0 0 20px rgba(109,186,255,.12)!important;
  }
  body[data-current-view="home"] #content
  .h162-favorites-card .h246-fav-tile > .h246-fav-art:hover img {
    transform:scale(1.08)!important;
    filter:drop-shadow(0 7px 9px rgba(0,9,33,.24));
  }
}

/* Keep optional keyboard focus local to the small icon, never the parent card. */
body[data-current-view="home"] #content
.h162-favorites-card .h246-fav-tile > .h246-fav-art:focus-visible {
  border-color:rgba(230,244,255,.86)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.40),
    0 10px 20px rgba(5,24,61,.31)!important;
}
@media (prefers-reduced-motion:reduce) {
  html[data-gtt-design-mode="workbench"] #wb2-shell
  :is(.wb3-menu-head-icon,.wb2-nav-mark),
  body[data-current-view="home"] #content
  :is(.h264-mystery-bubbles .h247-unrevealed-bubble,
      .h264-mystery-bubbles .h247-unrevealed-bubble img,
      .h246-fav-tile .h246-fav-art,
      .h246-fav-tile .h246-fav-art img) {
    transition:none!important;
    animation:none!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-menu-head.wb3-menu-head .wb3-menu-head-icon:hover,
  html[data-gtt-design-mode="workbench"] #wb2-shell
  .wb2-nav-button .wb2-nav-mark:hover,
  body[data-current-view="home"] #content
  .h264-mystery-bubbles > .h247-unrevealed-bubble:hover,
  body[data-current-view="home"] #content
  .h264-mystery-bubbles > .h247-unrevealed-bubble:hover img,
  body[data-current-view="home"] #content
  .h246-fav-tile > .h246-fav-art:hover,
  body[data-current-view="home"] #content
  .h246-fav-tile > .h246-fav-art:hover img {
    transform:none!important;
  }
}
