
h1{
    color: aliceblue;
}

#egg {
    background-color: rgba(2,12,13,255);
    justify-content: center;
    align-items: center;
    display:flex;
    flex-direction: column;
}

canvas {
  margin-top: 20px;
}

body {
  background: rgba(2,12,13,255);
}

.invisible {
  display: none;
}

.ability {
  position: relative;
  width: 100px;
  height: 100px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 0 8px rgba(255,255,255,0.1);
  transition: transform 0.2s ease;
  user-select: none;
}

.ability:active {
  transform: scale(0.95);
}

.ability .tt {
  position: absolute;
  bottom: 110%;
  left: 50%;
  width: 280px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.92);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.35;
  font-size: 13px;
  max-width: 280px;
  z-index: 999;
  pointer-events: none;
  text-align: left;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ability:hover .tt { opacity: 1; }

.ability .tt::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.92) transparent transparent transparent;
}

.ability .tt-title {
  color: #ffd100;
  font-weight: 700;
}

.ability .tt-desc {
  color: #fff;
}

.ability img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  pointer-events: none;
}

.cooldown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.cooldown-fill {
  fill: rgba(0, 0, 0, 0.6);
  clip-path: url(#roundedClip);
}

/* .ability.disabled {
  filter: brightness(0.2);
} */

.ability.disabled img,
.ability.disabled .cooldown-overlay,
.ability.disabled .corner-label,
.ability.disabled .cooldown-text {
  filter: brightness(0.2);
}

.cooldown-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffcc;
  font-weight: 700;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  text-shadow: 0 0 4px rgba(0,0,0,0.7);
  pointer-events: none;
  user-select: none;
  display: none;
}

.corner-label {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  text-shadow: 0 0 3px black, 1px 1px 2px black;
  /* background: rgba(0, 0, 0, 0.6); */
  padding: 2px 4px;
  border-radius: 3px;
  pointer-events: none;
}

.hide-counter {
  display: none;
}