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

html, body {
  height: 100%;
  background: #05060c;
  color: #fff;
  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(70, 80, 130, 0.20), transparent 55%),
    linear-gradient(180deg, #11131f 0%, #06070e 70%, #04050a 100%);
  border: 1px solid #1c2138;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.65), inset 0 0 80px rgba(0,0,0,0.5);
  overflow: hidden;
}

/* ---------- HUD ---------- */
#hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 18px 22px 14px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3,4,9,0.78) 0%, rgba(3,4,9,0.35) 70%, rgba(3,4,9,0) 100%);
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
}
.team.azure { justify-content: flex-end; }

.team .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.team.crimson .dot {
  background: #ff4d63;
  box-shadow: 0 0 14px rgba(255,77,99,0.9), 0 0 4px rgba(255,77,99,1);
}
.team.azure .dot {
  background: #46b6ff;
  box-shadow: 0 0 14px rgba(70,182,255,0.9), 0 0 4px rgba(70,182,255,1);
}

.team .name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  opacity: 0.9;
}
.team.azure .meta { text-align: right; }

.team .pct {
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  margin-top: 3px;
  transition: transform 0.18s cubic-bezier(.22,1,.36,1);
}
.team.crimson .name, .team.crimson .pct {
  color: #ff5e72;
  text-shadow: 0 0 16px rgba(255,77,99,0.55);
}
.team.azure .name, .team.azure .pct {
  color: #5cbcff;
  text-shadow: 0 0 16px rgba(70,182,255,0.55);
}
.pct.bump { transform: scale(1.22); }

.title-block { text-align: center; }
.title-block .title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
  opacity: 0.92;
}
.title-block .subtitle {
  font-size: 9px;
  letter-spacing: 3px;
  opacity: 0.45;
  margin-top: 5px;
}

/* ---------- Dominance bar ---------- */
.bar-wrap {
  margin-top: 14px;
  padding: 0 2px;
}
.bar {
  position: relative;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0d18;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), inset 0 2px 6px rgba(0,0,0,0.6);
}
.bar-fill {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  transition: width 0.4s cubic-bezier(.22,1,.36,1);
}
.bar-fill.crimson {
  left: 0;
  background: linear-gradient(90deg, #b81f33 0%, #ff4d63 100%);
  box-shadow: 0 0 18px rgba(255,77,99,0.45);
}
.bar-fill.azure {
  right: 0;
  background: linear-gradient(270deg, #1668b8 0%, #46b6ff 100%);
  box-shadow: 0 0 18px rgba(70,182,255,0.45);
}
.bar-mid {
  position: absolute;
  top: -2px; bottom: -2px;
  width: 2px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  transform: translateX(-1px);
  transition: left 0.4s cubic-bezier(.22,1,.36,1);
  left: 50%;
}

/* ---------- Canvas ---------- */
#game {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Watermark ---------- */
#watermark {
  position: absolute;
  left: 0; right: 0;
  bottom: 12px;
  text-align: center;
  font-family: "SF Mono", "Menlo", "Courier New", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.34);
  text-shadow: 0 0 12px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 10;
}
