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

html, body {
  height: 100%;
  background: #000000;
  color: #fff;
  font-family: "Courier New", "SF Mono", Menlo, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 60, 200, 0.10), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 200, 255, 0.08), transparent 60%),
    #000000;
  border: 1px solid #1a0a2a;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.85), inset 0 0 80px rgba(0,0,0,0.6),
              0 0 24px rgba(255, 60, 200, 0.15);
  overflow: hidden;
  image-rendering: pixelated;
}

#scoreboard {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  z-index: 10;
  pointer-events: none;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}

.team .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 4px;
  opacity: 0.95;
}

.team .score {
  font-family: "Courier New", "SF Mono", Menlo, monospace;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

.team.red .label, .team.red .score {
  color: #ff3cc8;
  text-shadow: 0 0 14px rgba(255, 60, 200, 0.85), 0 0 4px rgba(255, 60, 200, 1);
}

.team.blue .label, .team.blue .score {
  color: #00e0ff;
  text-shadow: 0 0 14px rgba(0, 224, 255, 0.85), 0 0 4px rgba(0, 224, 255, 1);
}

.score.bump { transform: scale(1.35); }

.meta {
  text-align: center;
}

.meta .title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.95;
  color: #ffe14a;
  text-shadow: 0 0 10px rgba(255, 225, 74, 0.7);
}

.meta .subtitle {
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.6;
  margin-top: 5px;
  color: #ff3cc8;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
}

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Courier New", "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.55;
  pointer-events: none;
  color: #00e0ff;
}

@keyframes invasion-pulse {
  0%   { box-shadow: 0 30px 80px rgba(0,0,0,0.85), inset 0 0 80px rgba(255, 60, 200, 0.35), 0 0 50px rgba(255, 60, 200, 0.7); }
  50%  { box-shadow: 0 30px 80px rgba(0,0,0,0.85), inset 0 0 80px rgba(255, 60, 200, 0.55), 0 0 70px rgba(255, 60, 200, 0.95); }
  100% { box-shadow: 0 30px 80px rgba(0,0,0,0.85), inset 0 0 80px rgba(255, 60, 200, 0.35), 0 0 50px rgba(255, 60, 200, 0.7); }
}

#stage.invasion {
  animation: invasion-pulse 0.6s ease-in-out infinite;
}
