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

html, body {
  height: 100%;
  background: #0a0806;
  color: #f5e3c0;
  font-family: "Cinzel", "Trajan Pro", "Times New Roman", 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% 35%, rgba(255, 160, 60, 0.28), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(120, 60, 20, 0.35), transparent 55%),
    linear-gradient(180deg, #1a1108 0%, #2a1d10 30%, #3a2818 65%, #1c1208 100%);
  border: 3px solid #5a3a1c;
  border-radius: 6px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.75),
    inset 0 0 80px rgba(80, 30, 0, 0.55),
    inset 0 0 6px rgba(255, 180, 90, 0.18);
  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, 0, 0.78), rgba(20, 10, 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.92;
  font-variant: small-caps;
}

.team .score {
  font-family: "Cinzel", "Trajan Pro", Georgia, 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: #e84a2e;
  text-shadow: 0 0 14px rgba(232, 74, 46, 0.7), 0 0 2px rgba(255, 100, 60, 0.9);
}

.team.blue .label, .team.blue .score {
  color: #4a86c8;
  text-shadow: 0 0 14px rgba(74, 134, 200, 0.7), 0 0 2px rgba(120, 180, 240, 0.9);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 7px;
  color: #f1c878;
  text-shadow: 0 0 12px rgba(241, 200, 120, 0.55);
  font-variant: small-caps;
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 4px;
  opacity: 0.65;
  margin-top: 5px;
  color: #d8a878;
  font-variant: small-caps;
}

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.55;
  color: #e0b070;
  pointer-events: none;
  font-variant: small-caps;
}

@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.75),
              inset 0 0 80px rgba(160, 40, 0, 0.6),
              0 0 50px rgba(255, 100, 30, 0.75);
}

@keyframes siegeFall {
  0%   { box-shadow: 0 30px 80px rgba(0,0,0,0.75), inset 0 0 80px rgba(80, 30, 0, 0.55), 0 0 90px rgba(255, 220, 120, 0.95); }
  50%  { box-shadow: 0 30px 80px rgba(0,0,0,0.75), inset 0 0 120px rgba(255, 180, 60, 0.6), 0 0 140px rgba(255, 240, 140, 1.0); }
  100% { box-shadow: 0 30px 80px rgba(0,0,0,0.75), inset 0 0 80px rgba(80, 30, 0, 0.55), 0 0 90px rgba(255, 220, 120, 0.95); }
}

#stage.castle-falls {
  animation: siegeFall 0.6s ease-in-out infinite;
}
