.game-shell.has-modal:has(> .final-veil) {
  height: 100dvh;
  min-height: 0;
}
.game-shell.has-modal > .veil.final-veil {
  --final-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
  height: 100dvh;
  padding: var(--safe-top) 0 var(--safe-bottom);
  background: #111810;
  backdrop-filter: none;
}
.final-screen {
  position: relative;
  width: min(100%, calc(var(--final-height) * 852 / 1846));
  aspect-ratio: 852 / 1846;
}
.final-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.final-replay {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(228px, 84%);
  min-height: 50px;
  padding: 8px 14px;
  border-radius: 9px;
  background: #273034 url('./assets/oak-seal-v2/upgrade-slate.webp') center / 100% 100% no-repeat;
  color: #ffdc94;
  font: 800 clamp(16px, 4.7vw, 21px)/1.15 var(--font-body);
  text-shadow: 0 2px 3px #101a14;
}
