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

html, body {
  height: 100%;
  background: #f4f1ea;
  color: #14131a;
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 540px;
  height: 960px;
  background:
    repeating-linear-gradient(0deg, rgba(20,19,26,0.05) 0px, rgba(20,19,26,0.05) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(90deg, rgba(20,19,26,0.05) 0px, rgba(20,19,26,0.05) 1px, transparent 1px, transparent 30px),
    #fbfaf6;
  border: 1.5px solid #14131a;
  border-radius: 4px;
  box-shadow: 12px 12px 0 rgba(20,19,26,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(251,250,246,0.95), rgba(251,250,246,0));
  border-bottom: 1px solid rgba(20,19,26,0.15);
  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: 700;
  letter-spacing: 5px;
  color: #14131a;
}

.team .score {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
  transition: transform 0.15s ease;
}

.team.red .label, .team.red .score {
  color: #e58fa6;
}

.team.blue .label, .team.blue .score {
  color: #7ec0d8;
}

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

.meta {
  text-align: center;
}

.meta .title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #14131a;
}

.meta .subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(20,19,26,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: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(20,19,26,0.45);
  pointer-events: none;
}

@keyframes papercrease {
  0%   { transform: translate(0, 0) rotate(0); }
  20%  { transform: translate(-2px, 1px) rotate(0.2deg); }
  40%  { transform: translate(2px, -2px) rotate(-0.25deg); }
  60%  { transform: translate(-2px, 2px) rotate(0.2deg); }
  80%  { transform: translate(2px, -1px) rotate(-0.2deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#stage.shaking {
  animation: papercrease 0.42s linear infinite;
}
