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

html, body {
  height: 100%;
  background: #2a0000;
  color: #fff;
  font-family: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(255, 200, 80, 0.18), transparent 65%),
    linear-gradient(180deg, #8b0000 0%, #cc0000 55%, #6e0000 100%);
  border: 1px solid #f5c518;
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(245, 197, 24, 0.18),
    0 0 30px rgba(245, 197, 24, 0.35);
  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(60, 0, 0, 0.7), 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: 14px;
  font-weight: 900;
  letter-spacing: 5px;
  opacity: 0.95;
  font-family: "Impact", sans-serif;
  text-transform: uppercase;
}

.team .score {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
  letter-spacing: 2px;
}

.team.red .label, .team.red .score {
  color: #ffe890;
  text-shadow:
    0 0 10px rgba(255, 232, 144, 0.8),
    2px 2px 0 #8b0000,
    -1px -1px 0 #8b0000;
}

.team.blue .label, .team.blue .score {
  color: #f5c518;
  text-shadow:
    0 0 10px rgba(245, 197, 24, 0.8),
    2px 2px 0 #6e0000,
    -1px -1px 0 #6e0000;
}

.score.bump { transform: scale(1.4) rotate(-3deg); }

.meta {
  text-align: center;
}

.meta .title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 4px;
  opacity: 1;
  color: #f5c518;
  font-family: "Impact", sans-serif;
  text-shadow: 2px 2px 0 #8b0000, 0 0 14px rgba(245, 197, 24, 0.65);
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.85;
  margin-top: 4px;
  color: #fff5d0;
  font-family: "Impact", sans-serif;
}

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Impact", "Arial Narrow", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.85;
  color: #fff5d0;
  pointer-events: none;
  text-shadow: 1px 1px 0 #4a0000;
}

@keyframes quake {
  0%   { transform: translate(0, 0) rotate(0); }
  10%  { transform: translate(-3px, 2px) rotate(0.25deg); }
  20%  { transform: translate(4px, -3px) rotate(-0.3deg); }
  30%  { transform: translate(-4px, 1px) rotate(0.2deg); }
  40%  { transform: translate(3px, -2px) rotate(-0.25deg); }
  50%  { transform: translate(-2px, 3px) rotate(0.3deg); }
  60%  { transform: translate(3px, -1px) rotate(-0.2deg); }
  70%  { transform: translate(-3px, -2px) rotate(0.15deg); }
  80%  { transform: translate(4px, 2px) rotate(-0.15deg); }
  90%  { transform: translate(-2px, -1px) rotate(0.2deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.shaking {
  animation: quake 0.32s linear infinite;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(245, 197, 24, 0.25),
    0 0 50px rgba(245, 197, 24, 0.85);
}
