/* =====================================================================
   Cute-dark cartoon theme for everything drawn over the forest:
   floating numbers, health bars, smooth (not pixelated) icons.
   ===================================================================== */
@font-face {
  font-family: "Fredoka";
  font-weight: 500;
  src: url("node_modules/@fontsource/fredoka/files/fredoka-latin-500-normal.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Fredoka";
  font-weight: 700;
  src: url("node_modules/@fontsource/fredoka/files/fredoka-latin-700-normal.woff2") format("woff2");
  font-display: block;
}
:root { --toon: "Fredoka", "VT323", sans-serif; }

#stage { background: #1a1230; }
#gl { image-rendering: auto; }

/* item and skill art is painted, not pixel art */
.tile img, .sicon img, #doll .ghostIcon, .ghostTile img { image-rendering: auto; }

/* floating text: chunky, outlined, pops then rises */
.floater {
  font-family: var(--toon); font-weight: 700; font-size: 17px; letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 2px 0 #1b1022, 2px 0 0 #1b1022, -2px 0 0 #1b1022, 0 -2px 0 #1b1022,
               2px 2px 0 #1b1022, -2px 2px 0 #1b1022, 2px -2px 0 #1b1022, -2px -2px 0 #1b1022;
  animation: toonPop .9s cubic-bezier(.2, .9, .3, 1.2) forwards;
}
@keyframes toonPop {
  0% { transform: translate(-50%, -100%) scale(.4); opacity: 1; }
  18% { transform: translate(-50%, -110%) scale(1.25); }
  32% { transform: translate(-50%, -115%) scale(1); }
  75% { opacity: 1; }
  100% { transform: translate(-50%, calc(-100% - 38px)) scale(.95); opacity: 0; }
}
.floater.dmg { color: #fff6e0; }
.floater.crit { color: #ffd23f; font-size: 22px; }
.floater.hurt { color: #ff6b7a; }
.floater.heal { color: #8dffb0; }
.floater.shield { color: #b8c8ff; font-size: 14px; }
.floater.block { color: #b8c8ff; font-size: 13px; }
.floater.burn { color: #ffa245; font-size: 13px; }
.floater.coin { color: #ffd23f; font-size: 12px; }
.floater.big { color: #ffd23f; font-size: 22px; margin-top: -24px; }
.floater.core { color: #8fe3ff; font-size: 14px; margin-top: -44px; }
.floater.loot-normal { color: #e6e0f0; font-size: 12px; }
.floater.loot-magic { color: #8fb8ff; font-size: 14px; }
.floater.loot-rare { color: #ffd23f; font-size: 16px; }
.floater.loot-epic { color: #ff9a3c; font-size: 18px; }

/* overhead health bars: rounded, thick outline */
.ob {
  height: 9px; width: 46px; margin-left: -23px; border-radius: 6px; overflow: hidden;
  background: #2a1830; box-shadow: 0 0 0 2px #1b1022, 0 3px 0 2px rgba(0, 0, 0, .35);
}
.ob.boss { width: 120px; margin-left: -60px; height: 12px; }
.ob i { border-radius: 6px; background: linear-gradient(#8dffb0, #3fbf6c); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35); }
.ob.low i { background: linear-gradient(#ff8a96, #d63a4e); }
.ob.boss i { background: linear-gradient(#ffb347, #e8792a); }
.ob u { height: 3px; border-radius: 3px; background: #b8c8ff; }
