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

html, body {
  height: 100%;
  background: #000;
  color: #7fffa3;
  font-family: "Courier New", "Courier", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  background:
    radial-gradient(circle at 50% 60%, rgba(40, 110, 60, 0.18), transparent 70%),
    linear-gradient(180deg, #02110a 0%, #000604 100%);
  border: 1px solid #144020;
  border-radius: 6px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.8),
    inset 0 0 80px rgba(0, 0, 0, 0.6),
    inset 0 0 200px rgba(40, 200, 90, 0.04);
  overflow: hidden;
}

/* CRT scanline overlay across whole stage */
#stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.18) 0px,
      rgba(0, 0, 0, 0.18) 1px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0) 3px
    );
  mix-blend-mode: multiply;
  z-index: 20;
}

/* Subtle CRT vignette + curvature glow */
#stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
  z-index: 19;
}

#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,16,8,0.85), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(60, 200, 100, 0.18);
  z-index: 25;
  pointer-events: none;
}

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

.team .label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 5px;
  opacity: 0.9;
}

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

.team.red .label, .team.red .score {
  color: #c7ff8c;
  text-shadow:
    0 0 14px rgba(150, 255, 130, 0.7),
    0 0 2px rgba(220, 255, 180, 1);
}

.team.blue .label, .team.blue .score {
  color: #5cffb0;
  text-shadow:
    0 0 14px rgba(90, 255, 170, 0.7),
    0 0 2px rgba(180, 255, 220, 1);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 7px;
  color: #7fffa3;
  text-shadow: 0 0 8px rgba(80, 220, 110, 0.7);
}

.meta .subtitle {
  font-size: 10px;
  letter-spacing: 4px;
  color: #4caa6e;
  margin-top: 5px;
}

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: #5cffb0;
  text-shadow: 0 0 6px rgba(80, 220, 130, 0.6);
  opacity: 0.7;
  pointer-events: none;
  z-index: 25;
}

/* Depth charge: white-flash + brief shake. */
@keyframes depthCharge {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-4px, 3px); }
  25%  { transform: translate(5px, -3px); }
  40%  { transform: translate(-3px, 2px); }
  55%  { transform: translate(4px, -2px); }
  70%  { transform: translate(-2px, 1px); }
  85%  { transform: translate(2px, -1px); }
  100% { transform: translate(0, 0); }
}

#stage.depth-charge {
  animation: depthCharge 0.7s linear;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.8),
    inset 0 0 80px rgba(0,0,0,0.6),
    inset 0 0 200px rgba(80, 255, 130, 0.35),
    0 0 60px rgba(80, 255, 130, 0.55);
}
