/* match the game-page dock star: simple green outline, gold when favorited */

button[aria-label="favorite"],
button[aria-label="unfavorite"] {
  background: rgba(8, 18, 8, 0.85) !important;
  border: 1px solid rgba(48, 255, 0, 0.25) !important;
  color: #cfffc0 !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}

button[aria-label="favorite"]:hover {
  background: rgba(8, 18, 8, 0.92) !important;
  border-color: rgba(48, 255, 0, 0.55) !important;
  color: #fff !important;
}

button[aria-label="unfavorite"] {
  background: rgba(40, 28, 0, 0.88) !important;
  border-color: rgba(255, 210, 63, 0.65) !important;
  color: #FFD23F !important;
  box-shadow: 0 0 12px rgba(255, 210, 63, 0.30) !important;
}

/* skeleton shimmer behind game card thumbnails until the image loads */
@keyframes kiwiCardImgShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

img[loading="lazy"] {
  background-color: rgba(48, 255, 0, 0.04);
  background-image: linear-gradient(
    90deg,
    rgba(48, 255, 0, 0.04) 0,
    rgba(48, 255, 0, 0.18) 50%,
    rgba(48, 255, 0, 0.04) 100%
  );
  background-repeat: no-repeat;
  background-size: 400px 100%;
  animation: kiwiCardImgShimmer 1.4s ease-in-out infinite;
}

/* disable the green cursor trail dots (created by the React bundle on mousemove) */
div[style*="kTrail"] { display: none !important; }

/* full-width games grid (applies to index.html and kiwi.html) */
main {
  max-width: none !important;
  width: 100% !important;
}
[data-testid="grid-games"],
[data-testid="grid-skeleton"] {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
}
[data-testid="grid-games"] > *,
[data-testid="grid-skeleton"] > * {
  width: min(185px, 30vw) !important;
  flex: 0 0 auto;
}

/* breathing room between the discord banner and the games grid */
[data-testid="grid-games"],
[data-testid="grid-skeleton"] {
  margin-top: 140px !important;
}

/* bookmark hint — subtle keycaps, slightly bigger than stock */
.bookmark-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 15px !important;
  padding: 7px 16px !important;
  margin-top: 10px !important;
}
.bookmark-pill kbd {
  display: inline-block;
  padding: 1px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #d8ffcc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(48, 255, 0, 0.3);
  border-radius: 5px;
}
.bookmark-pill .bp-plus {
  color: rgba(216, 255, 204, 0.55);
}
.bookmark-pill .bp-label {
  margin-left: 2px;
}

/* more space between title/ctrl+d and the discord button */
.discord-cta {
  margin-top: 25px !important;
}
