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

html, body {
  height: 100%;
  background: #000;
  color: #ffe9b0;
  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% 8%, rgba(120, 70, 20, 0.35), transparent 55%),
    linear-gradient(180deg, #0a0906 0%, #050403 100%);
  border: 3px solid #3a2a12;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.75), inset 0 0 70px rgba(0,0,0,0.6);
  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.75), 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: 3px;
  opacity: 0.9;
}

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

.team.red .label, .team.red .score {
  color: #ff5b3a;
  text-shadow: 2px 2px 0 #6b1400, 0 0 12px rgba(255, 91, 58, 0.6);
}

.team.blue .label, .team.blue .score {
  color: #4fb0ff;
  text-shadow: 2px 2px 0 #003a6b, 0 0 12px rgba(79, 176, 255, 0.6);
}

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

.meta { text-align: center; }

.meta .title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffd24a;
  text-shadow: 2px 2px 0 #5a3000;
}

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

#game {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.55;
  color: #ffcf7a;
  pointer-events: none;
  text-shadow: 1px 1px 0 #000;
}

@keyframes quake {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(4px, -3px); }
  40%  { transform: translate(-4px, 2px); }
  60%  { transform: translate(3px, -1px); }
  80%  { transform: translate(-3px, -2px); }
  100% { transform: translate(0, 0); }
}

#stage.shaking {
  animation: quake 0.18s steps(2) infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.75),
              inset 0 0 70px rgba(0,0,0,0.6),
              0 0 40px rgba(255, 40, 20, 0.6);
}
