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

html, body {
  height: 100%;
  background: #08120c;
  color: #f6e7c1;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-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(255, 180, 70, 0.30), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(60, 30, 12, 0.55), transparent 60%),
    linear-gradient(180deg, #2a1a0c 0%, #14241a 45%, #0b1a12 100%);
  border: 14px solid #3b2410;
  border-radius: 14px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 60px rgba(0,0,0,0.55),
    inset 0 0 0 2px #6b4318,
    inset 0 0 0 4px #a87330;
  overflow: hidden;
}

/* Brass rail accents along the inner border */
#stage::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(212, 160, 70, 0.55);
  border-radius: 8px;
  pointer-events: none;
  box-shadow: inset 0 0 18px rgba(212, 160, 70, 0.18);
  z-index: 5;
}

#scoreboard {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(20,8,0,0.75), rgba(20,8,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: 4px;
  opacity: 0.9;
  font-family: "Georgia", "Times New Roman", serif;
}

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

/* Repurposed: red team = CLOVER (emerald green), blue team = HARP (warm gold) */
.team.red .label, .team.red .score {
  color: #4ed87f;
  text-shadow: 0 0 14px rgba(78, 216, 127, 0.7), 0 0 2px rgba(78, 216, 127, 0.95);
}

.team.blue .label, .team.blue .score {
  color: #ffc24a;
  text-shadow: 0 0 14px rgba(255, 194, 74, 0.7), 0 0 2px rgba(255, 194, 74, 0.95);
}

.score.bump { transform: scale(1.4) rotate(-3deg); }

.meta {
  text-align: center;
}

.meta .title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 4px;
  font-family: "Georgia", "Times New Roman", serif;
  color: #f4c97a;
  text-shadow: 0 0 12px rgba(255, 180, 60, 0.45);
}

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

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

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.55;
  color: #e7c884;
  pointer-events: none;
  z-index: 6;
}

/* "Brawl" shake — replaces the earthquake animation for the pub quiz win flourish */
@keyframes pubshake {
  0%   { transform: translate(0, 0) rotate(0); }
  15%  { transform: translate(-2px, 1px) rotate(0.15deg); }
  30%  { transform: translate(3px, -2px) rotate(-0.2deg); }
  45%  { transform: translate(-3px, 1px) rotate(0.15deg); }
  60%  { transform: translate(2px, -1px) rotate(-0.15deg); }
  75%  { transform: translate(-2px, 2px) rotate(0.2deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.cheering {
  animation: pubshake 0.42s linear infinite;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 60px rgba(0,0,0,0.55),
    inset 0 0 0 2px #6b4318,
    inset 0 0 0 4px #a87330,
    0 0 60px rgba(78, 216, 127, 0.55);
}
