.ponyville-bowling-score,
.ponyville-bowling-launch {
  position: fixed;
  z-index: 42;
  color: #f6f4ff;
}

.ponyville-bowling-score[hidden],
.ponyville-bowling-launch[hidden],
.ponyville-bowling-launch output[hidden],
body.photo-mode .ponyville-bowling-score,
body.photo-mode .ponyville-bowling-launch {
  display: none;
}

.ponyville-bowling-score {
  top: calc(105px + max(env(safe-area-inset-top, 0px), var(--safe-top, 0px)));
  left: calc(12px + max(env(safe-area-inset-left, 0px), var(--safe-left, 0px)));
  max-width: min(318px, calc(100vw - 24px));
  padding: 7px 11px;
  border: 1px solid #686691;
  border-radius: 9px;
  background: rgba(24, 27, 51, .96);
  box-shadow: 0 5px 18px #11112288;
  font-size: 12px;
}

.ponyville-bowling-score summary {
  padding-block: 4px;
  color: #a1f0e8;
  font-weight: 700;
  cursor: pointer;
}

.ponyville-bowling-score output {
  margin-inline-start: 13px;
  color: #ffe29b;
  font-variant-numeric: tabular-nums;
}

.ponyville-bowling-score ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(35px, 1fr));
  gap: 3px;
  margin: 5px 0 7px;
  list-style: none;
}

.ponyville-bowling-score li {
  display: grid;
  grid-template-rows: 15px 16px 16px;
  padding: 1px 3px;
  border: 1px solid #545879;
  border-radius: 4px;
  background: #2b2e4b;
  text-align: center;
}

.ponyville-bowling-score li[aria-current="step"] {
  border-color: #65dfd7;
  background: #254655;
}

.ponyville-bowling-score strong {
  color: #ffe9a8;
  font-variant-numeric: tabular-nums;
}

.ponyville-bowling-score p {
  color: #e0e5f4;
  line-height: 1.4;
}

.ponyville-bowling-launch {
  display: grid;
  justify-items: center;
  gap: 6px;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
}

.ponyville-bowling-launch output {
  display: block;
  min-width: 72px;
  padding: 4px 12px;
  border: 1px solid #776891;
  border-radius: 7px;
  background: #262346;
  color: #ffe6a5;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.ponyville-bowling-launch button {
  min-width: 196px;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid #adfff5;
  border-radius: 9px;
  background: #85eee4;
  color: #182b43;
  box-shadow: inset 0 -3px 0 #54bfb5, 0 5px 18px #11112288;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  touch-action: none;
}

.ponyville-bowling-launch button:active {
  background: #a5fff3;
  box-shadow: inset 0 2px 0 #61c2b9, 0 5px 18px #11112288;
}

.ponyville-bowling-launch button:focus-visible,
.ponyville-bowling-score summary:focus-visible {
  outline: 2px solid #ffe6a5;
  outline-offset: 2px;
}

@media (max-width: 600px) and (orientation: portrait) {
  .ponyville-bowling-score {
    top: calc(112px + max(env(safe-area-inset-top, 0px), var(--safe-top, 0px)));
  }

  .ponyville-bowling-launch {
    bottom: calc(115px + env(safe-area-inset-bottom, 0px));
  }
}
