#screen-game.victory-departing {
  opacity: 0;
  transition: opacity .65s ease-out;
  pointer-events: none;
}
.victory-scene[hidden] {
  display: none;
}
.victory-scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #092f68;
  color: #183e63;
}
.victory-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.victory-scene[data-composition=theater] .victory-stage {
  width: 100%;
  max-width: calc((calc(var(--legacy-vh,1vh) * 100) - 106px - env(safe-area-inset-bottom, 0px)) * .5625);
  max-width: calc((100dvh - 106px - env(safe-area-inset-bottom, 0px)) * .5625);
  align-self: center;
}
.victory-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  animation: theater-reveal .8s ease-out both;
}
.victory-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
}
.victory-layer {
  position: absolute;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 50% 98%;
}
.victory-hero {
  filter: drop-shadow(0 4px 1px #193e6725);
  animation: theater-walk-in 1.2s .45s cubic-bezier(.2, .8, .3, 1) both;
}
.victory-panel {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  top: 9%;
  max-height: 47%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  color: #214d72;
}
.victory-scene[data-composition=theater] .victory-panel {
  height: 47%;
  display: flex;
  flex-direction: column;
}
.victory-scene[data-composition=theater] .victory-copy {
  flex-shrink: 0;
  margin-top: auto;
}
.victory-scene[data-composition=theater] .victory-evidence {
  flex-shrink: 0;
  margin-bottom: auto;
}
.victory-scene[data-composition=theater] .victory-copy:last-child {
  margin-bottom: auto;
}
.victory-copy {
  text-align: center;
  margin-bottom: 10px;
}
.victory-kicker {
  margin: 0 0 6px;
  color: #5382a0;
  font: 700 12px/1.4 system-ui, sans-serif;
  letter-spacing: 1px;
}
.victory-title {
  font: 900 clamp(22px, calc(var(--legacy-vh,1vh) * 3), 28px)/1.25 system-ui, sans-serif;
  font: 900 clamp(22px, 3dvh, 28px)/1.25 system-ui, sans-serif;
  letter-spacing: .5px;
  color: #164b80;
  margin: 0;
}
.victory-subtitle {
  font: 13px/1.7 system-ui, sans-serif;
  margin: 10px 0 0;
}
.victory-evidence {
  padding: 0 3px;
}
.victory-lead {
  margin: 0 0 10px;
  color: #315878;
  font: 750 17px/1.6 system-ui, sans-serif;
}
.victory-points {
  margin: 0;
  padding-left: 20px;
  color: #355c78;
  font: 500 17px/1.6 system-ui, sans-serif;
}
.victory-points li + li {
  margin-top: 9px;
}
.victory-points li {
  text-wrap: pretty;
}
.victory-points li::marker {
  color: #2883bd;
  font-weight: 800;
}
.victory-scene[data-composition=theater] .victory-hero {
  left: 27% !important;
  top: 51% !important;
  width: 46% !important;
  height: 26% !important;
}
.victory-audience {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
  animation: theater-audience-in .6s .9s ease-out both;
}
.victory-audience-frame {
  display: block;
  width: 100%;
  height: auto;
}
.audience-frame-1 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
}
.audience-frame-0 {
  animation: theater-clap-open .44s steps(1, end) 1.25s 19;
}
.audience-frame-1 {
  animation: theater-clap-closed .44s steps(1, end) 1.25s 19;
}
.victory-footer {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  padding: 9px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(#103e7b, #082957);
  color: #def2ff;
  text-align: center;
  box-shadow: 0 -1px #9ed7ff40;
}
.victory-stats {
  font: 12px/1.6 system-ui, sans-serif;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.victory-actions {
  display: flex;
  gap: 9px;
  justify-content: center;
}
.victory-button {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid #c3d8eb;
  border-radius: 13px;
  background: #f4f7ec;
  box-shadow: 0 3px #011a3d;
  color: #234b6b;
  font: 750 13px/1.4 system-ui, sans-serif;
  touch-action: manipulation;
}
.victory-actions .victory-button {
  flex: 1;
  max-width: 230px;
}
.victory-share {
  background: linear-gradient(#ffeaa0, #ffcf59);
  border-color: #ffe6a0;
  color: #5b4b25;
}
.victory-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px #011a3d;
}
.victory-button:disabled {
  cursor: default;
  opacity: .65;
}
.victory-button:focus-visible,
.victory-skip:focus-visible {
  outline: 3px solid #ffde65;
  outline-offset: 3px;
}
.victory-home {
  position: absolute;
  right: 11px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 6;
  font-size: 11px;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 12px;
  background: #f4f9f0e8;
  border-color: #b4d9ed;
  box-shadow: 0 2px #0b3c6d;
}
.victory-report {
  margin: 9px 0 0;
  min-height: 1.5em;
  font: 12px/1.6 system-ui, sans-serif;
  color: #d1e6f7;
}
.victory-skip {
  position: absolute;
  z-index: 7;
  left: 12px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #b4d9ed;
  border-radius: 12px;
  background: #f4f9f0e8;
  color: #234b6b;
  font: 11px/1.5 system-ui, sans-serif;
  cursor: pointer;
}
.victory-skip[hidden] {
  display: none;
}
.victory-scene[data-phase=ready] .victory-background,
.victory-scene[data-phase=ready] .victory-hero,
.victory-scene[data-phase=ready] .victory-evidence,
.victory-scene[data-phase=ready] .victory-audience {
  animation: none;
  opacity: 1;
  transform: none;
}
.victory-scene[data-motion=skip] .victory-audience-frame {
  animation: none !important;
}
.victory-scene[data-motion=skip] .audience-frame-0 {
  opacity: 1;
}
.victory-scene[data-motion=skip] .audience-frame-1 {
  opacity: 0;
}
.victory-scene:not([data-composition=theater]) .victory-panel {
  background: #f6fcf4ed;
  border: 1px solid #74a6b2;
  border-radius: 16px;
  padding: 12px;
}
@keyframes theater-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes theater-walk-in {
  0% {
    opacity: 0;
    transform: translateX(42px) translateY(4px) rotate(-2deg);
  }
  25% {
    opacity: 1;
    transform: translateX(29px) translateY(-4px) rotate(1deg);
  }
  50% {
    transform: translateX(16px) translateY(2px) rotate(-1deg);
  }
  75% {
    transform: translateX(6px) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes theater-copy-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes theater-audience-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes theater-clap-open {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
@keyframes theater-clap-closed {
  0%, 49% {
    opacity: 0;
  }
  50%, 100% {
    opacity: 1;
  }
}
@media (max-height: 720px) {
  .victory-copy {
    margin-bottom: 7px;
  }
  .victory-kicker {
    font-size: 10px;
    margin-bottom: 5px;
  }
  .victory-title {
    font-size: 21px;
  }
  .victory-lead {
    margin-bottom: 6px;
    line-height: 1.55;
  }
  .victory-points {
    line-height: 1.6;
  }
  .victory-points li + li {
    margin-top: 4px;
  }
  .victory-hero {
    top: 46% !important;
    height: 31% !important;
  }
  .victory-footer {
    padding-top: 7px;
  }
  .victory-button {
    font-size: 12px;
    min-height: 44px;
    padding: 8px;
  }
  .victory-report {
    margin-top: 5px;
  }
}
@media (max-width: 350px) {
  .victory-panel {
    left: 8%;
    right: 8%;
  }
  .victory-title {
    font-size: 20px;
  }
  .victory-footer {
    padding-inline: 12px;
  }
}
@media (max-height: 720px) {
  .victory-points,
  .victory-lead {
    font-size: 13.5px;
    line-height: 1.45;
  }
  .victory-scene[data-composition=theater] .victory-hero {
    top: 53% !important;
    height: 24% !important;
  }
  .victory-stats,
  .victory-report {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #screen-game.victory-departing {
    transition: none;
  }
  .victory-scene .victory-background,
  .victory-scene .victory-layer,
  .victory-scene .victory-evidence,
  .victory-scene .victory-audience,
  .victory-scene .victory-audience-frame {
    animation: none !important;
    transform: none;
  }
  .audience-frame-0 {
    opacity: 1;
  }
  .audience-frame-1 {
    opacity: 0;
  }
}
