.boundary-celebration {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: end;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 9px 12px 0;
  border: 2px solid #5baac9;
  background: #142b35;
  box-shadow: 4px 4px 0 #10212b80;
  pointer-events: none;
  contain: layout paint;
  color: #8dd4ee;
}
.boundary-celebration[hidden] {
  display: none;
}
.boundary-celebration[data-runs='6'] {
  border-color: #e9bd65;
  color: #f4cf79;
}
.boundary-score {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 9px;
  align-items: center;
  padding-bottom: 9px;
  white-space: nowrap;
}
.boundary-score b {
  grid-row: 1/3;
  font-size: var(--type-score);
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.boundary-score span {
  font-size: var(--type-title);
  font-weight: 800;
  line-height: 1.1;
}
.boundary-score small {
  font-size: var(--type-caption);
  color: #e4e8dc;
}
.boundary-crowd {
  width: 144px;
  height: 44px;
  flex: none;
  image-rendering: pixelated;
  overflow: hidden;
}
.boundary-crowd [data-crowd-spectator] {
  animation: crowd-cheer 0.36s steps(2, end) 4;
  transform-box: fill-box;
  transform-origin: bottom;
}
.boundary-crowd [data-crowd-spectator]:nth-child(2n) {
  animation-delay: 0.09s;
}
.boundary-crowd .crowd-arms {
  animation: crowd-wave 0.36s steps(2, end) 4;
  transform-origin: bottom;
}
@keyframes crowd-cheer {
  50% {
    translate: 0 -3px;
  }
}
@keyframes crowd-wave {
  50% {
    translate: 0 -2px;
  }
}
.game-topbar {
  height: 48px;
}
.game-topbar .game-button,
.game-topbar .topbar-tools .game-button {
  min-height: 44px;
  min-width: 44px;
}
.topbar-tools [data-action='music'][aria-pressed='true'] {
  color: #e9bd65;
}
.topbar-tools [data-action='music'][aria-pressed='false'] .ui-icon {
  opacity: 0.65;
}
.title-bottom {
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.title-bottom .game-button {
  min-height: 44px;
}
@container game (max-width:360px) {
  .boundary-celebration {
    gap: 6px;
    padding-inline: 8px;
    bottom: 8px;
  }
  .boundary-crowd {
    width: 126px;
    height: 39px;
  }
  .boundary-score b {
    font-size: var(--type-score);
  }
  .boundary-score span {
    font-size: var(--type-name);
  }
  .boundary-score small {
    font-size: var(--type-caption);
  }
  .game-title-small {
    font-size: var(--type-caption);
  }
  .title-bottom {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .boundary-crowd [data-crowd-spectator],
  .boundary-crowd .crowd-arms {
    animation: none;
  }
}
