/* Initial-screen spacing and compact cache state. */
#pm-start-screen .pm-start-title {
  color: #f7f3e8;
  text-shadow: 0 0 18px rgba(247,243,232,.12);
}
#pm-start-screen .pm-start-title-sub {
  margin-top: .1em;
  font-size: .5456em;
}
#pm-start-screen .pm-start-title-remake { color: inherit; }
#pm-start-screen .pm-start-title::after,
#pm-start-screen .pm-start-menu-view::after { content: none; }
#pm-start-screen .pm-image-cache-track {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
}
#pm-start-screen .pm-image-cache-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}
#pm-start-screen .pm-image-cache-status::before {
  content: "";
  box-sizing: border-box;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
}
#pm-start-screen .pm-image-cache.is-ready .pm-image-cache-status::before {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
  font: 10px/1 Arial, sans-serif;
}
#pm-start-screen .pm-image-cache.is-error .pm-image-cache-status::before {
  border-color: currentColor;
}

/* Keep the original city image below the choices, with subdued gold outlines. */
#pm-start-screen { background-image: none; }
#pm-start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none center bottom / 100% auto no-repeat;
  transform: translateY(max(0px, calc(31.25vw - 50dvh + 110px)));
  filter: saturate(.7) brightness(.72);
}
#pm-start-screen #pm-start-button { color: #fff; }

/* A soft horizontal highlight follows the hovered menu choice. */
#pm-start-screen .pm-ui-image-cache-status { display: none; }
#pm-start-screen :is(#pm-start-button, #pm-credits-button) {
  top: 20px;
}
#pm-start-screen :is(#pm-start-button, #pm-credits-button)::before,
#pm-start-screen :is(#pm-start-button, #pm-credits-button)::after {
  content: "";
  display: block;
  inset: auto;
  top: 50%;
  left: 50%;
  z-index: -1;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  filter: none;
  animation: none;
  transition: opacity 180ms ease;
}
#pm-start-screen :is(#pm-start-button, #pm-credits-button)::before {
  width: min(360px, calc(100vw - 32px));
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(218,182,103,.30), rgba(181,139,62,.14) 36%, rgba(130,94,33,.04) 62%, transparent 78%);
}
#pm-start-screen :is(#pm-start-button, #pm-credits-button)::after {
  width: min(310px, calc(100vw - 48px));
  height: 5px;
  background: radial-gradient(ellipse at center, rgba(242,217,163,.25), rgba(196,153,72,.13) 38%, transparent 74%);
}
#pm-start-screen :is(#pm-start-button, #pm-credits-button):is(:hover, :focus-visible, .is-activating):not(:disabled)::before,
#pm-start-screen :is(#pm-start-button, #pm-credits-button):is(:hover, :focus-visible, .is-activating):not(:disabled)::after {
  opacity: .45;
}
#pm-start-screen :is(#pm-start-button, #pm-credits-button):is(:hover, :focus-visible):not(:disabled) {
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,.35);
}
#pm-start-screen :is(#pm-start-button, #pm-credits-button).is-activating {
  animation-name: pm-start-choice-white-bloom;
}
@keyframes pm-start-choice-white-bloom {
  0% {
    color: #fff;
    transform: scale(1);
    text-shadow: 0 0 4px rgba(255,255,255,.45), 0 0 12px rgba(255,255,255,.35);
  }
  42% {
    color: #fff;
    transform: scale(1.055);
    text-shadow: 0 0 4px rgba(255,255,255,.9), 0 0 14px rgba(255,255,255,.75), 0 0 30px rgba(255,255,255,.45);
  }
  100% {
    color: #fff;
    transform: scale(1.025);
    text-shadow: 0 0 4px rgba(255,255,255,.65), 0 0 12px rgba(255,255,255,.55), 0 0 24px rgba(255,255,255,.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  #pm-start-screen :is(#pm-start-button, #pm-credits-button).is-activating {
    animation: none;
    text-shadow: 0 0 4px rgba(255,255,255,.65), 0 0 12px rgba(255,255,255,.55);
  }
}
