/* assets-fx.css — Kenney/rubberduck art wired into the HUD and FX.
   Visual and audio only. Does not change game rules. Loaded after ui-polish. */

@font-face {
  font-family: "Kenney High";
  src: url("assets/fonts/KenneyHigh.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#hud-coins, #win-coins {
  font-family: "Kenney High", Cinzel, Palatino, serif;
  letter-spacing: 0.04em;
}

/* Mute sits with the pause button on the slim top bar. */
#btn-mute {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin-left: 6px;
  padding: 0;
  border: 2px solid #c9a24a;
  border-radius: 8px;
  color: #e6c56a;
  background: #3f3c36 url("assets/ui/button-round.png") center / 100% 100% no-repeat;
  box-shadow: 0 2px 0 #1a1814, inset 0 1px 0 rgba(255, 230, 170, 0.25);
  font: 700 15px Cinzel, Palatino, serif;
  line-height: 1;
  cursor: pointer;
}
#btn-mute:focus, #btn-pause:focus { outline: none; }
#btn-mute.is-muted { color: #7a7264; filter: grayscale(0.35) brightness(0.9); }

#btn-pause {
  background-image: url("assets/ui/button-round.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 8px;
}

/* Gold Kenney buttons on pause/win actions — dark text for contrast. */
#pause-menu button,
#popup button {
  background: #3f3c36 url("assets/ui/button-rect.png") center / 100% 100% no-repeat;
  color: #1a1020;
  text-shadow: 0 1px 0 rgba(255, 230, 170, 0.35);
}
#btn-resume {
  color: #3a2a08;
  padding-left: 28px;
  background-image: url("assets/ui/icon-play.png"), url("assets/ui/button-rect.png");
  background-position: 10px center, center;
  background-size: 14px 14px, 100% 100%;
  background-repeat: no-repeat, no-repeat;
}

button.upg-choice {
  background-image: url("assets/ui/button-rect.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Kenney stars: keep the .star / .star.on hooks, swap the glyph for art. */
#win-stars .star {
  width: 32px;
  height: 32px;
  font-size: 28px;
  color: transparent;
  text-shadow: none;
  background: url("assets/ui/star-outline.png") center / contain no-repeat;
}
#win-stars .star.on {
  color: transparent;
  text-shadow: none;
  background-image: url("assets/ui/star.png");
  filter: drop-shadow(0 0 6px rgba(230, 197, 106, 0.8));
}

/* Small cannon badge on the pause card. */
#pause-menu .pause-card h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  background: url("assets/towers/cannon.png") center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  button.is-press,
  button.is-press::after,
  #win-stars.pop .star {
    animation: none !important;
  }
  #win-stars.pop .star {
    opacity: 1;
    transform: none;
  }
}