/* This scene owns a single child of the cut-in overlay. Board artwork and the
   existing reveal/capture layers keep their own sizing and event handling. */
#gameOverFenActions > [hidden] {
  display: none !important;
}

.cutinOverlay.hasVictoryScene {
  z-index: 27;
}

.victoryScene {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 50%;
  width: 100%;
  aspect-ratio: 8 / 5;
  transform: translateY(-50%);
  isolation: isolate;
  overflow: hidden;
  background: #17150f;
  box-shadow: 0 8px 35px rgb(0 0 0 / 35%);
  pointer-events: none;
}

.victoryScene .victorySceneCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.victoryScene .victorySceneStatus {
  position: absolute;
  bottom: 3%;
  left: 5%;
  right: 5%;
  width: fit-content;
  max-width: 90%;
  margin: 0 auto;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff3d6;
  background: rgb(23 21 15 / 90%);
  font: 400 clamp(10px, 1.65vw, 12px) / 1.35 system-ui, sans-serif;
  text-align: center;
}

.victoryScene .victorySceneStatus[hidden] {
  display: none;
}

.victoryScene .victorySceneStatusError {
  color: #ffe0d3;
  background: #4a231b;
}
