/*
 * Four primary feature entries only: daily task, check-in, lottery and SVIP.
 * The shared theme component continues to own colors, spacing and interaction.
 */
html body .wuai-more-panel .wuai-feature-entry-unified {
  min-width: 0 !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
}

html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-icon {
  flex-shrink: 0 !important;
}

html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-icon img,
html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-icon svg {
  display: block !important;
  width: 26px !important;
  height: 26px !important;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
}

html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-icon img {
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-title {
  min-width: 0 !important;
  min-height: 18px !important;
  max-height: 18px !important;
  overflow: hidden !important;
  line-height: 18px !important;
  white-space: nowrap !important;
  text-overflow: ellipsis;
}

html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-desc {
  min-width: 0 !important;
  min-height: 32px !important;
  max-height: 32px !important;
  overflow: hidden !important;
}

@media (min-width: 992px) {
  html body .wuai-more-panel .wuai-feature-entry-unified {
    height: 156px !important;
    min-height: 156px !important;
    max-height: 156px !important;
  }

  html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-icon img,
  html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-title {
    min-height: 19px !important;
    max-height: 19px !important;
    line-height: 19px !important;
  }

  html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-desc {
    min-height: 33px !important;
    max-height: 33px !important;
  }
}

@media (max-width: 575.98px) {
  html body .wuai-more-panel .wuai-feature-entry-unified {
    height: 134px !important;
    min-height: 134px !important;
    max-height: 134px !important;
  }

  html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-icon img,
  html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-title {
    min-height: 17px !important;
    max-height: 17px !important;
    line-height: 17px !important;
  }

  html body .wuai-more-panel .wuai-feature-entry-unified .wuai-more-desc {
    min-height: 30px !important;
    max-height: 30px !important;
  }
}

/*
 * Keep interaction feedback geometry-free for these four entries only.
 * Coarse pointers win on hybrid WebViews so a sticky hover cannot move a card.
 */
html body .wuai-more-panel .wuai-feature-entry-unified {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@supports (scrollbar-gutter: stable) and selector(body:has(.wuai-feature-entry-unified)) {
  html body:has(.wuai-more-panel .wuai-feature-entry-unified) {
    scrollbar-gutter: stable;
  }
}

@media (hover: hover) and (pointer: fine) {
  html body .wuai-more-panel .wuai-feature-entry-unified,
  html body .wuai-more-panel .wuai-feature-entry-unified:hover,
  html body .wuai-more-panel .wuai-feature-entry-unified:focus,
  html body .wuai-more-panel .wuai-feature-entry-unified:focus-visible,
  html body .wuai-more-panel .wuai-feature-entry-unified:active {
    transition: border-color .16s ease, box-shadow .16s ease !important;
  }

  html body .wuai-more-panel .wuai-feature-entry-unified:hover {
    border-color: rgba(240, 90, 157, .34) !important;
    box-shadow: 0 14px 30px rgba(240, 90, 157, .14), 0 2px 8px rgba(36, 17, 58, .05) !important;
  }
}

@media (hover: none), (pointer: coarse) {
  html body .wuai-more-panel .wuai-feature-entry-unified,
  html body .wuai-more-panel .wuai-feature-entry-unified:hover,
  html body .wuai-more-panel .wuai-feature-entry-unified:focus,
  html body .wuai-more-panel .wuai-feature-entry-unified:focus-visible,
  html body .wuai-more-panel .wuai-feature-entry-unified:active {
    margin: 0 !important;
    border-width: 1px !important;
    border-color: rgba(240, 90, 157, .16) !important;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,248,252,.98) 100%) !important;
    box-shadow: 0 12px 26px rgba(240, 90, 157, .07), 0 2px 8px rgba(36, 17, 58, .04) !important;
    transform: none !important;
    transition: opacity .08s ease !important;
    animation: none !important;
  }

  html body .wuai-more-panel .wuai-feature-entry-unified,
  html body .wuai-more-panel .wuai-feature-entry-unified:hover,
  html body .wuai-more-panel .wuai-feature-entry-unified:focus,
  html body .wuai-more-panel .wuai-feature-entry-unified:focus-visible {
    opacity: 1 !important;
  }

  html body .wuai-more-panel .wuai-feature-entry-unified:active {
    opacity: .96 !important;
  }

  html body .wuai-more-panel .wuai-feature-entry-unified *,
  html body .wuai-more-panel .wuai-feature-entry-unified:hover *,
  html body .wuai-more-panel .wuai-feature-entry-unified:focus *,
  html body .wuai-more-panel .wuai-feature-entry-unified:active * {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
