html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1b2414;
  cursor: crosshair;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

#start-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  box-sizing: border-box;
  background: #7f9c56;
  color: #315a0b;
  cursor: default;
  overflow: hidden;
}

#start-screen::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: 0;
  background: url("../assets/start-background.png") center / cover no-repeat;
  filter: none;
  transform: scale(1.02);
  animation: start-bg-pulse 16s ease-in-out infinite;
}

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

.start-panel {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  transform: translateY(-2vh);
}

#start-form {
  width: 254px;
  display: grid;
  gap: 12px;
}

.language-switch {
  width: 254px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.language-switch button {
  height: 24px;
  border: 1px solid rgba(27, 36, 20, 0.86);
  border-radius: 4px;
  background: rgba(247, 247, 240, 0.58);
  color: #1f2b16;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  cursor: pointer;
}

.language-switch button.active {
  background: #315a0b;
  color: #fff;
}

.skin-switch {
  width: 254px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.skin-switch button {
  height: 24px;
  border: 1px solid rgba(27, 36, 20, 0.86);
  border-radius: 4px;
  background: rgba(247, 247, 240, 0.58);
  color: #1f2b16;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  cursor: pointer;
}

.skin-switch button.active {
  background: #315a0b;
  color: #fff;
}

#start-version {
  justify-self: center;
  min-height: 16px;
  color: rgba(247, 247, 240, 0.86);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(27, 36, 20, 0.75);
}

#pilot-nick,
#start-form button {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  border: 2px solid #1b2414;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  letter-spacing: 0;
}

#pilot-nick {
  padding: 0 10px;
  background: #f7f7f0;
  color: #1f2b16;
  outline: none;
}

#pilot-nick::placeholder {
  color: #9a9a9a;
}

#pilot-nick:focus {
  border-color: #315a0b;
}

#start-form button {
  background: #315a0b;
  color: #fff;
  cursor: pointer;
}

#start-form button:active {
  transform: translateY(1px);
}

@keyframes start-bg-pulse {
  0%,
  100% {
    transform: scale(1.02);
  }

  50% {
    transform: scale(1.08);
  }
}
