:root {
  --bg: #0b0d10;
  --panel: #12161c;
  --panel2: #171c24;
  --line: #242b35;
  --text: #e8eaed;
  --muted: #8b93a1;
  --l4: #ff3b30;
  --l3: #ff8a00;
  --l2: #ffd60a;
  --l1: #34c759;
  --up: #ff5a4f;
  --down: #3ddc84;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", Roboto, sans-serif;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
html[lang="ko"] body { word-break: keep-all; }
.muted { color: var(--muted); }
main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* 상단 */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: rgba(11, 13, 16, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--l4); box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); animation: pulse 2s infinite; }
.top nav { display: flex; gap: 14px; font-size: 14px; overflow-x: auto; }
.top nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.top nav a:hover { color: var(--text); }
.top nav .lang { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* 메인 숫자 */
.hero { padding: 28px 0 8px; }
.idx { display: flex; align-items: center; gap: 20px; }
.idx-num { font-size: 84px; font-weight: 900; line-height: 1; color: var(--l4); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.idx-num small { font-size: 36px; margin-left: 2px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-bottom: 10px; }
.idx-txt .lbl { font-size: 20px; font-weight: 700; line-height: 1.3; max-width: 520px; margin: 0; }
.idx-txt p { margin: 6px 0 0; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: var(--panel); }
.chip b { font-variant-numeric: tabular-nums; }
.chg { font-weight: 700; font-size: 13px; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }

/* 첫 화면: 실시간 표시·공유·은은한 붉은 빛 */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; z-index: -1; left: -120px; top: -40px; width: 620px; height: 380px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 59, 48, .16), rgba(255, 59, 48, 0)); }
.eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow h1 { font-size: inherit; font-weight: inherit; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #ff6b62; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(255, 59, 48, .35); border-radius: 999px; padding: 2px 9px 2px 7px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.share { all: unset; cursor: pointer; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; background: var(--panel); }
.share:hover { border-color: #3a4452; }
.share::before { content: "↗ "; color: var(--muted); }
.hot-h .share { margin-left: auto; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; background: #e8eaed; color: #0b0d10; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.idx-num { text-shadow: 0 0 40px rgba(255, 59, 48, .35); }
/* 최근 30일 추이 */
.trend { margin: 18px 0 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 6px; }
.trend figcaption { font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.trend-c { position: relative; height: 120px; margin-top: 6px; }
.trend-c svg { display: block; overflow: visible; touch-action: pan-y; }
.trend-c text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.trend-c .g { stroke: #222a34; stroke-width: 1; }
.trend-c .ln { fill: none; stroke: #ff3b30; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-c circle { fill: #ff3b30; stroke: var(--panel); stroke-width: 2; }
.trend-c circle.now { animation: pulse 1.8s infinite; }
.trend-c .cross { stroke: #8b93a1; stroke-width: 1; stroke-dasharray: 3 3; }
.trend-c .tip { position: absolute; top: -6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: 12px; white-space: nowrap; pointer-events: none; }
.trend-c .tip b { color: #ff8a80; margin-right: 4px; }

/* 한반도 숫자의 구성 질문 */
.mlist.parts .mrow { padding: 9px 14px; }
.mlist.parts .p { font-size: 16px; }
/* 세계 숫자 카드 */
.world { display: flex; align-items: center; gap: 16px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.world:hover { border-color: #3a4452; }
.world-n { font-size: 40px; font-weight: 900; color: var(--l4); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.world .muted { font-size: 13px; }
.h2sub { font-size: 13px; font-weight: 400; margin-left: 6px; }
/* 자주 묻는 질문 */
.qa { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; }
.qa summary { cursor: pointer; font-weight: 700; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; float: right; color: var(--muted); }
.qa[open] summary::after { content: "−"; }
.qa p { margin: 10px 0 0; color: #c9ced6; font-size: 14px; }

/* 단계 색 */
.lv { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lv.big { width: 14px; height: 14px; }
.l4.lv, .pin.l4 i { background: var(--l4); }
.l3.lv, .pin.l3 i { background: var(--l3); }
.l2.lv, .pin.l2 i { background: var(--l2); }
.l1.lv, .pin.l1 i { background: var(--l1); }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.badge.l4 { background: rgba(255, 59, 48, .16); color: #ff6b62; }
.badge.l3 { background: rgba(255, 138, 0, .16); color: #ffa53d; }
.badge.l2 { background: rgba(255, 214, 10, .14); color: #ffe066; }
.badge.l1 { background: rgba(52, 199, 89, .14); color: #5fdc80; }

/* 지도 */
.mapwrap { position: relative; margin: 18px -16px 0; }
#map { width: 100%; height: min(62vh, 560px); background: #05080c; }
#map.mini { height: 300px; border-radius: var(--radius); margin: 16px 0 0; border: 1px solid var(--line); overflow: hidden; }
.maplibregl-ctrl-attrib { background: rgba(0, 0, 0, .5) !important; color: var(--muted); }
.maplibregl-ctrl-attrib a { color: var(--muted); }
.pin { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.pin i { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .55); }
.pin.l4 i, .pin.l3 i { animation: pulse 1.8s infinite; }
.pin.l4 i { width: 16px; height: 16px; }
.pin span { display: none; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px #000, 0 0 2px #000; white-space: nowrap; }
.pin.l4 span, #map.near .pin span, .pin:hover span, .pin.on span { display: inline; }
.pin.on i { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) { .pin.l4 span { display: none; } #map.near .pin span, .pin.on span { display: inline; } }
#map.krview .pin:not(.kr) span { display: none; }
#map.krview .pin:hover span { display: inline; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 80, 60, .55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 80, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 80, 60, 0); }
}
/* 지도 보기 전환 (한반도 / 세계) */
.views { position: absolute; top: 12px; left: 16px; display: flex; background: rgba(18, 22, 28, .85); border: 1px solid var(--line); border-radius: 999px; padding: 3px; backdrop-filter: blur(6px); }
.views button { all: unset; cursor: pointer; font-size: 13px; font-weight: 700; padding: 5px 13px; border-radius: 999px; color: var(--muted); }
.views button.on { background: #e8eaed; color: #0b0d10; }
#pop {
  position: absolute; left: 16px; right: 16px; bottom: 16px; max-width: 420px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}
#pop p { font-size: 14px; color: #c9ced6; margin: 10px 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#pop .card-h { padding-right: 24px; }
#pop .x { all: unset; cursor: pointer; position: absolute; top: 8px; right: 12px; font-size: 22px; color: var(--muted); }
#pop .go { display: inline-block; margin-top: 10px; font-weight: 700; color: #fff; text-decoration: none; }

/* 섹션 · 카드 */
.sec { padding: 28px 0 4px; }
.sec h2 { font-size: 18px; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #3a4452; transform: translateY(-1px); }
.card-h { display: flex; align-items: center; gap: 8px; }
.card-h h3 { font-size: 16px; flex: 1; min-width: 0; }
.card p { font-size: 14px; color: #b3b9c3; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.odds { margin-top: 12px; font-size: 13px; color: var(--muted); }
.odds b { font-size: 18px; color: var(--text); margin-right: 4px; font-variant-numeric: tabular-nums; }
.odds.risk b { color: #ff8a80; }
.odds.peace b { color: #7ee2a0; }

/* 예측시장 목록 */
.mlist { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mrow { display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: 4px 12px; padding: 12px 14px; background: var(--panel); border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow .q a { text-decoration: none; }
.mrow .q a:hover { text-decoration: underline; }
.mrow .note { display: block; font-size: 11px; color: var(--muted); }
.mrow .p { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.mrow.risk .p { color: #ff8a80; }
.mrow.peace .p { color: #7ee2a0; }
.mrow .d { text-align: right; }
.mrow .bar { grid-column: 1 / -1; height: 3px; background: #222a34; border-radius: 3px; overflow: hidden; }
.mrow .bar i { display: block; height: 100%; background: #ff6b62; }
.mrow.peace .bar i { background: #3ddc84; }

/* 지역 페이지 */
.hot { max-width: 760px; margin: 0 auto; padding-top: 16px; }
.crumb a { color: var(--muted); text-decoration: none; font-size: 14px; }
.hot-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hot-h h1 { font-size: 28px; }
.lead { font-size: 16px; color: #d4d8de; }
.srcs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.src { display: grid; gap: 4px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.src:hover { border-color: #3a4452; }
.src-o { font-size: 12px; color: var(--muted); font-weight: 600; }
.src-t { font-weight: 600; }
.src-u { font-size: 12px; color: #5d6675; }
.others { display: flex; flex-wrap: wrap; gap: 8px; }
.others a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.soon { }
.soon p { background: var(--panel); border: 1px dashed #3a4452; border-radius: var(--radius); padding: 16px; color: #b3b9c3; margin: 0; }

/* 계산 방법 */
.prose { max-width: 720px; margin: 0 auto; padding: 24px 0; }
.prose h1 { font-size: 28px; margin-bottom: 8px; }
.prose h2 { font-size: 18px; margin: 28px 0 10px; }
.prose code { background: var(--panel2); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.levels { list-style: none; padding: 0; display: grid; gap: 8px; }
.levels li { display: flex; gap: 10px; align-items: center; }

.foot { max-width: 1080px; margin: 40px auto 0; padding: 24px 16px 40px; border-top: 1px solid var(--line); font-size: 13px; }
.foot p { margin: 4px 0; }

@media (max-width: 600px) {
  .idx { gap: 14px; }
  #map { height: 52vh; }
  .idx-num { font-size: 64px; }
  .idx-num small { font-size: 28px; }
  .idx-txt .lbl { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .hot-h h1 { font-size: 23px; }
  .top nav a:not(.lang):not(.m) { display: none; }
  .top nav { gap: 12px; font-size: 13px; }
  .top nav a.m { color: var(--text); }
}

/* ── 대비 가이드 (북한 전쟁 가능성·전쟁 나면·대피소·생존 가방) ── */
.guide { max-width: 760px; margin: 0 auto; padding-bottom: 8px; }
.guide .crumb { margin: 18px 0 0; font-size: 13px; }
.guide .crumb a { color: var(--muted); text-decoration: none; }
.g-hero { padding: 18px 0 4px; }
.eyebrow .g-h1, .g-h1 { font-size: 28px; font-weight: 900; color: var(--text); }
.g-hero .eyebrow { margin-bottom: 4px; }
.small { font-size: 12.5px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.gcard { display: flex; flex-direction: column; gap: 3px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: border-color .15s, transform .15s; }
.gcard:hover { border-color: #3a4452; transform: translateY(-1px); }
.gcard .gi { font-size: 22px; }
.gcard b { font-size: 15px; }
.gcard .muted { font-size: 12.5px; }
.btn { all: unset; cursor: pointer; display: inline-block; font-weight: 800; font-size: 14px; color: #0b0d10; background: var(--text); border-radius: 999px; padding: 9px 16px; }
.btn:hover { background: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.linkbtn { all: unset; cursor: pointer; color: var(--text); text-decoration: underline; }
.now-box { margin-top: 18px; background: linear-gradient(180deg, rgba(255, 59, 48, .14), rgba(255, 59, 48, .04)); border: 1px solid rgba(255, 59, 48, .4); border-radius: var(--radius); padding: 16px 18px; }
.now-box h2 { font-size: 18px; }
.now-box ol { margin: 10px 0 14px; padding-left: 20px; }
.now-box li { margin: 4px 0; }
.alarms, .places { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.alarm, .place { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.alarm { border-top: 3px solid var(--l2); }
.alarm.l4 { border-top-color: var(--l4); } .alarm.l3 { border-top-color: var(--l3); } .alarm.l1 { border-top-color: var(--l1); }
.alarm-h { display: flex; align-items: center; gap: 8px; }
.alarm-h h3 { font-size: 17px; }
.alarm .sound { margin: 8px 0 0; font-size: 14px; }
.alarm .when { margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.alarm ul { margin: 0; padding-left: 18px; font-size: 14px; color: #c9ced6; }
.alarm li { margin: 3px 0; }
.place h3 { font-size: 15px; }
.place p { margin: 6px 0 0; font-size: 14px; color: #c9ced6; }
.steps { padding-left: 20px; }
.steps li { margin: 6px 0; }
.signals { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.signals li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 14px; color: #c9ced6; }
.signals b { color: var(--text); margin-right: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px !important; }
.foot-links a { color: var(--text); text-decoration: none; }
/* 생존 가방 */
.kit-top { position: sticky; top: 49px; z-index: 5; margin-top: 16px; background: rgba(11, 13, 16, .94); backdrop-filter: blur(8px); padding: 10px 0; }
.kit-n { font-size: 15px; font-weight: 700; }
.kit-n b { font-size: 26px; color: var(--l1); font-variant-numeric: tabular-nums; }
.kit-bar { height: 8px; background: var(--panel2); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.kit-bar i { display: block; height: 100%; width: 0; background: var(--l1); border-radius: 999px; transition: width .25s; }
.kit-top p { margin: 0; }
.kit { display: grid; gap: 10px; }
.kit-g { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kit-g h3 { font-size: 15px; margin-bottom: 4px; }
.kit-g ul { list-style: none; margin: 0; padding: 0; }
.kit-g li + li { border-top: 1px solid var(--line); }
.kit-g label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.kit-g input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--l1); flex: none; }
.kit-g label span { font-size: 14px; }
.kit-g label .muted { display: block; font-size: 12.5px; }
.kit-g input:checked + span b { color: var(--muted); text-decoration: line-through; }
/* 대피소 지도 */
.sh-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
#smap { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #0a1018; }
.sh-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.sh-list li { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.sh-list .d { font-weight: 800; color: var(--l1); min-width: 52px; font-variant-numeric: tabular-nums; }
.sh-list .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sh-list .t .muted { font-size: 12.5px; }
.sh-list a { font-weight: 700; white-space: nowrap; }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #4da3ff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(77, 163, 255, .3); }
.maplibregl-popup-content { background: var(--panel2); color: var(--text); font-size: 13px; border-radius: 10px; }
.maplibregl-popup-tip { border-top-color: var(--panel2) !important; border-bottom-color: var(--panel2) !important; }
@media (max-width: 600px) { .alarms, .places { grid-template-columns: 1fr; } #smap { height: 360px; } .eyebrow .g-h1 { font-size: 24px; } }
.qa summary { display: flex; justify-content: space-between; gap: 12px; }
.qa summary::after { float: none; flex: none; }

/* ── 홈 테스트 배너 ── */
.test-cta { display: flex; align-items: center; gap: 14px; margin-top: 14px; text-decoration: none; background: linear-gradient(90deg, rgba(255, 59, 48, .16), rgba(255, 138, 0, .08)); border: 1px solid rgba(255, 59, 48, .4); border-radius: var(--radius); padding: 14px 16px; }
.test-cta .gi { font-size: 28px; }
.test-cta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.test-cta .muted { font-size: 13px; }
.test-cta .go { font-weight: 800; white-space: nowrap; }
.test-cta:hover { border-color: rgba(255, 59, 48, .7); }
/* ── 전쟁 생존력 테스트 ── */
.quiz { scroll-margin-top: 60px; padding-top: 10px; }
.qz-start { text-align: center; padding: 26px 0 10px; }
.qz-start .lead { max-width: 560px; margin: 12px auto 18px; }
.qz-kicker { color: #ff6b62; font-weight: 800; font-size: 13px; letter-spacing: .04em; margin: 0 0 6px; }
.btn.big { font-size: 16px; padding: 13px 26px; }
.qz-prog { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qz-q { font-size: 20px; margin: 14px 0; line-height: 1.4; }
.qz-a { display: grid; gap: 8px; }
.qz-opt { all: unset; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; transition: border-color .15s; }
.qz-opt:hover:not(:disabled) { border-color: #4a5462; }
.qz-opt:disabled { cursor: default; opacity: .55; }
.qz-opt.ok { border-color: var(--l1); background: rgba(52, 199, 89, .14); opacity: 1; }
.qz-opt.no { border-color: var(--l4); background: rgba(255, 59, 48, .14); opacity: 1; }
.qz-opt.pick { border-color: var(--text); opacity: 1; }
.qz-why { margin: 12px 0; border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #d4d8de; }
.qz-why.good { background: rgba(52, 199, 89, .1); border: 1px solid rgba(52, 199, 89, .35); }
.qz-why.bad { background: rgba(255, 138, 0, .1); border: 1px solid rgba(255, 138, 0, .35); }
.qz-done, .qz-res { text-align: center; padding: 20px 0; }
.qz-score { font-size: 76px; font-weight: 900; color: var(--l4); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(255, 59, 48, .35); }
.qz-score small { font-size: 28px; margin-left: 2px; }
.qz-type { margin: 10px 0 4px; }
.qz-icon { font-size: 52px; display: block; }
.qz-type h1, .qz-type h2 { font-size: 26px; margin-top: 4px; }
.qz-btns { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 16px 0 6px; }
.qz-rh { text-align: left; font-size: 16px; margin: 24px 0 10px; }
.qz-done .signals { text-align: left; }
.qz-done .signals a { white-space: nowrap; }
/* ── 사이렌 ── */
.warn { font-size: 13px; color: #ffd27a; background: rgba(255, 214, 10, .08); border: 1px solid rgba(255, 214, 10, .3); border-radius: 10px; padding: 8px 12px; }
.sirens { display: grid; gap: 10px; margin-top: 16px; }
.siren { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--l2); border-radius: var(--radius); padding: 14px 16px; scroll-margin-top: 70px; }
.siren.l4 { border-top-color: var(--l4); } .siren.l3 { border-top-color: var(--l3); }
.siren h2 { font-size: 18px; }
.siren p { margin: 6px 0 0; }
.wave { height: 50px; margin: 12px 0; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave path { fill: none; stroke: #3a4452; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wave.on path { stroke: var(--l4); stroke-dasharray: 8 6; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.sbtns { display: flex; align-items: center; gap: 16px; }
.playing { position: sticky; bottom: 14px; z-index: 6; display: flex; align-items: center; gap: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; width: max-content; max-width: 100%; margin: 4px auto 0; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); font-size: 14px; }
.play { font-weight: 700; color: #ff8a80; white-space: nowrap; }
/* ── 핵 ── */
.nsteps { list-style: none; padding: 0; margin: 12px 0 14px; display: grid; gap: 8px; counter-reset: s; }
.nsteps li { display: flex; flex-direction: column; padding-left: 34px; position: relative; font-size: 14px; }
.nsteps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--l4); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.nsteps b { font-size: 15px; }
.decay { display: grid; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.decay div { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.decay i { display: block; height: 12px; min-width: 3px; background: linear-gradient(90deg, #ff8a00, #ff3b30); border-radius: 4px; }
.decay span { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
/* ── 소집 계산기 ── */
.calc { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.calc h2 { font-size: 17px; margin-bottom: 8px; }
.calc-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.calc-row[hidden] { display: none; }
.calc-row label { width: 76px; font-size: 14px; color: var(--muted); }
.calc input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 16px; width: 130px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--text); color: #0b0d10; font-weight: 700; }
.calc-out { display: grid; gap: 8px; margin: 10px 0 6px; }
.c-res { display: flex; gap: 12px; align-items: flex-start; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.c-res.hot { border-color: rgba(255, 59, 48, .5); background: rgba(255, 59, 48, .08); }
.c-res .gi { font-size: 24px; }
.c-res p { margin: 3px 0 0; font-size: 14px; color: #c9ced6; }
.playing[hidden] { display: none; }

/* ── 최신 기사 ── */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.news-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.news-item[hidden] { display: none; }
.n-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.n-tag { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px 1px 7px; font-weight: 700; }
.n-tag .lv { width: 8px; height: 8px; }
.n-title { display: block; margin-top: 5px; font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none; }
.n-title:hover { text-decoration: underline; }
.n-note { margin: 4px 0 0; font-size: 13.5px; color: #b3b9c3; }
.more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14px; }
.nfilter { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.nfilter button { all: unset; cursor: pointer; font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.nfilter button.on { background: var(--text); color: #0b0d10; font-weight: 700; border-color: var(--text); }
/* ── 확률 맞히기 ── */
.g-dial { text-align: center; font-size: 64px; font-weight: 900; line-height: 1; margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.g-dial small { font-size: 26px; margin-left: 2px; }
.g-range { width: 100%; accent-color: var(--l4); height: 28px; }
.g-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.g-reveal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.g-reveal p { margin: 8px 0 0; }
.g-bars { display: grid; gap: 6px; }
.g-bars div { display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; }
.g-bars i { display: block; height: 12px; min-width: 2px; border-radius: 4px; background: #5b6575; }
.g-bars .real i { background: var(--l4); }
.g-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.g-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 13.5px; text-align: left; }
.g-table th, .g-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.g-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.g-table td:nth-child(n+2), .g-table th:nth-child(n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.news-item.has-img { display: grid; grid-template-columns: 1fr 112px; gap: 12px; align-items: start; }
.n-txt { min-width: 0; }
.n-img { display: block; width: 112px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--panel2); }
.n-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 700px) { .news-item.has-img { grid-template-columns: 1fr 168px; } .n-img { width: 168px; height: 108px; } }

/* 첫 화면 최신 소식 한 줄 + 다음 페이지 버튼 (네이버 모바일 유입용) */
.alert-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; padding: 10px 14px; text-decoration: none; color: inherit; background: rgba(255, 59, 48, .1); border: 1px solid rgba(255, 59, 48, .35); border-radius: var(--radius); font-size: 14px; line-height: 1.45; }
.alert-bar .ab-d { font-weight: 800; color: #ff6b5f; white-space: nowrap; }
.alert-bar .ab-t { flex: 1 1 200px; min-width: 0; }
.alert-bar .ab-go { font-weight: 700; white-space: nowrap; font-size: 13px; opacity: .85; }
.alert-bar:hover { border-color: rgba(255, 59, 48, .7); }
.next-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.next-row a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-decoration: none; color: inherit; border: 1px solid var(--line, rgba(255, 255, 255, .14)); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.next-row a:hover { border-color: rgba(255, 255, 255, .35); }
.next-row .gi { font-size: 22px; }
.next-row span:last-child { display: flex; flex-direction: column; }
.next-row small { opacity: .7; font-size: 12px; }
.qz-start .alert-bar { text-align: left; }

/* 토론 */
.talk-rules { background: var(--panel); border: 1px solid rgba(255, 196, 0, .35); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; font-size: 14px; line-height: 1.55; }
.talk-rules ul { margin: 6px 0 0; padding-left: 18px; }
.talk-rules li + li { margin-top: 4px; }
.talk-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.talk-topics a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.talk-topics a:hover { border-color: #3a4452; }
.op { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: rgba(255, 59, 48, .18); color: #ff8a80; margin-right: 4px; }
.talk-form { display: grid; gap: 8px; margin-bottom: 14px; }
.talk-form input, .talk-form textarea { width: 100%; box-sizing: border-box; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; }
.talk-form textarea { resize: vertical; min-height: 84px; }
.talk-form input:focus, .talk-form textarea:focus { outline: none; border-color: #5a6575; }
.talk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.talk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.talk-list > li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.talk-list p { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.talk-meta { display: flex; align-items: baseline; gap: 8px; }
.talk-meta [data-report] { margin-left: auto; opacity: .6; }
.talk-meta [data-report]:disabled { cursor: default; }

/* 북한 미사일 발사 일지 */
.ms-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.ms-n { font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.mbars { margin: 16px 0 0; }
.mbars ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 120px; align-items: end; }
.mbars li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; }
.mbars .mb-b { width: 70%; min-height: 2px; background: var(--l3); border-radius: 4px 4px 0 0; }
.mbars .mb-n { font-size: .75rem; font-variant-numeric: tabular-nums; }
.mbars .mb-m { font-size: .7rem; color: var(--muted, #9aa); }
.mbars li.future .mb-b { background: transparent; }
.mlog { list-style: none; margin: 0; padding: 0; }
.ml-item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.ml-d { display: flex; flex-direction: column; gap: 4px; }
.ml-t { font-size: .75rem; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); align-self: flex-start; }
.ml-x p { margin: 0 0 4px; }
@media (max-width: 420px) { .ml-item { grid-template-columns: 1fr; gap: 6px; } .ml-d { flex-direction: row; align-items: center; gap: 8px; } }
