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

html, body {
  height: 100%;
  /* Watercolor wash: misty greenhouse atmosphere */
  background:
    radial-gradient(ellipse at 30% 20%, rgba(220, 235, 200, 0.18), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(150, 200, 170, 0.14), transparent 55%),
    linear-gradient(160deg, #0a1d12 0%, #0d2a1a 40%, #061410 100%);
  color: #ecf3e0;
  font-family: "EB Garamond", "Cormorant Garamond", "Baskerville", "Hoefler Text", Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  background:
    /* Stained-glass roof light shafts */
    linear-gradient(118deg,
      rgba(255, 235, 170, 0) 38%,
      rgba(255, 230, 160, 0.10) 41%,
      rgba(255, 240, 180, 0.13) 44%,
      rgba(255, 235, 170, 0) 47%),
    linear-gradient(75deg,
      rgba(220, 255, 230, 0) 60%,
      rgba(200, 255, 220, 0.09) 63%,
      rgba(220, 255, 240, 0.12) 66%,
      rgba(220, 255, 230, 0) 69%),
    radial-gradient(ellipse at 50% 8%, rgba(240, 255, 200, 0.22), transparent 55%),
    radial-gradient(ellipse at 28% 40%, rgba(60, 130, 90, 0.32), transparent 65%),
    radial-gradient(ellipse at 80% 65%, rgba(40, 90, 70, 0.30), transparent 60%),
    linear-gradient(180deg, #0f3220 0%, #0a2418 55%, #051a10 100%);
  border: 2px solid #5a3e1f;
  border-radius: 14px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.65),
    inset 0 0 100px rgba(20, 60, 35, 0.55),
    inset 0 0 30px rgba(255, 240, 180, 0.05);
  overflow: hidden;
}

/* Subtle pulsing mist over the whole greenhouse */
#stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 45% 30%, rgba(230, 240, 220, 0.06), transparent 40%),
    radial-gradient(circle at 60% 70%, rgba(220, 230, 210, 0.05), transparent 35%);
  animation: mistDrift 14s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes mistDrift {
  0%   { transform: translate(0, 0); opacity: 0.7; }
  100% { transform: translate(12px, -8px); opacity: 1; }
}

#scoreboard {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(10, 30, 18, 0.78), rgba(10, 30, 18, 0));
  z-index: 10;
  pointer-events: none;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.team .label {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
  font-style: italic;
  opacity: 0.92;
}

.team .score {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

.team.red .label, .team.red .score {
  color: #ff8aa3;
  text-shadow:
    0 0 14px rgba(255, 138, 163, 0.55),
    0 0 2px rgba(255, 138, 163, 0.95),
    0 1px 0 rgba(60, 10, 20, 0.7);
}

.team.blue .label, .team.blue .score {
  color: #a5b8ff;
  text-shadow:
    0 0 14px rgba(165, 184, 255, 0.55),
    0 0 2px rgba(165, 184, 255, 0.95),
    0 1px 0 rgba(15, 25, 60, 0.7);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 6px;
  font-style: italic;
  color: #f4e6b8;
  text-shadow: 0 0 8px rgba(255, 230, 160, 0.4);
  opacity: 0.95;
}

.meta .subtitle {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 3px;
  opacity: 0.65;
  margin-top: 4px;
  color: #c9d7b5;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 8px;
  text-align: center;
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.55;
  pointer-events: none;
  color: #d8e6c4;
  z-index: 5;
}

@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.6),
    inset 0 0 100px rgba(20, 60, 35, 0.55),
    0 0 40px rgba(255, 180, 90, 0.45);
}
