/* 오늘의 총선 개표(js/asm-night.js) · 어젯밤 개표 방송(js/asm-night-tv.js). 방송 모양은 선거전 브랜치 css/campaign-count.css('동네TV')를 옮기고
   지도를 반도 9개 광역 SVG(js/geo.js geoMapSVG)로 바꿨다. 접두어 antv(방송)·an(대결판 칸) — 선거전을 합쳐도 cptv와 겹치지 않는다. */

/* ── 대결판 위 '오늘의 총선 개표' 칸(어두운 무대 .ar-board 안) ── */
.an-card { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; margin: 4px 0 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line, rgba(255,255,255,.14)); }
.an-card .an-map-w { --geo-land: #34323C; --geo-swing: #57524A; --geo-sea: #16232B; }   /* 무대는 늘 어두워서 테마와 상관없이 밤 바다색 */
.an-card .an-map { display: block; width: 100%; height: auto; }
.an-card .an-txt { min-width: 0; }
.an-card small { display: block; font-size: 11.5px; color: var(--muted); }
.an-card b { display: block; margin: 1px 0 3px; font-size: 16px; font-variant-numeric: tabular-nums; }
.an-card p { margin: 0 0 4px; font-size: 13px; line-height: 1.45; }
.an-card .an-hint { font-size: 12px; color: var(--muted); }
.an-leg { display: flex; flex-wrap: wrap; gap: 3px 10px; margin: 2px 0 6px; font-size: 11.5px; color: var(--muted); }
.an-leg span { display: inline-flex; align-items: center; gap: 4px; }
.an-leg i { width: 9px; height: 9px; border-radius: 2px; }
.an-card .an-go { margin-top: 2px; }

/* ── 방송: 전체 화면 ── */
body.antv-on { overflow: hidden; }
.antv { --antv-land: #2A2440; position: fixed; inset: 0; z-index: 9000; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; grid-auto-rows: max-content; gap: 8px; align-content: start; padding: 0 0 max(18px, env(safe-area-inset-bottom)); background: #090716; color: #FFF1DC; font-family: Paperlogy, 'Noto Sans KR', sans-serif; outline: none; }
.antv, .antv * { box-sizing: border-box; }
.antv [hidden] { display: none !important; }
.antv > * { width: calc(100% - 20px); max-width: 460px; justify-self: center; margin-left: 0 !important; margin-right: 0 !important; }
.antv > .antv-bug, .antv > .antv-prbar { width: 100%; max-width: none; }
.antv-bug { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; background: linear-gradient(90deg, #1B1636, #0E0B1F); border-bottom: 2px solid #2E2650; }
.antv-logo { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #FFF1DC; color: #14917F; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: inset 0 0 0 2px #14917F; }
.antv-bug b { font-size: 15px; min-width: 0; }
.antv-bug .antv-live { padding: 1px 7px; border-radius: 4px; background: #E8553E; font-size: 11px; letter-spacing: .08em; }
.antv-bug .antv-pr { margin-left: auto; text-align: right; flex: none; } .antv-bug .antv-pr small { display: block; font-size: 10px; color: #BFB6CC; } .antv-bug .antv-pr b { font-size: 18px; color: #FFD9A8; font-variant-numeric: tabular-nums; }
.antv-prbar { height: 6px; margin-top: -8px; background: #1E1938; } .antv-prbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFD9A8, #FFF1DC); }
.antv-stage { position: relative; border-radius: 14px; overflow: hidden; padding: 10px 0 12px; background: radial-gradient(ellipse at 50% 10%, rgba(140,116,230,.38), transparent 62%), linear-gradient(#18122E, #0C0A1A); box-shadow: inset 0 0 0 2px #2E2650; }
.antv-stage .antv-rays { position: absolute; inset: 0; background: repeating-conic-gradient(from 200deg at 50% -12%, rgba(255,241,220,.05) 0 6deg, transparent 6deg 14deg); pointer-events: none; }
.antv-board { position: relative; width: min(62%, calc(42vh * 29 / 45)); margin: 0 auto; transition: opacity .4s; }
.antv-board.dim { opacity: .35; }
.antv-board .antv-map { display: block; width: 100%; height: auto; }
.antv-board .antv-map rect { transition: fill .35s, opacity .35s; }
.antv-tag { position: absolute; transform: translate(-50%, -50%); padding: 1px 7px; border-radius: 999px; background: #120F1A; border: 2px solid #4A4262; font-size: 11px; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.antv-tag i { font-style: normal; font-size: 10.5px; } .antv-tag .antv-dot { display: inline-block; width: 8px; height: 8px; margin: 0 3px 0 1px; border-radius: 2px; vertical-align: 0; } .antv-tag.antv-wait { color: #9C93AD; } .antv-tag.antv-on { border-color: #C9A34E; }
.antv-board.dim .antv-tag { visibility: hidden; }
.antv-big { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; text-shadow: 0 4px 0 #000; }
.antv-big .antv-cd small { display: block; font-size: 15px; color: #E8DCC4; } .antv-big .antv-cd b { display: block; font-size: 92px; line-height: 1; }
.antv-big .antv-exit { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; width: 92%; padding: 10px; border-radius: 12px; background: rgba(21,17,42,.92); box-shadow: inset 0 0 0 2px #4A3F72; text-shadow: none; }
.antv-big .antv-exit small { display: block; font-size: 11px; color: #BFB6CC; } .antv-big .antv-exit strong { display: block; font-size: 34px; line-height: 1; } .antv-big .antv-exit span { font-size: 12px; color: #9C93AD; }
.antv-low { display: flex; align-items: stretch; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.antv-low .antv-lk { display: grid; place-items: center; padding: 0 10px; background: #E8553E; font-size: 13px; font-weight: 800; white-space: nowrap; }
.antv-low .antv-lt { flex: 1; padding: 8px 12px; background: #FFF1DC; color: #120F1A; font-size: 16px; font-weight: 800; }
.antv-low.antv-likely .antv-lk { background: #C9A34E; color: #120F1A; } .antv-low.antv-flip .antv-lk { background: #8C74E6; }
.antv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.antv-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: #15112A; box-shadow: inset 0 0 0 2px var(--c); min-width: 0; }
.antv-card .antv-face { width: 52px; height: 62px; border-radius: 9px; overflow: hidden; display: grid; place-items: end center; background: linear-gradient(#2A2348, #1A1530); } .antv-card .antv-face canvas { image-rendering: pixelated; margin-bottom: -8px; }
.antv-card .antv-info { min-width: 0; }
.antv-card small { display: block; font-size: 10.5px; color: #BFB6CC; } .antv-card b { display: block; font-size: 15px; overflow-wrap: anywhere; } .antv-card strong { display: block; font-size: 24px; color: var(--c); line-height: 1.1; font-variant-numeric: tabular-nums; } .antv-card em { display: block; font-style: normal; font-size: 11px; color: #BFB6CC; font-variant-numeric: tabular-nums; }
.antv-card .antv-badge { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 5px; background: var(--c); color: #120F1A; font-size: 11px; font-weight: 800; }
.antv-race, .antv-swing { display: block; margin: 0 auto; border-radius: 10px; image-rendering: pixelated; }
.antv-race { aspect-ratio: 172 / 40; height: auto; } .antv-swing { aspect-ratio: 340 / 86; height: auto; }
.antv-gap { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: #15112A; font-size: 13px; } .antv-gap b { color: #FFD9A8; font-size: 16px; font-variant-numeric: tabular-nums; }
.antv-tick { display: flex; gap: 6px; padding: 6px 10px; border-radius: 8px; background: #1A1530; font-size: 12.5px; } .antv-tick b { color: #FFD9A8; white-space: nowrap; }
/* 도장: 글자 도장(4개 언어 같은 방식) */
.antv-stamp { position: absolute; right: 12px; bottom: 14px; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--c); color: var(--c); background: rgba(9,7,22,.55); transform: rotate(10deg); text-align: center; line-height: 1.05; filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); animation: antvStamp .35s ease-out both; }
.antv-stamp b { font-size: 15px; } .antv-stamp small { display: block; font-size: 22px; font-weight: 800; }
@media (max-width: 899px) { .antv-stamp { width: 70px; height: 70px; right: 6px; bottom: 8px; border-width: 3px; } .antv-stamp b { font-size: 11px; } .antv-stamp small { font-size: 16px; } }
@keyframes antvStamp { 0% { transform: scale(1.8) rotate(10deg); opacity: 0; } 100% { transform: scale(1) rotate(10deg); opacity: 1; } }
/* 결과 판 */
.antv-res { margin-top: 4px; padding: 12px; border-radius: 14px; background: #15112A; box-shadow: inset 0 0 0 2px #2E2650; }
.antv-seats p { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 6px; } .antv-seats p small { font-size: 11px; color: #9C93AD; text-align: right; }
.antv-sbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #2A2440; } .antv-sbar i { display: block; }
.antv-seats ul, .antv-regs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 10px; padding: 0; list-style: none; font-size: 12.5px; }
.antv-seats li, .antv-regs li { display: inline-flex; align-items: center; gap: 5px; } .antv-seats li i, .antv-regs li i { width: 10px; height: 10px; border-radius: 2px; } .antv-regs small { color: #BFB6CC; }
.antv-mine { margin: 4px 0 8px; padding: 8px 10px; border-radius: 10px; background: #1F1A38; } .antv-mine b { display: block; font-size: 12px; color: #FFD9A8; margin-bottom: 2px; } .antv-mine p { margin: 2px 0; font-size: 13.5px; line-height: 1.5; }
.antv-res .note { font-size: 12px; color: #BFB6CC; margin: 0 0 10px; }
.antv-skip { margin-top: 4px; }
/* PC(가로 900 이상): 왼쪽 큰 지도(따라 내려옴) + 오른쪽 440px 판 */
@media (min-width: 900px) {
  .antv { display: block; padding: 0 24px 24px; }
  .antv > * { width: 440px; max-width: none; justify-self: normal; margin: 0 0 8px auto !important; }
  .antv > .antv-bug { width: auto; margin: 0 -24px 8px !important; }
  .antv > .antv-prbar { width: auto; margin: -8px -24px 12px !important; }
  .antv > .antv-stage { float: left; position: sticky; top: 12px; width: calc(100% - 464px); margin: 0 !important; }
  .antv-board { width: min(70%, calc((100vh - 140px) * 29 / 45)); }
  .antv-tag { font-size: 14px; } .antv-tag i { font-size: 13px; } .antv-big .antv-exit strong { font-size: 52px; } .antv-big .antv-cd b { font-size: 140px; }
  .antv-bug b { font-size: 18px; } .antv-stamp { width: 120px; height: 120px; } .antv-stamp b { font-size: 19px; } .antv-stamp small { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .antv-stamp { animation: none; } .antv-board, .antv-board .antv-map rect { transition: none; } }
