/* Heroes, merge and camp juice. Times and sizes in the block
   below; the canvas side lives in src/feel-herois.js. One-shots run in 1 ms with less motion (css/base.css); the
   only loop here (the Flare's ember ring) stops with less motion. */
:root {
  --h-look-in: 260ms; /* C6: the "new look" card slides in */
  --h-ember-spin: 14s; /* E7: and a slow turn */
}

/* ---- C6: the "new look" card, top-left of the field (never over the middle), a tap anywhere closes it, it never takes the tap */
#lookCard {
  position: fixed;
  z-index: 30;
  left: 10px;
  top: calc(var(--field-top, 90px) + 6px);
  display: none;
  align-items: center;
  gap: calc(var(--u) * 6);
  padding: calc(var(--u) * 4) calc(var(--u) * 10) calc(var(--u) * 4) calc(var(--u) * 4);
  border-radius: calc(var(--u) * 12);
  background: rgba(18, 34, 40, 0.92);
  border: 2px solid #ffd66b;
  color: #fff;
  box-shadow: 0 calc(var(--u) * 3) 0 rgba(0, 0, 0, 0.25);
  pointer-events: none;
  max-width: calc(100vw - 20px);
}
#lookCard.on {
  display: flex;
  animation: lookIn var(--h-look-in) cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
@keyframes lookIn {
  from {
    translate: calc(var(--u) * -16) 0;
    opacity: 0;
  }
}
#lookCard .pic {
  flex: none;
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 46);
  background: center bottom / contain no-repeat;
}
#lookCard b {
  display: block;
  color: #ffd66b;
  font-size: calc(var(--u) * 15);
  font-weight: 600;
  line-height: 1.15;
  padding-top: var(--cap, 0);
}
#lookCard small {
  display: block;
  font-size: calc(var(--u) * 12);
  opacity: 0.9;
  white-space: nowrap;
}

/* ---- E7: the Flare ready: embers turning around the button (art: camp/ember-ring-0..2) */
#pulseBtn::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  aspect-ratio: 200 / 193;
  translate: -50% calc(-50% - var(--u) * 8);
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms;
  background: center / contain no-repeat url('../assets/camp/ember-ring-0.webp');
}
/* one frame turning slowly (swapping the 3 frames read as blinking dots: the owner's veto) */
#pulseBtn:not(.off)::before {
  opacity: 0.9;
  animation: emberSpin var(--h-ember-spin) linear infinite;
}
@keyframes emberSpin {
  to {
    rotate: 1turn;
  }
}
.calm #pulseBtn::before {
  animation-name: none !important;
}

/* ---- B0: the heroes panel: the 5 looks of each hero (reached in color, the rest a dark silhouette) */
.hcard .looks {
  display: flex;
  justify-content: center;
  margin: calc(var(--u) * 1) 0 calc(var(--u) * 2);
}
/* the art has empty margins: the 5 overlap a little so each can be bigger in a narrow card */
.hcard .looks i {
  flex: none;
  width: calc(var(--u) * 25);
  height: calc(var(--u) * 28);
  margin: 0 calc(var(--u) * -4.6);
  background: center bottom / contain no-repeat;
}
.hcard .looks i.no {
  filter: brightness(0) opacity(0.45);
}
@media (max-aspect-ratio: 4/3) and (max-height: 720px) {
  .hcard .looks i {
    width: calc(var(--u) * 22);
    height: calc(var(--u) * 24);
    margin: 0 calc(var(--u) * -4);
  }
}
/* End of css/herois.css (complete file). */
