/* Battle: HUD on top, hand of cards at the bottom, the field (canvas) behind.
   Portrait: a 3x2 grid with equal side columns (the middle is the screen's middle): pause + speed | wave and stage |
   (the corner: sound + gear); under it: . | camp health | coins. Landscape: one centered row. Inside the HUD, under it,
   a strip of FIXED height (#strip) for the wave banners, the boss card and the boss health bar: nothing that comes and
   goes during a match changes the HUD's or the hand's box (main.js layout() reads them for the camera). */
#battle {
  pointer-events: none;
  padding-bottom: clamp(12px, calc(var(--u) * 8), 22px);
  --side: calc(var(--touch) * 2 + var(--u) * 8);
  --strip-h: calc(var(--u) * 40);
  --row2: calc(var(--u) * 34);
}
#battle > * {
  pointer-events: auto;
}
#battle #fieldWrap,
#battle #hud {
  pointer-events: none;
}
#hud > :not(#strip) {
  pointer-events: auto;
}
#hud {
  width: 100%;
  display: grid;
  gap: calc(var(--u) * 6);
  align-items: stretch;
  grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
  grid-template-rows: var(--touch) var(--row2) auto var(--strip-h);
  grid-template-areas: 'btns wave .' 'base base coins' 'shops shops shops' 'strip strip strip'; /* round 3: the camp bar fills the second row */
  padding: calc(var(--u) * 10) calc(var(--u) * 10) 0;
}
@media (max-aspect-ratio: 4/3) {
  #stage[data-screen='battle'] {
    --hud-width: 760px;
  }
  #hud {
    max-width: var(--hud-width);
  }
  #stage[data-screen='battle'] #corner {
    right: max(calc(var(--u) * 10), calc((100% - var(--hud-width)) / 2 + var(--u) * 10));
  }
}
#hud .plate {
  border-width: calc(var(--u) * 7) calc(var(--u) * 8);
}
#battle.boss-training .battle-shops [data-open] {
  display: none;
}
#hud .battle-shops {
  grid-area: shops;
  display: flex;
  justify-content: center;
  gap: 6px;
}
#hud .battle-shops .btn {
  --bt: 6px;
  --bb: 8px;
  min-height: 44px;
  border-inline-width: 7px;
  padding: 0 3px;
  font-size: clamp(12px, calc(var(--u) * 13), 17px);
}
#focusBtn[hidden],
#tacticalBtn[hidden] {
  display: none;
}
#tacticalBtn[aria-pressed='true'] {
  outline: 2px solid #8ee8bd;
  outline-offset: 1px;
  border-radius: 8px;
}
#hud .battle-shops .btn > span {
  padding-inline: 2px;
}
#hud .battle-shops .btn {
  height: 44px;
  align-self: center;
}
#hud .hbtns {
  grid-area: btns;
  display: flex;
  gap: calc(var(--u) * 8);
}
#waveBox {
  grid-area: wave;
  display: flex;
  justify-content: center;
  min-width: 0;
}
#waveBox > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--cap) calc(var(--u) * 4) 0;
  min-width: 0;
}
#waveTxt {
  font-size: calc(var(--u) * 17);
  line-height: 1.05;
  white-space: nowrap;
}
#waveSub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: calc(var(--u) * 12);
  color: var(--muted);
  line-height: 1.15;
  white-space: nowrap;
  font-weight: 500;
}
#waveSub i {
  font-style: normal;
}
/* next wave countdown: hourglass + seconds, only between waves */
#waveIn {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  color: var(--text);
  font-weight: 600;
}
#waveIn .ic {
  width: 1.15em;
  height: 1.15em;
}
#waveIn[hidden],
#battle:has(#between.on) #waveIn {
  display: none;
}
#baseBox {
  grid-area: base;
  display: flex;
  min-width: 0;
}
#baseBox > span {
  flex: 1;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 5);
  min-width: 0;
  padding: 0 calc(var(--u) * 2);
}
#baseBox > span > .ic {
  width: calc(var(--u) * 21);
  height: calc(var(--u) * 21);
}
#baseBox .bar {
  flex: 1;
  height: calc(var(--u) * 18);
}
#baseNum {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--u) * 12.5);
  padding-top: var(--cap);
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(6, 16, 20, 0.85),
    0 0 calc(var(--u) * 3) rgba(6, 16, 20, 0.6);
}
#hud .coins-pill {
  grid-area: coins;
  justify-self: end;
  font-size: calc(var(--u) * 16);
  min-height: 0;
  height: 100%;
  border-width: calc(var(--u) * 9) calc(var(--u) * 11);
  position: relative;
}
#hud .coins-pill .ic {
  width: 1.1em;
  height: 1.1em;
}
#speedBtn b {
  font-size: calc(var(--u) * 16);
}

/* the strip: one thing at a time, centered (boss card > banner > boss bar), never over the field */
#strip {
  grid-area: strip;
  position: relative;
  pointer-events: none;
  min-width: 0;
}
#banner,
#bossCard,
#bossBar,
#bossUrgent {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  max-width: 100%;
}
#bossUrgent {
  transform: translateX(-50%);
  min-width: min(100%, 260px);
  width: max-content;
  padding: 0 8px;
  font-size: clamp(11px, calc(var(--u) * 13), 17px);
  line-height: 1.1;
  color: #fff1ca;
  background-color: #603818;
}
#banner {
  font-size: calc(var(--u) * 17);
  white-space: nowrap;
  padding: 0 calc(var(--u) * 8);
}
#banner.long {
  white-space: normal;
  width: max-content;
  font-size: calc(var(--u) * 13);
  line-height: 1.1;
}
#banner > span,
#bossCard > span {
  padding-top: var(--cap);
  min-width: 0;
}
#bossBar {
  width: min(100%, calc(var(--u) * 330));
  transform: translateX(-50%);
}
#bossBar.show {
  opacity: 1;
}
#bossBar > span {
  flex: 1;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 8);
  min-width: 0;
  padding: 0 calc(var(--u) * 2);
}
#bossBar b {
  flex: none;
  max-width: 42%;
  font-size: calc(var(--u) * 14);
  color: #ffd66b;
  white-space: nowrap;
  padding-top: var(--cap);
}
#bossBar .bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(var(--u) * 2);
  min-width: 0;
}
#bossBar .bar.hp {
  height: calc(var(--u) * 15);
}
#bossBar .bar.hp .fill {
  filter: hue-rotate(-105deg) saturate(1.2) brightness(1.08);
} /* amber, never strong red */
/* the golem's shell (round 4): its own row with a stone-shield icon and a stone-blue fill, so it reads as armor */
#bossBar .shrow {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 3);
}
#bossBar .shrow > .ic {
  flex: none;
  width: calc(var(--u) * 17);
  height: calc(var(--u) * 17);
  margin: calc(var(--u) * -5) 0;
}
#bossBar .bar.shell {
  flex: 1;
  height: calc(var(--u) * 9);
  border-width: calc(var(--u) * 2) calc(var(--u) * 4);
}
#bossBar .bar.shell .fill {
  filter: grayscale(1) sepia(0.6) hue-rotate(165deg) saturate(1.5) brightness(1.02);
  inset: calc(var(--u) * -1) calc(var(--u) * -2);
  border-width: calc(var(--u) * 2) calc(var(--u) * 4);
}
#bossBar .boss-percent {
  flex: none;
  min-width: 4ch;
  text-align: end;
  color: #f1f7f9;
  font-size: clamp(11px, calc(var(--u) * 11), 15px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#bossBar .bar.shell .fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 4px, #12263573 4px 6px);
}
#bossBar:not(.golem) .shrow {
  display: none;
}
#bossBar.msg b {
  color: var(--text);
}
/* camp in danger (<= 25%): the bar turns amber and glows slowly (2 s, brightness only: never a blink, never red) */
#baseBox.danger .fill {
  filter: hue-rotate(-105deg) saturate(1.15) brightness(1.05);
  animation: campWarn 2s ease-in-out infinite;
}
#baseBox.danger #baseNum::before {
  content: '!';
  margin-inline-end: 0.38em;
}
#baseBox.danger .fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 5px, #36220a99 5px 8px);
}
#baseBox.danger > span > .ic {
  animation: campWarnIc 2s ease-in-out infinite;
}
@keyframes campWarn {
  50% {
    filter: hue-rotate(-105deg) saturate(1.15) brightness(1.3)
      drop-shadow(0 0 calc(var(--u) * 4) rgba(255, 176, 64, 0.75));
  }
}
@keyframes campWarnIc {
  50% {
    filter: drop-shadow(0 0 calc(var(--u) * 4) rgba(255, 176, 64, 0.9)) brightness(1.15);
  }
}
.calm #baseBox.danger .fill,
.calm #baseBox.danger > span > .ic {
  animation-name: none !important;
}
/* the screen-space flights (fx/fly.js canvas, above the HUD) never show over a panel: frozen mid-air they read as
   broken art on the buttons */
body:has(#modal.on) #fly {
  visibility: hidden;
}
#strip.cut > * {
  transition: none !important;
}

#fieldWrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
#hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  bottom: calc(var(--u) * 6 + var(--hint-lift, 0px));
  width: min(92%, calc(var(--u) * 420));
  font-size: calc(var(--u) * 13);
  font-weight: 500;
  line-height: 1.25;
}
#hint > span {
  padding-top: var(--cap);
}
#hint.show {
  opacity: 1;
}

/* hand: css/dock.css (the new dock, 01/12) */
#ghost {
  position: fixed;
  display: none;
  z-index: 20;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #11151a;
  font-size: 18px;
  opacity: 0.95;
  background: center bottom / contain no-repeat;
}

/* landscape: one HUD row and the hand, both centered; smaller units on big screens (the field is what matters) */
@media (min-aspect-ratio: 4/3) {
  /* battle only (the menu keeps its size); the top corners (sound + gear, menu coins) take the same unit on every
     screen, so they never change size between the menu and a match */
  #stage[data-screen='battle'],
  #corner,
  #menu .coins-pill {
    --u: min(100vw / 390, 100dvh / 480, 2px);
    --touch: max(44px, calc(var(--u) * 42));
  }
  #battle {
    --strip-h: calc(var(--u) * 36);
  }
  #hud {
    grid-template-columns: auto minmax(calc(var(--u) * 120), auto) minmax(0, calc(var(--u) * 210)) auto;
    grid-template-rows: var(--touch) auto var(--strip-h);
    grid-template-areas: 'btns wave base coins' 'shops shops shops shops' 'strip strip strip strip';
    justify-content: center;
    padding: calc(var(--u) * 7) var(--side) 0;
    row-gap: calc(var(--u) * 3);
  }
  #stage[data-screen='battle'] #corner {
    top: calc(var(--u) * 7);
  } /* same top as the HUD row */
  #hud .coins-pill {
    height: auto;
  }
  #baseBox .bar {
    height: calc(var(--u) * 20);
  }
}
/* phone landscape (844x390): the HUD sits in the two top corners (the field's top corners are empty) and the strip
   takes the gap in the middle of that row, so the field gets the whole height */
@media (min-aspect-ratio: 4/3) and (max-height: 500px) {
  /* right padding = the corner (sound + gear) with its own margin and a gap: the coins never slide under it */
  #hud {
    padding: 4px calc(var(--side) + var(--u) * 10 + 13px) 0 8px;
    grid-template-rows: var(--touch);
    grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 150px) auto;
    justify-content: stretch;
  }
  #hud {
    grid-template-areas: 'btns wave shops base coins';
    position: relative;
  }
  #stage[data-screen='battle'] #corner {
    top: 4px;
  }
  /* the strip goes under the left HUD block, beside the field (main.js reads the HUD box: this never changes it) */
  #strip {
    position: absolute;
    left: 8px;
    top: calc(100% + 4px);
    height: 38px;
    width: min(250px, calc(var(--field-left, 270px) - 16px));
  }
  #banner {
    font-size: 14px;
  }
  #banner.long {
    font-size: 11.5px;
  }
}

/* ---- block 4 juice. Entries use the same animation in 1 ms with less motion (base.css), never none */
/* strip pieces: drop in from under the HUD with a spring, rise out (only opacity and transform: no blink) */
/* round 4: opacity and --k come from ui/fade.js on the presentation clock (140 ms in and out, opaque in between) */
#banner,
#bossCard {
  transform: translate(-50%, calc(var(--u) * -8 * (1 - var(--k, 0)))) scale(calc(0.95 + 0.05 * var(--k, 0)));
}
#bossCard {
  padding: 0 calc(var(--u) * 12);
}
#bossCard > span {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#bossCard b {
  font-size: calc(var(--u) * 16);
  white-space: nowrap;
  color: #ffd66b;
  line-height: 1.05;
}
#bossCard small {
  font-size: calc(var(--u) * 11);
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.1;
}
/* counters that receive coins / mana: a spring bump */
#hud .coins-pill.bump > span,
#energy.bump > .ic {
  animation: bump 0.42s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes bump {
  0% {
    scale: 1;
  }
  30% {
    scale: 1.13;
  }
  65% {
    scale: 0.96;
  }
  100% {
    scale: 1;
  }
}
/* kill streak: a small plate "⚔ 9 in a row!" under the coin column (its grid area is the containing block). Portrait:
   under the strip (never over a banner or the boss bar); landscape: right under the coins, under the strip while a
   boss bar shows; phone landscape: under the coins (the strip is on the left). Shown and hidden at once. */
#hud {
  position: relative;
}
#hud > #streak {
  grid-area: strip;
  position: absolute;
  right: 0;
  top: calc(100% + var(--u) * 4);
  height: calc(var(--u) * 24);
  box-sizing: border-box;
  border-width: calc(var(--u) * 5) calc(var(--u) * 7);
  display: flex;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}
@media (min-aspect-ratio: 4/3) {
  #hud > #streak {
    grid-area: coins;
  }
  #hud.boss > #streak {
    grid-area: strip;
  }
}
@media (min-aspect-ratio: 4/3) and (max-height: 500px) {
  #hud.boss > #streak {
    grid-area: coins;
  }
}
#streak > span {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 4);
  padding-top: var(--cap);
  white-space: nowrap;
  font-size: calc(var(--u) * 11.5);
  color: #ffd66b;
}
#streak .ic {
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
  margin: calc(var(--u) * -2) 0;
}
#hud > #streak.show {
  visibility: visible;
}
#streak.step {
  animation: streakStep 0.24s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes streakStep {
  from {
    scale: 1.15;
  }
}
/* camp health: the lost chunk stays a moment as a light shadow, then follows (at 0 it drops at once) */
#baseBox .bar > .lag {
  position: absolute;
  inset: calc(var(--u) * 1) calc(var(--u) * 1);
  border-radius: calc(var(--u) * 6);
  background: rgba(255, 255, 255, 0.32);
  clip-path: inset(0 calc(100% - var(--f, 1) * 100%) 0 0);
  transition: clip-path 0.45s ease-out 0.35s;
}
#baseBox .bar > .lag.zero {
  transition: none;
}
/* mana full: one light sweep over the meter (once, when it fills); it lives inside the fill, clipped by it */
#energy.full .fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  translate: -100% 0;
  animation: glint 0.7s ease-out forwards;
  pointer-events: none;
}
@keyframes glint {
  to {
    translate: 100% 0;
    opacity: 0;
  }
}
/* Flare ready again: a short jump */
#pulseBtn.ready > img {
  animation: flareReady 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes flareReady {
  40% {
    translate: 0 calc(var(--u) * -7);
    scale: 1.06;
  }
}
#pulseBtn.deny {
  animation: deny 0.25s;
}

/* tip: a short balloon from the cell (or the Flare button / the first bat), a hand that drags from the Knight card;
   5 s or until the player does it; never pauses. The hand loop stops with less motion (.loop) */
#tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  width: max-content;
  max-width: min(84vw, calc(var(--u) * 250));
}
#tip[data-mode='flat'] .tail {
  display: none;
}
#tipHand.cut {
  transition: none;
}
#tip .bubble {
  display: block;
  border-width: calc(var(--u) * 7) calc(var(--u) * 9);
}
#tip p {
  margin: 0;
  padding-top: var(--cap);
  font-size: calc(var(--u) * 12);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
#tip .tail {
  position: absolute;
  left: var(--tx, 50%);
  width: calc(var(--u) * 22);
  height: auto;
  translate: -50% 0;
  top: calc(100% - var(--u) * 3);
}
#tip[data-mode='up'] .tail {
  top: auto;
  bottom: calc(100% - var(--u) * 3);
}
#tip[data-mode^='side'] .tail {
  top: var(--ty, 50%);
  translate: -50% -50%;
}
#tip[data-mode='side-l'] .tail {
  left: calc(100% + var(--u) * 3);
  rotate: -90deg;
}
#tip[data-mode='side-r'] .tail {
  left: calc(var(--u) * -3);
  rotate: 90deg;
}
#tipHand {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6;
  width: calc(var(--u) * 40);
  height: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s;
  translate: var(--x1, 0) var(--y1, 0);
  filter: drop-shadow(0 calc(var(--u) * 2) calc(var(--u) * 2) rgba(6, 16, 20, 0.5));
}
#tipHand.show {
  opacity: 1;
  animation: tipDrag 1.6s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}
@keyframes tipDrag {
  0% {
    translate: var(--x0) var(--y0);
    opacity: 0;
  }
  10% {
    translate: var(--x0) var(--y0);
    opacity: 1;
    scale: 1;
  }
  18% {
    scale: 0.9;
  }
  76% {
    translate: var(--x1) var(--y1);
    scale: 0.9;
    opacity: 1;
  }
  90%,
  100% {
    translate: var(--x1) var(--y1);
    scale: 1;
    opacity: 0;
  }
}
/* End of hud.css */
/* item 46: the boss's head beside its bar; a mark (art) at each moment of the fight, dim once passed */
#bossBar img.bp {
  flex: none;
  width: calc(var(--u) * 34);
  height: calc(var(--u) * 28);
  object-fit: contain;
  margin: calc(var(--u) * -6) calc(var(--u) * -4) calc(var(--u) * -6) calc(var(--u) * -6);
}
#bossBar .bar.hp .mark {
  position: absolute;
  top: 50%;
  width: calc(var(--u) * 11);
  height: calc(var(--u) * 10);
  translate: -50% -50%;
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.3s,
    scale 0.3s;
}
#bossBar .bar.hp .mark.past {
  opacity: 0.35;
  scale: 0.8;
}
/* H90 the playable tutorial (src/ui/tutorial.js): one balloon with the step's line and Skip, a hand of art that points;
   only Skip takes touches. The old text hint steps aside while it runs. Calm: the hand rests */
#tut {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6;
  width: max-content;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  max-width: min(92vw, calc(var(--u) * 330));
  border: 1px solid #0d2833;
  border-radius: calc(var(--u) * 7);
  background: #17333f;
  padding: 0 calc(var(--u) * 10);
}
#tut.on {
  opacity: 1;
}
#tut .tut-zoom {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0 6px;
  color: #cce8e7;
  font-size: clamp(11px, calc(var(--u) * 10), 15px);
  line-height: 1.2;
}
#tut .tut-zoom[hidden] {
  display: none;
}
#tut .tut-zoom svg {
  flex: none;
  color: #8affba;
}
#tut > span {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 12);
}
#tut b {
  font-size: calc(var(--u) * 15);
  font-weight: 700;
  padding-top: var(--cap);
  line-height: 1.2;
}
#tut .skip {
  pointer-events: auto;
  flex: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 calc(var(--u) * 4);
  border: 0;
  background: none;
  color: #6ff0a8;
  font: inherit;
  font-size: calc(var(--u) * 14);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#tutHand {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 26;
  width: calc(var(--u) * 46);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  translate: calc(var(--x1, 0px) - 10%) calc(var(--y1, 0px) - 8%);
  animation: tutPoint 1.1s ease-in-out infinite;
}
#tutHand.on {
  opacity: 1;
}
#tutHand:not(.on) {
  animation: none;
}
@keyframes tutPoint {
  50% {
    translate: calc(var(--x1, 0px) - 10% + 4px) calc(var(--y1, 0px) - 8% + 6px);
  }
}
.calm #tutHand {
  animation: none;
}
body.tut-prep #hud .battle-shops,
body.tut-prep #pulseBtn {
  visibility: hidden;
}
.tut-target {
  outline: 2px solid #8affba;
  outline-offset: 1px;
  border-radius: 8px;
}
body.tut #hint {
  display: none !important;
}
body.tut-placing #waveIn,
body:has(.modal.on) #tut,
body:has(.modal.on) #tutHand {
  visibility: hidden;
}

@media (max-aspect-ratio: 4/3) and (max-width: 490px) {
  #battle {
    --strip-h: 30px;
    --row2: 28px;
  }
  #hud {
    row-gap: 3px;
    padding-top: 6px;
  }
  #stage[data-screen='battle'] #corner {
    top: 6px;
  }
  #hud .battle-shops .btn {
    --bt: 5px;
    --bb: 5px;
  }
}

@media (min-aspect-ratio: 4/3) and (max-height: 500px) and (max-width: 760px) {
  #hud .battle-shops {
    position: absolute;
    top: calc(100% + 4px);
    right: 8px;
    grid-area: auto;
  }
}

#battle #campReaction {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 45%;
  width: min(60%, 310px);
  translate: -50% -50%;
  pointer-events: none;
  animation: camp-reaction 1.42s ease both;
}
#campReaction img {
  display: block;
  width: 100%;
  border: 2px solid #37545a;
  border-radius: 12px;
  box-shadow: 0 5px 16px #12253566;
}
@keyframes camp-reaction {
  0%,
  100% {
    opacity: 0;
    scale: 0.95;
  }
  16%,
  76% {
    opacity: 1;
    scale: 1;
  }
}

body:has(#bossUrgent.show, #campReaction:not([hidden])) :is(#joinCard, #foeCard) {
  visibility: hidden;
}
/* End of css/hud.css (complete file). */
