/* Rack & Patch start screen (was inline in index.html). Game logic below is untouched by this file. */
#start-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #02050a url("../assets/datacenter-bg.webp") center center / cover no-repeat;
  overflow: hidden;
  backdrop-filter: none;
}
#start-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,4,10,.18), rgba(0,4,10,.08) 42%, rgba(0,4,10,.30)),
    radial-gradient(circle at center, transparent 38%, rgba(0,0,0,.34) 100%);
  pointer-events: none;
}
#start-overlay .start-card {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: block;
  text-align: center;
}
#start-overlay .logo-container {
  position: absolute;
  z-index: 3;
  top: 4.5vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, 38vw);
}
#start-overlay .start-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.85));
}
#start-overlay #btn-start-game {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 69%;
  transform: translate(-50%, -50%);
  width: min(720px, 58vw);
  aspect-ratio: 2048 / 682;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent url("../assets/enter-game-here.webp") center / contain no-repeat;
  box-shadow: none;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  filter: drop-shadow(0 0 20px rgba(0,150,255,.38)) drop-shadow(0 16px 28px rgba(0,0,0,.72));
  transition: transform .18s ease, filter .18s ease;
}
#start-overlay #btn-start-game:hover {
  transform: translate(-50%, -50%) scale(1.035);
  filter: drop-shadow(0 0 36px rgba(0,205,255,.72)) drop-shadow(0 16px 28px rgba(0,0,0,.76));
}
#start-overlay #btn-start-game:active { transform: translate(-50%, -50%) scale(.985); }
#start-overlay #btn-start-game:focus-visible { outline: 3px solid #55e6ff; outline-offset: 8px; }

/* loading status + controls card under the button */
#start-overlay .start-status {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 86%;
  transform: translateX(-50%);
  font: 12px/1.6 'Consolas', monospace;
  color: #9fb3c8;
  text-align: center;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
  white-space: nowrap;
}
#start-overlay .start-status b { color: #00ffcc; }
#start-overlay .start-status .key { color: #e2e8f0; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; padding: 0 5px; margin: 0 2px; }

@media (max-width: 900px) {
  #start-overlay .logo-container { width: min(460px, 58vw); top: 5vh; }
  #start-overlay #btn-start-game { width: min(720px, 86vw); top: 70%; }
}
@media (max-width: 560px) {
  #start-overlay .logo-container { width: 78vw; top: 7vh; }
  #start-overlay #btn-start-game { width: 94vw; top: 71%; }
  #start-overlay .start-status { white-space: normal; width: 90vw; }
}
