html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #05080d;
  color: #f4f7fb;
  font-family: 'Space Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

:root {
  --hud-color-rgb: 255, 165, 0;
  --hud-color: rgb(var(--hud-color-rgb));
  --hud-color-edge-rgb: 255, 231, 183;
}

#start-screen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(var(--hud-color-rgb), 0.18), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(0, 234, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(1, 4, 8, 0.92), rgba(3, 9, 16, 0.94) 48%, rgba(1, 5, 10, 0.96));
}

#start-screen.hidden {
  display: none;
}

#start-screen-terrain,
.start-screen-vignette,
.start-screen-reticle,
.start-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#start-screen-terrain {
  inset: -4%;
}

.start-screen-vignette {
  background: radial-gradient(circle at center, rgba(5, 8, 13, 0) 28%, rgba(5, 8, 13, 0.24) 58%, rgba(5, 8, 13, 0.94) 100%);
}

.start-screen-reticle-x {
  top: 50%;
  height: 1px;
  background: rgba(var(--hud-color-rgb), 0.14);
}

.start-screen-reticle-y {
  left: 50%;
  width: 1px;
  background: rgba(var(--hud-color-rgb), 0.14);
}

.start-noise {
  opacity: 0.15;
  mix-blend-mode: screen;
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
}

.start-hud-layer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-console {
  position: relative;
  width: min(100%, 560px);
  padding: 34px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(4, 10, 16, 0.62);
  border: 1px solid rgba(var(--hud-color-rgb), 0.22);
  clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.start-title-container {
  margin-bottom: 2.2rem;
  text-align: center;
}

.start-title-kicker,
.start-hud,
.start-input-label,
.start-status,
.start-status-active {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.start-title-kicker {
  display: block;
  margin-bottom: 0.7rem;
  color: rgba(var(--hud-color-rgb), 0.84);
}

.start-title {
  margin: 0;
  color: #f6f7fb;
  font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.08em;
}

.start-input-section,
#start-screen .deploy-btn {
  width: min(100%, 340px);
}

.start-input-wrapper {
  display: flex;
  align-items: center;
  height: 56px;
  background: rgba(var(--hud-color-rgb), 0.06);
  border-bottom: 2px solid rgba(228, 236, 244, 0.34);
}

.start-input-prefix {
  padding-left: 16px;
  color: var(--hud-color);
  font-weight: 700;
}

#start-screen .callsign-input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: none;
  outline: none;
  background: transparent;
  color: #f6f7fb;
  font: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#start-screen .callsign-input::placeholder {
  color: rgba(246, 247, 251, 0.22);
}

#start-screen .deploy-btn {
  position: relative;
  height: 62px;
  margin-top: 20px;
  padding: 0;
  border: none;
  background: transparent;
}

.deploy-btn-shadow,
.deploy-btn-bg {
  position: absolute;
  inset: 0;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.deploy-btn-shadow {
  top: 4px;
  left: 4px;
  border: 1px solid rgba(var(--hud-color-rgb), 0.72);
}

.deploy-btn-bg {
  background: linear-gradient(180deg, rgba(var(--hud-color-edge-rgb), 0.98), rgba(var(--hud-color-rgb), 0.98));
}

.deploy-btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  color: #05080d;
  font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.deploy-btn-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.start-hud {
  position: absolute;
  color: rgba(228, 236, 244, 0.64);
}

.start-hud-top-left {
  top: 24px;
  left: 24px;
}

.start-hud-top-right {
  top: 24px;
  right: 24px;
  text-align: right;
}

.start-hud-bottom-left {
  bottom: 24px;
  left: 24px;
}

.start-hud-bottom-right {
  right: 24px;
  bottom: 24px;
}

#mobile-lock-screen,
#mobile-hud {
  display: none !important;
}

#canvas-container {
  position: fixed;
  inset: 0;
}

.panel-hidden {
  display: none;
}

@media (max-width: 560px) {
  .start-screen-reticle,
  .start-hud-top-right,
  .start-hud-bottom-right {
    display: none;
  }

  .start-console {
    width: calc(100vw - 32px);
    clip-path: none;
  }
}
