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

html, body {
  height: 100%;
  background: #0c0a07;
  color: #f4e4c1;
  font-family: "Georgia", "Times New Roman", serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(255, 168, 70, 0.22), transparent 55%),
    radial-gradient(ellipse at 30% 65%, rgba(255, 150, 60, 0.10), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 140, 50, 0.08), transparent 50%),
    linear-gradient(180deg, #1c1814 0%, #0a0805 100%);
  border: 1px solid #3a2e22;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), inset 0 0 80px rgba(0,0,0,0.55);
  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.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: 12px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.85;
  font-family: "Georgia", serif;
  text-transform: uppercase;
}

.team .score {
  font-family: "Georgia", "Times New Roman", 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: #c4452a;
  text-shadow: 0 0 12px rgba(196, 69, 42, 0.55), 0 1px 0 rgba(0,0,0,0.8);
}

.team.blue .label, .team.blue .score {
  color: #5a8aa0;
  text-shadow: 0 0 12px rgba(90, 138, 160, 0.55), 0 1px 0 rgba(0,0,0,0.8);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 5px;
  color: #f0b768;
  text-shadow: 0 0 14px rgba(255, 168, 70, 0.55), 0 1px 0 #000;
  font-family: "Georgia", serif;
  text-transform: uppercase;
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.65;
  color: #c8a878;
  margin-top: 4px;
  font-family: "Georgia", serif;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  /* Sepia warmth + slight desaturation to evoke 1800s mining poster vibe */
  filter: sepia(0.18) contrast(1.05) saturate(0.92);
}

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.5;
  color: #d4b48a;
  pointer-events: none;
}

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

#stage.shaking {
  animation: quake 0.28s linear infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8),
              inset 0 0 80px rgba(0,0,0,0.55),
              0 0 50px rgba(255, 120, 30, 0.65);
}
