html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #050608;
  color: #e2e8f0;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  overflow: hidden;
}

body { scrollbar-width: none; }
body::-webkit-scrollbar { display: none; }

.viewport,
.stage {
  width: 100vw;
  height: 100vh;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #050608;
}

.stage {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 40% 55% at 0% 0%, rgba(12, 109, 246, 0.14), transparent 58%),
    radial-gradient(ellipse 40% 55% at 100% 0%, rgba(244, 39, 38, 0.12), transparent 58%),
    #050608;
}

.stage.simulation { box-shadow: inset 0 5px 0 #eab308; }

.sim-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 24px;
  background: #eab308;
  color: #0b0e14;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sim-banner[hidden] { display: none !important; }

.board-head {
  flex: 0 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  background: #050608;
}

.stage.simulation .board-head { padding-top: 18px; height: 90px; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  background: rgba(244, 39, 38, 0.14);
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f42726;
  box-shadow: 0 0 10px #f42726;
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #94a3b8;
}

.title {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
}

.head-meta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.clock-block { text-align: right; }

.clock {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.clock-sub,
.provider {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
}

.logos {
  display: flex;
  align-items: center;
  gap: 14px;
}

.et-logo { height: 46px; width: auto; display: block; }
.pm-logo { height: 22px; width: auto; display: block; }

.chambers {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.stage[data-board="all"] .chambers {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 0.92fr) minmax(0, 1.28fr);
}

.stage[data-board="all"] .chamber[data-chamber="senate"] {
  grid-column: 1;
  grid-row: 1;
}

.stage[data-board="all"] .chamber[data-chamber="governor"] {
  grid-column: 2;
  grid-row: 1;
}

.stage[data-board="all"] .chamber[data-chamber="house"] {
  grid-column: 1 / -1;
  grid-row: 2;
}

.chamber {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 10px 4px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.stage[data-board="senate"] .chamber,
.stage[data-board="house"] .chamber,
.stage[data-board="governor"] .chamber {
  padding: 2px 12px 4px;
}

.stage[data-board="all"] .chamber[data-chamber="senate"] {
  box-shadow: inset -1px -1px 0 rgba(51, 65, 85, 0.4);
}
.stage[data-board="all"] .chamber[data-chamber="governor"] {
  box-shadow: inset 0 -1px 0 rgba(51, 65, 85, 0.4);
}
.stage[data-board="all"] .chamber[data-chamber="house"] {
  box-shadow: none;
}

.chamber-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chamber-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #94a3b8;
}

.chamber-note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #64748b;
}

.seat-nums {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
}

.seat-nums .d { color: #0c6df6; font-weight: 700; }
.seat-nums .r { color: #f42726; font-weight: 700; }
.seat-nums .mid {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.seat-nums b {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  margin-left: 8px;
}

.stage[data-board="all"] .seat-nums b { font-size: 28px; }
.stage[data-board="senate"] .seat-nums b,
.stage[data-board="house"] .seat-nums b,
.stage[data-board="governor"] .seat-nums b { font-size: 52px; }

.seat-rail {
  margin-top: 6px;
  height: 12px;
  background: #0c0f14;
  overflow: hidden;
  display: flex;
  position: relative;
}

.seat-rail span { height: 100%; display: block; }
.seat-rail .seg-d-not { background: #0b4fa8; }
.seat-rail .seg-d { background: #0c6df6; }
.seat-rail .seg-i { background: #8795a6; }
.seat-rail .seg-u { background: #92a3b8; }
.seat-rail .seg-r { background: #f42726; }
.seat-rail .seg-r-not { background: #b91c1b; }
.seat-rail .tick {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #ffffff;
  opacity: 0.9;
}

.map-frame {
  flex: 1;
  min-height: 0;
  margin-top: 4px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.map-frame svg,
.house-frame svg {
  width: 100%;
  height: 100%;
  display: block;
  flex: 1;
}

.map-frame .et-senate-flip-outline,
.map-frame .et-gov-flip-outline,
.map-frame .et-house-flip-outline,
.map-frame .et-house-flip-outline-layer,
.map-frame .et-map-hover-outline-layer,
.map-frame .et-house-legend {
  display: none !important;
}

.call-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  z-index: 4;
  min-height: 78px;
  padding: 10px 12px;
  background: rgba(5, 6, 8, 0.88);
  box-sizing: border-box;
}

.call-card.party-D { box-shadow: inset 4px 0 0 #0c6df6; }
.call-card.party-R { box-shadow: inset 4px 0 0 #f42726; }
.call-card.party-I { box-shadow: inset 4px 0 0 #8795a6; }
.call-card.is-empty { display: none; }

.call-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #94a3b8;
}

.call-name {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  margin: 5px 0 3px;
}

.call-win {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.call-card.party-D .call-win { color: #0c6df6; }
.call-card.party-R .call-win { color: #f42726; }
.call-card.party-I .call-win { color: #8795a6; }

.ticker {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #050608;
  box-sizing: border-box;
}

.ticker-kicker {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #94a3b8;
}

.ticker-track {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-track b { font-family: "Plus Jakarta Sans", "DM Sans", sans-serif; }
.ticker-track .d { color: #60a5fa; }
.ticker-track .r { color: #f87171; }
.ticker-track .i { color: #cbd5e1; }

.hidden { display: none !important; }
