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

html, body {
  height: 100%;
  background: #0a0604;
  color: #f5e6c2;
  font-family: "Papyrus", "Trajan Pro", "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% 0%, rgba(255, 170, 60, 0.32), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(180, 90, 20, 0.22), transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(140, 70, 10, 0.18), transparent 65%),
    linear-gradient(180deg, #3a1d08 0%, #1a0a02 100%);
  border: 1px solid #5a3210;
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0,0,0,0.55),
    inset 0 0 20px rgba(255, 170, 60, 0.15);
  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,8,2,0.85), rgba(20,8,2,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: 6px;
  opacity: 0.95;
  font-family: "Papyrus", "Trajan Pro", serif;
}

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

.team.red .label, .team.red .score {
  color: #ffb347;
  text-shadow: 0 0 14px rgba(255, 170, 60, 0.85), 0 0 4px rgba(255, 215, 110, 0.9);
}

.team.blue .label, .team.blue .score {
  color: #d4a04a;
  text-shadow: 0 0 14px rgba(180, 110, 30, 0.85), 0 0 4px rgba(220, 160, 70, 0.9);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 8px;
  opacity: 0.95;
  color: #f5d68a;
  text-shadow: 0 0 10px rgba(255, 180, 70, 0.6);
  font-family: "Papyrus", "Trajan Pro", serif;
}

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

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Papyrus", "Trajan Pro", serif;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.55;
  color: #d6a86a;
  pointer-events: none;
}

@keyframes torchflicker {
  0%   { box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 80px rgba(0,0,0,0.55), inset 0 0 30px rgba(255, 170, 60, 0.25); }
  25%  { box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 75px rgba(0,0,0,0.55), inset 0 0 18px rgba(255, 150, 50, 0.18); }
  50%  { box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 85px rgba(0,0,0,0.55), inset 0 0 35px rgba(255, 200, 80, 0.30); }
  75%  { box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 78px rgba(0,0,0,0.55), inset 0 0 22px rgba(255, 165, 55, 0.20); }
  100% { box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 80px rgba(0,0,0,0.55), inset 0 0 30px rgba(255, 170, 60, 0.25); }
}

#stage {
  animation: torchflicker 2.4s ease-in-out infinite;
}

@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,
             torchflicker 2.4s ease-in-out infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7),
              inset 0 0 60px rgba(0,0,0,0.45),
              0 0 40px rgba(255, 100, 40, 0.75);
}
