* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f1412;
  color: #f4fbf8;
  font-family: 'Outfit', Inter, ui-sans-serif, system-ui, sans-serif;
  user-select: none;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  background: #1a2721;
  cursor: crosshair;
}

.hud {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.scoreboard {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 140px minmax(170px, auto) 140px;
  align-items: center;
  min-width: min(620px, calc(100vw - 24px));
  padding: 12px 18px;
  border: 3.5px solid #111827;
  border-radius: 14px;
  background: rgba(12, 18, 15, 0.85);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 900;
}

.team-red {
  color: #ff4d58;
}

.team-blue {
  color: #3b82f6;
}

.team-label {
  color: rgba(244, 251, 248, 0.7);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.score {
  min-width: 35px;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.status {
  color: rgba(244, 251, 248, 0.9);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
}

.toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 14px 24px;
  border: 4px solid #111827;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  font-size: clamp(38px, 8vw, 84px);
  font-weight: 900;
  opacity: 0;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: opacity 150ms cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 150ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.controls {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 24px);
  padding: 14px 20px;
  border: 3.5px solid #111827;
  border-radius: 14px;
  background: rgba(12, 18, 15, 0.85);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.controls div {
  display: grid;
  gap: 4px;
  min-width: 280px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(244, 251, 248, 0.78);
}

.controls strong {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.start-bots {
  min-width: 140px;
  min-height: 44px;
  border: 3.5px solid #111827;
  border-radius: 12px;
  background: #ff4d58;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 0 #111827;
  transition: transform 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.12s, box-shadow 0.12s;
}

.start-bots:hover {
  background: #ff6d7a;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #111827;
}

.start-bots:active {
  transform: translateY(2px);
  box-shadow: 0 0px 0 #111827;
}

.start-bots.hidden {
  display: none;
}

@media (max-width: 640px) {
  .scoreboard {
    top: 12px;
    grid-template-columns: 90px minmax(130px, auto) 90px;
    min-width: calc(100vw - 16px);
    padding: 10px;
  }

  .score {
    font-size: 30px;
  }

  .team-label,
  .status {
    font-size: 11px;
  }

  .controls {
    right: 12px;
    bottom: 12px;
    left: 12px;
    transform: none;
    align-items: stretch;
    flex-direction: column;
  }

  .controls div {
    min-width: 0;
  }

  .start-bots {
    width: 100%;
  }
}
