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

html, body {
  height: 100%;
  background: #04070f;
  color: #f4ead1;
  font-family: "Didot", "Bodoni MT", 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% 4%, rgba(212, 175, 90, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(20, 40, 80, 0.35), transparent 60%),
    linear-gradient(180deg, #0d1a38 0%, #071026 55%, #040a18 100%);
  border: 2px solid #b8912f;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 70px rgba(0,0,0,0.5);
  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(4,10,24,0.72), rgba(4,10,24,0));
  z-index: 10;
  pointer-events: none;
}

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

.team .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  opacity: 0.9;
  text-transform: uppercase;
}

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

/* Gilt starburst frame behind each score */
.team .score {
  position: relative;
}

.team.red .label, .team.red .score {
  color: #e8c66a;
  text-shadow: 0 0 14px rgba(232, 198, 106, 0.55), 0 0 2px rgba(150, 110, 30, 0.9);
}

.team.blue .label, .team.blue .score {
  color: #f4ead1;
  text-shadow: 0 0 14px rgba(244, 234, 209, 0.35), 0 0 2px rgba(120, 90, 30, 0.9);
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #e8c66a;
  text-shadow: 0 0 10px rgba(232, 198, 106, 0.4);
}

.meta .subtitle {
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.55;
  margin-top: 4px;
  color: #d9c79a;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  /* CSS tilt telegraph — game.js toggles the .listing class and sets --list-dir */
  transform-origin: 50% 55%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ship's List telegraph: subtle 2deg board rotation warning the coming gravity shift */
#stage.listing #game {
  transform: rotate(calc(var(--list-dir, 1) * 2deg));
}

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

/* Ivory tilt overlay glow during a list telegraph */
#stage.listing {
  box-shadow: 0 30px 80px rgba(0,0,0,0.7),
              inset 0 0 70px rgba(0,0,0,0.5),
              inset 0 0 90px rgba(244, 234, 209, 0.14);
}
