/*! Solar System Repair Co. | Source: https://orbitalforest.com */
/* Startup uses the same painted steel and recessed glass as the Workshop. */
html.is-starting #game-shell { visibility: hidden; }
.title-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background: #060d12;
  opacity: 1;
  transition: opacity 700ms ease;
  isolation: isolate;
}
.title-screen[hidden] { display: none; }
.title-screen.is-leaving { opacity: 0; }
.title-frame { position: absolute; inset: 0; opacity: 0; }
.title-frame:first-of-type { opacity: 1; }
.title-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.title-loader {
  position: absolute;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 40px));
  box-sizing: border-box;
  border: 18px solid transparent;
  border-image: url("assets/workshop-bezel-v1.webp") 190 200 / 18px stretch;
  padding: 7px 12px 9px;
  background: url("assets/workshop-glass-v1.webp") center no-repeat,
    linear-gradient(#081b20, #081b20) center no-repeat;
  background-size: calc(100% - 27px) calc(100% - 27px);
  background-origin: border-box;
  filter: drop-shadow(0 8px 14px #000c);
  color: #f5e6c8;
  font-family: "Courier New", monospace;
}
.title-loader-label { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.title-loader-label::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #ffc368; box-shadow: 0 0 5px #e79532, inset 0 1px 1px #fff5; }
#title-loading-percent { margin-left: auto; font-variant-numeric: tabular-nums; color: #ffc979; }
.title-loading-meter { height: 17px; padding: 3px; border: 2px solid #031117; background: #031117; box-shadow: inset 0 3px 5px #000b, 0 1px 0 #d8e6d244; }
.title-loading-fill { width: 0; height: 100%; background: #edaf53; box-shadow: inset 0 2px 0 #ffe6ae9c, inset 0 -2px 0 #a56425, 0 0 7px #d78a3533; }
@media (max-aspect-ratio: 4/3) { .title-frame img { object-fit: contain; } }
@media (max-width: 480px), (max-height: 480px) {
  .title-loader { width: min(460px, calc(100% - 24px)); border-width: 15px; border-image-width: 15px; padding: 4px 7px 5px; background-size: calc(100% - 22.5px) calc(100% - 22.5px); bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) + 7px)); }
  .title-loader-label { font-size: 10px; letter-spacing: 1px; gap: 6px; margin-bottom: 6px; }
}
.title-screen.is-reduced-motion { transition: none; }
@media (prefers-reduced-motion: reduce) { .title-screen { transition: none; } }
