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

html, body {
  height: 100%;
  background: #05070c;
  color: #e8eef6;
  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% 8%, rgba(70, 95, 130, 0.30), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(20, 30, 45, 0.6), transparent 60%),
    linear-gradient(180deg, #1c2838 0%, #0c1320 55%, #060a12 100%);
  border: 2px solid #3a4b63;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 70px rgba(0,0,0,0.55);
  overflow: hidden;
}

/* Norse knotwork border accent */
#stage::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(120, 150, 185, 0.18);
  border-radius: 6px;
  pointer-events: none;
  z-index: 9;
  box-shadow: inset 0 0 0 1px rgba(180, 200, 225, 0.06);
}

#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.65), 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.9;
  font-family: "Georgia", serif;
}

.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: #e8a23c;
  text-shadow: 0 0 16px rgba(232, 162, 60, 0.7), 0 0 2px rgba(255, 200, 110, 0.9);
}

.team.blue .label, .team.blue .score {
  color: #7ec6e8;
  text-shadow: 0 0 16px rgba(126, 198, 232, 0.65), 0 0 2px rgba(180, 230, 255, 0.9);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 7px;
  opacity: 0.92;
  color: #cdd9e6;
  text-shadow: 0 0 10px rgba(120,160,200,0.4);
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.55;
  margin-top: 4px;
}

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

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

/* Wave-surge board shake (lateral heave) */
@keyframes surge {
  0%   { transform: translate(0, 0) rotate(0); }
  12%  { transform: translate(-6px, 1px) rotate(-0.18deg); }
  25%  { transform: translate(7px, -1px) rotate(0.2deg); }
  38%  { transform: translate(-7px, 2px) rotate(-0.16deg); }
  50%  { transform: translate(6px, -2px) rotate(0.18deg); }
  62%  { transform: translate(-5px, 1px) rotate(-0.14deg); }
  75%  { transform: translate(6px, -1px) rotate(0.16deg); }
  88%  { transform: translate(-4px, 2px) rotate(-0.12deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.shaking {
  animation: surge 0.34s linear infinite;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7),
              inset 0 0 70px rgba(0,0,0,0.55),
              0 0 46px rgba(80, 150, 210, 0.55);
}

/* Odin fury lightning flash overlay */
@keyframes furyflash {
  0%   { opacity: 0; }
  6%   { opacity: 0.85; }
  14%  { opacity: 0.1; }
  22%  { opacity: 0.6; }
  100% { opacity: 0; }
}

#stage.fury::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(230,240,255,0.9), rgba(150,190,255,0.2) 50%, transparent 75%);
  z-index: 8;
  pointer-events: none;
  animation: furyflash 0.55s ease-out 1;
}
