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

html, body {
  height: 100%;
  background: #000;
  color: #e5e7e0;
  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% 100%, rgba(60, 55, 50, 0.55), transparent 55%),
    radial-gradient(ellipse at 50% 10%, rgba(20, 20, 30, 0.6), transparent 70%),
    #000;
  border: 1px solid #1a1a22;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), inset 0 0 80px rgba(0,0,0,0.6);
  overflow: hidden;
}

#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: 11px;
  font-weight: 800;
  letter-spacing: 6px;
  opacity: 0.95;
  font-family: "Courier New", monospace;
}

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

/* CDR (commander) — patch crimson */
.team.red .label, .team.red .score {
  color: #d94c3a;
  text-shadow: 0 0 8px rgba(217, 76, 58, 0.5), 0 0 1px rgba(217, 76, 58, 0.9);
}

/* LMP (lunar module pilot) — NASA blue */
.team.blue .label, .team.blue .score {
  color: #6fa8dc;
  text-shadow: 0 0 8px rgba(111, 168, 220, 0.5), 0 0 1px rgba(111, 168, 220, 0.9);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.92;
  color: #e8e2c8;
  text-shadow: 0 0 6px rgba(232, 226, 200, 0.4);
}

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

#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: 11px;
  letter-spacing: 2px;
  opacity: 0.55;
  color: #c8d0b8;
  pointer-events: none;
  text-shadow: 0 0 4px rgba(200, 208, 184, 0.4);
}

/* Retro analog-TV scanline overlay */
#scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.18) 0px,
      rgba(0, 0, 0, 0.18) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: multiply;
}

#scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    );
  animation: scanroll 8s linear infinite;
}

@keyframes scanroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

/* THRUSTER event — gentle radio-wave shimmer (replaces earthquake shake) */
@keyframes thrust {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1px, 0); }
  50%  { transform: translate(1px, 0); }
  75%  { transform: translate(0, -1px); }
  100% { transform: translate(0, 0); }
}

#stage.shaking {
  animation: thrust 0.18s linear infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8),
              inset 0 0 80px rgba(0,0,0,0.6),
              0 0 60px rgba(80, 140, 220, 0.45);
}
