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

html, body {
  height: 100%;
  background: #0a0604;
  color: #f5e6c4;
  font-family: "Times New Roman", "Bodoni 72", Georgia, serif;
  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(140, 80, 40, 0.35), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(80, 40, 20, 0.45), transparent 60%),
    linear-gradient(180deg, #2a1810 0%, #1a0e08 45%, #0c0604 100%);
  border: 2px solid #4a3020;
  border-radius: 8px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.85),
    inset 0 0 80px rgba(0,0,0,0.55),
    inset 0 0 30px rgba(180, 100, 40, 0.12);
  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(20,10,4,0.85), rgba(20,10,4,0));
  z-index: 10;
  pointer-events: none;
}

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

.team .label {
  font-family: "Bodoni 72", "Times New Roman", Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.92;
  font-variant: small-caps;
}

.team .score {
  font-family: "Bodoni 72", "Times New Roman", Georgia, serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

.team.red .label, .team.red .score {
  color: #e8c878;
  text-shadow:
    0 0 14px rgba(232, 200, 120, 0.7),
    0 0 2px rgba(232, 200, 120, 0.95),
    0 0 28px rgba(180, 130, 60, 0.5);
}

.team.blue .label, .team.blue .score {
  color: #7eb8ff;
  text-shadow:
    0 0 14px rgba(126, 184, 255, 0.7),
    0 0 2px rgba(126, 184, 255, 0.95),
    0 0 28px rgba(80, 140, 220, 0.5);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-family: "Bodoni 72", "Times New Roman", Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  opacity: 0.85;
  color: #d9b97a;
  font-variant: small-caps;
  text-shadow: 0 0 6px rgba(180, 130, 60, 0.5);
}

.meta .subtitle {
  font-family: "Courier New", "SF Mono", monospace;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.55;
  margin-top: 4px;
  color: #b8a07c;
}

#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", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.55;
  pointer-events: none;
  color: #c8b48a;
  text-shadow: 0 0 4px rgba(150, 100, 50, 0.4);
}

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

#stage.shaking {
  animation: arcjitter 0.18s linear infinite;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.85),
    inset 0 0 80px rgba(0,0,0,0.55),
    0 0 60px rgba(180, 220, 255, 0.7),
    inset 0 0 80px rgba(120, 180, 255, 0.25);
}

@keyframes granddischarge {
  0%   { background-color: rgba(255, 255, 255, 0.95); }
  100% { background-color: rgba(255, 255, 255, 0); }
}

#stage.discharge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 50;
  pointer-events: none;
  animation: granddischarge 0.45s ease-out forwards;
}
