/* Castle Crusher: the game's own bits of UI over the play (the rest is @enjo/ui's). */

/* Points springing up where a piece broke: Fredoka white on the brand's solid orange edge, rising and fading. */
.wm-points {
  position: absolute;
  transform: translate(-50%, -50%);
  font: 700 20px var(--enjo-font, "Fredoka"), sans-serif;
  color: #fff;
  text-shadow: 0 3px 0 var(--enjo-primaryEdge, #b63613), 0 0 6px rgba(0, 0, 0, 0.18);
  -webkit-text-stroke: 1px var(--enjo-primaryEdge, #b63613);
  pointer-events: none;
  white-space: nowrap;
  animation: wm-points 1050ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.wm-points--big {
  font-size: 28px;
  color: #ffd84a;
  text-shadow: 0 4px 0 #b06a00, 0 0 8px rgba(0, 0, 0, 0.2);
  -webkit-text-stroke: 1px #b06a00;
}
@keyframes wm-points {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.4); }
  18% { opacity: 1; transform: translate(-50%, -80%) scale(1.15); }
  32% { transform: translate(-50%, -95%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(0.92); }
}


/* The systems' parts (src/systems.js, src/skins.js). A paint's picture: the war machine, wider than it is high, bigger
   than the chest's icons. */
.enjo-ui-chest__look img.wm-skin { width: 76px; }
/* Under 390px wide the bottom bar's buttons (the shots in the centre, the aim left, the extra shot right) a little
   smaller and closer, all alike, so three shots and both power-ups fit on one row down to 320px. */
@media (max-width: 389px) {
  .enjo-ui-actions .enjo-ui-hint { width: 46px; height: 46px; padding: 6px; }
  .enjo-ui-actions .enjo-ui-actions__center { gap: 10px !important; }
}
/* The paint shop's grid cap (@enjo/ui's, the screen's height less 340px) less the status inset twice too: at 320 x 568
   its badge sat at 12px in the 20px inset. Small phones (under 360px): a boss's chest's items a little narrower and the
   paint's picture smaller, so its coins, power-up and paint stay on one row in every language (they wrapped, the badge
   at 2px). Orchard Jar's, Hide N Seek's, Conveyor Truck's, Epic Plane Evolution's and Pixel Color Flow's rules (the
   review, 2026-11-25). */
.enjo-ui-skins__grid { max-height: min(48vh, 440px, calc(100vh - 340px - 2 * var(--enjo-safe-top))); }
@media (max-width: 359px) {
  .enjo-ui-chest { gap: 6px; }
  .enjo-ui-chest__item { min-width: 64px; padding-inline: 6px; }
  .enjo-ui-chest__look img.wm-skin { width: 64px; }
}
