/* ============================================================
   임기 30일 — 공문서 · 관공서 전산망 톤
   평평한 색면, 얇은 선, 도장. 그라데이션·글로우·블러·이모지 없음.
   국기 삼색: #41479F · #FEFEFF · #B3363B
   ============================================================ */
:root {
  --page: #e8ebf0; --paper: #ffffff; --paper2: #f3f5f9; --head: #e6eaf2;
  --ink: #161a22; --ink2: #4b5365; --ink3: #7b8394;
  --line: #cfd5e0; --line2: #aab3c5; --rule: #1b2b60;
  --blue: #41479f; --blue2: #2f3580; --navy: #0b1f4d; --red: #b3363b; --amber: #9a6208; --green: #1b7b4f;
  --up: #2a49c4; --dn: #b3363b; --hi: #fff1b8; --tint: #eef0fb;
  --v-for: #41479f; --v-against: #b3363b; --v-abst: #a2a9b8; --v-absent: #dfe3ea;
  --shadow: 4px 4px 0 rgba(11, 31, 77, .16);
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Batang', serif;
  --sans: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
}
html[data-theme='dark'] {
  --page: #101216; --paper: #1a1d24; --paper2: #20242d; --head: #262b36;
  --ink: #eceff5; --ink2: #aeb6c6; --ink3: #7e8799;
  --line: #333a47; --line2: #4a5262; --rule: #7f89d8;
  --blue: #6c8fe8; --blue2: #9ab4ff; --navy: #0b1635; --red: #ef6b70; --amber: #e0a23b; --green: #4cc58c;
  --up: #8fb0ff; --dn: #ff7b80; --hi: #4a3f12; --tint: #1f2a44;
  --v-for: #6c8fe8; --v-against: #ef6b70; --v-abst: #6a7284; --v-absent: #2e3440;
  --shadow: 4px 4px 0 rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--sans); background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, h5, p { margin: 0; }
b { font-weight: 700; }
small { font-size: .84em; color: var(--ink3); }
a { color: var(--blue); }
.dim { color: var(--ink3); }
#bgfx { display: none; }
#app { min-height: 100vh; }
#app.shake { animation: shake .35s; }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- 상단 바 ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; height: 46px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--blue); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; }
.brand svg { width: 28px; height: auto; display: block; }
.brand b { font-family: var(--serif); font-weight: 900; font-size: 18px; letter-spacing: -.02em; }
.brand span { font-size: 12px; color: #aab6e0; padding-left: 10px; border-left: 1px solid #ffffff40; }
.top-actions { display: flex; align-items: center; }
.icon-btn { padding: 0 12px; height: 46px; font-size: 13px; font-weight: 600; color: #d4dbf5; border-left: 1px solid #ffffff1f; transition: background .12s; }
.icon-btn:last-child { border-right: 1px solid #ffffff1f; }
.icon-btn:hover { background: #ffffff18; color: #fff; }
.icon-btn.off { color: #7f8bb5; }
.screen { position: relative; }

/* ---------- 버튼 · 공통 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--ink); background: var(--paper); font-weight: 700; border-radius: 2px; transition: background .1s, color .1s; text-align: center; }
.btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .4; }
.btn small { display: block; font-weight: 500; margin-top: 2px; color: inherit; opacity: .7; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.xl { padding: 15px 28px; font-size: 17px; }
.btn.big { padding: 13px 30px; font-size: 16px; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.wide { width: 100%; margin-top: 16px; }
.btn.pulse { box-shadow: 0 0 0 3px var(--hi), 0 0 0 4px var(--blue); }
.link { color: var(--ink2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--blue); }
.panel { background: var(--paper); border: 1px solid var(--line2); border-radius: 2px; padding: 14px; }
.panel h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13.5px; font-weight: 800; margin: -14px -14px 12px; padding: 8px 14px; background: var(--head); border-bottom: 1px solid var(--line2); letter-spacing: -.01em; }
.panel h4 small { font-weight: 500; }
.card { display: block; width: 100%; background: var(--paper); border: 1px solid var(--line2); border-radius: 2px; padding: 16px; position: relative; transition: background .1s; }
.card.sel:hover { background: var(--tint); }
.card.sel.on { border: 2px solid var(--blue); padding: 15px; background: var(--tint); }
.card.sel.on::after { content: '선택됨'; position: absolute; right: 0; top: 0; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; }
.empty { color: var(--ink3); font-size: 13px; padding: 14px 4px; }
.tagc { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border: 1px solid var(--line2); color: var(--ink2); border-radius: 2px; background: var(--paper2); }
.tagc.good { color: var(--green); border-color: var(--green); background: none; } .tagc.bad { color: var(--red); border-color: var(--red); background: none; } .tagc.warn { color: var(--amber); border-color: var(--amber); background: none; }
.x { position: absolute; right: 8px; top: 6px; z-index: 5; width: 30px; height: 30px; color: #fff; font-size: 15px; text-align: center; }
.x:hover { background: #ffffff25; }
.legend { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; color: var(--ink2); margin-top: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; vertical-align: -1px; }

/* ---------- 표지 (타이틀) ---------- */
.cover { min-height: calc(100vh - 46px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px 16px 70px; position: relative; }
.cover-in { width: min(1020px, 100%); display: grid; grid-template-columns: 330px 1fr; background: var(--paper); border: 1px solid var(--line2); border-top: 8px solid var(--blue); box-shadow: var(--shadow); }
.cover-flag { padding: 34px 28px; border-right: 1px solid var(--line); background: var(--paper2); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.cover-flag .flag { width: 100%; height: auto; display: block; border: 1px solid var(--line2); }
.cover-flag p { font-size: 13px; color: var(--ink2); line-height: 1.7; }
.cover-flag p b { color: var(--ink); display: block; font-size: 14px; }
.cover-main { padding: 34px 38px 30px; display: flex; flex-direction: column; gap: 14px; }
.doc-no { font-size: 12.5px; font-weight: 700; color: var(--ink2); letter-spacing: .02em; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.logo { font-family: var(--serif); font-weight: 900; font-size: clamp(60px, 11vw, 118px); line-height: 1; letter-spacing: -.06em; color: var(--ink); }
.logo .n30 { color: var(--blue); font-size: 1.16em; letter-spacing: -.08em; }
.cover-lead { font-size: 16.5px; line-height: 1.75; max-width: 34em; color: var(--ink); }
.cover-lead small { display: block; margin-top: 6px; font-size: 13px; }
.cover-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 6px 0 0; border-top: 2px solid var(--ink); }
.facts div { display: flex; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.facts dt { width: 52px; font-weight: 800; font-size: 13px; color: var(--ink2); flex: none; }
.facts dd { margin: 0; font-size: 13.5px; }
.cover-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; }
.rec { color: var(--ink2); font-size: 13px; margin-left: auto; }
.breaking { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; align-items: stretch; background: var(--paper); border-block: 1px solid var(--line2); font-size: 13px; overflow: hidden; }
.breaking b { background: var(--red); color: #fff; padding: 5px 14px; font-weight: 800; flex: none; letter-spacing: .08em; }
.marquee { overflow: hidden; flex: 1; }
.marquee-in { display: inline-flex; gap: 70px; white-space: nowrap; padding: 5px 0; animation: tick 90s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
.cover-foot { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: var(--ink3); padding: 0 10px; }

/* ---------- 임기 개시 양식 (캐릭터 생성) ---------- */
.create { max-width: 1160px; margin: 0 auto; padding: 18px 16px 110px; }
.create-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.steps { display: flex; align-items: center; gap: 0; }
.steps em { width: 20px; height: 1px; background: var(--line2); }
.step { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink3); font-weight: 700; padding: 3px 4px; }
.step i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line2); font-size: 12px; }
.step.cur { color: var(--ink); } .step.cur i { background: var(--blue); border-color: var(--blue); color: #fff; }
.step.done { color: var(--blue); } .step.done i { background: var(--tint); border-color: var(--blue); color: var(--blue); }
.sum { font-size: 12.5px; color: var(--ink2); max-width: 44ch; text-align: right; }
.step-h { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; }
.step-p { color: var(--ink2); margin-bottom: 18px; }
.grid { display: grid; gap: 12px; }
.party-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bg-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dist-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.party-card { border-left: 8px solid var(--pc); }
.party-card.on { border-left: 8px solid var(--pc); }
.pc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 17px; }
.pc-dot { display: none; }
.pc-seats { margin-left: auto; font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.pc-tag { font-size: 12.5px; color: var(--ink2); font-weight: 700; margin-bottom: 6px; }
.pc-slogan { font-family: var(--serif); color: var(--ink2); font-size: 13px; margin-bottom: 8px; }
.party-card p, .bg-card p, .dist-card p, .fac p { font-size: 13px; color: var(--ink2); line-height: 1.55; }
.perks { margin: 10px 0; padding-left: 16px; font-size: 12.5px; }
.diff { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; } .diff .dim { color: var(--line2); }
.bg-ic { display: none; }
.perk { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--blue); }
.dc-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.dc-area { font-size: 12.5px; color: var(--blue); font-weight: 700; margin: 2px 0 6px; }
.dc-sens { margin-top: 8px; font-size: 12px; color: var(--ink2); }
.final-grid { display: grid; grid-template-columns: 250px 1fr; gap: 26px; margin-top: 12px; }
.portrait-card { border: 1px solid var(--line2); background: var(--paper2); }
.portrait-card .portrait { display: block; width: 100%; height: auto; }
.pname { text-align: center; padding: 9px; font-family: var(--serif); font-weight: 900; font-size: 18px; border-top: 4px solid var(--pc); }
.face-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.lab { display: block; margin: 18px 0 6px; font-size: 13px; color: var(--ink2); font-weight: 800; }
.input { width: 100%; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); font-size: 20px; font-weight: 800; font-family: var(--serif); outline: none; }
.input:focus { box-shadow: 0 0 0 3px var(--hi); border-color: var(--blue); }
.faction-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.fac { padding: 12px; } .fac.on { padding: 11px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-sel { padding: 7px 12px; border: 1px solid var(--line2); background: var(--paper); font-weight: 700; font-size: 13.5px; display: inline-flex; flex-direction: column; align-items: flex-start; border-radius: 2px; }
.chip-sel small { font-size: 10.5px; font-weight: 500; }
.chip-sel:hover { background: var(--tint); }
.chip-sel.on { background: var(--blue); border-color: var(--blue); color: #fff; } .chip-sel.on small { color: #ffffffc0; }
.create-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; background: var(--paper); border-top: 1px solid var(--line2); }
.create-foot .btn { min-width: 130px; }

/* ---------- 메인 ---------- */
.game { max-width: 1500px; margin: 0 auto; padding: 14px 14px 100px; }
.daybar { display: flex; justify-content: space-between; align-items: stretch; gap: 0; background: var(--paper); border: 1px solid var(--line2); }
.dday { background: var(--blue); color: #fff; padding: 8px 18px; display: flex; flex-direction: column; justify-content: center; line-height: 1; min-width: 118px; }
.dday small { color: #cbd0ff; font-size: 11.5px; margin-bottom: 4px; }
.dday b { font-family: var(--serif); font-size: 40px; font-weight: 900; letter-spacing: -.04em; } .dday b span { font-size: 15px; font-weight: 600; color: #cbd0ff; letter-spacing: 0; }
.dinfo { padding: 8px 18px; display: flex; flex-direction: column; justify-content: center; gap: 2px; flex: 1; }
.dinfo > b { font-size: 16px; }
.sess-b { font-size: 12.5px; font-weight: 700; color: var(--ink3); } .sess-b.open { color: var(--green); }
.key-b { font-size: 12.5px; font-weight: 700; color: var(--red); }
.dright { display: flex; align-items: stretch; border-left: 1px solid var(--line); }
.ap-box, .fund { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 6px 18px; border-right: 1px solid var(--line); min-width: 110px; }
.fund { border-right: 0; }
.ap-box small, .fund small { font-size: 11.5px; }
.pips { display: flex; gap: 5px; } .pips i { width: 18px; height: 18px; border: 2px solid var(--ink); background: none; } .pips i.on { background: var(--ink); }
.fund b { font-size: 17px; font-variant-numeric: tabular-nums; }
.cal { display: grid; grid-template-columns: repeat(30, 1fr); gap: 0; margin: 10px 0 4px; border: 1px solid var(--line2); background: var(--paper); }
.cd { position: relative; height: 38px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.cd:last-child { border-right: 0; }
.cd i { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; background: var(--red); font-size: 0; }
.cd.sess { border-bottom: 3px solid var(--green); }
.cd.elec { background: var(--paper2); }
.cd.key span { color: var(--ink); font-weight: 800; }
.cd.past { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--paper2) 4px 5px); } .cd.past span { color: var(--ink3); }
.cd.today { background: var(--blue); color: #fff; } .cd.today span { color: #fff; font-weight: 800; }
.cal-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--ink3); margin-bottom: 12px; flex-wrap: wrap; }
.cal-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; }
.cols { display: grid; grid-template-columns: 320px minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.col-l, .col-c, .col-r { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.col-l, .col-r { position: sticky; top: 58px; max-height: calc(100vh - 70px); overflow: auto; scrollbar-width: thin; }
.me-card { border-top: 4px solid var(--pc); }
.me-top { display: flex; gap: 12px; margin-bottom: 12px; }
.me-top .portrait { width: 88px; height: auto; border: 1px solid var(--line2); flex: none; background: var(--paper2); }
.me-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.me-name { font-family: var(--serif); font-size: 19px; font-weight: 900; display: flex; align-items: center; gap: 6px; letter-spacing: -.02em; }
.me-party { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; } .me-party i { width: 10px; height: 10px; }
.stats { display: grid; gap: 7px; } .stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.stat-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.stat-top b { font-size: 15px; font-variant-numeric: tabular-nums; }
.sd { font-style: normal; font-size: 10.5px; margin-left: 5px; font-weight: 700; } .sd.up { color: var(--up); } .sd.dn { color: var(--dn); }
.bar { height: 6px; background: var(--head); border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--c, var(--blue)); transition: width .7s steps(14); }
.k-fame, .k-center, .k-base, .k-party, .k-district, .k-press { --c: var(--blue); } .k-stamina { --c: var(--green); } .k-risk { --c: var(--red); }
.suprow { display: flex; height: 24px; border: 1px solid var(--ink); }
.seg { display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; transition: width .6s; } .seg.me { box-shadow: inset 0 0 0 2px #fff; }
.hemi { width: 100%; height: auto; display: block; } .hemi circle { transition: fill .16s; } .hemi .me { stroke: var(--ink); stroke-width: 2; }
.hemi-t1 { fill: var(--ink); font-size: 15px; font-weight: 900; font-family: var(--serif); } .hemi-t2 { fill: var(--ink2); font-size: 11px; }
.hemi.big { max-width: 560px; margin: 0 auto; }
.issue-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.issue { text-align: left; padding: 10px 12px; border: 1px solid var(--line2); background: var(--paper); display: flex; flex-direction: column; gap: 3px; border-radius: 2px; transition: background .1s; }
.issue:hover { background: var(--hi); border-color: var(--ink); }
.issue.mine { border-left: 5px solid var(--blue); }
.is-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink2); }
.is-heat { letter-spacing: 1px; color: var(--red); font-size: 11px; } .issue.h1 .is-heat { color: var(--ink3); } .issue.h2 .is-heat { color: var(--amber); }
.issue b { font-size: 14.5px; line-height: 1.3; } .issue small { line-height: 1.4; }
.tabs { display: flex; gap: 0; margin: -14px -14px 0; padding: 0 8px; background: var(--head); border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.tab { padding: 10px 15px 9px; font-weight: 700; font-size: 14px; color: var(--ink2); border-bottom: 3px solid transparent; margin-bottom: -1px; position: relative; }
.tab:hover { color: var(--ink); background: #ffffff40; } .tab.on { color: var(--blue); border-bottom-color: var(--blue); background: var(--paper); } .tab.lock { color: var(--ink3); }
.tabs.sm .tab { padding: 8px 11px 7px; font-size: 13px; }
.dot { display: inline-block; min-width: 17px; margin-left: 5px; padding: 0 5px; background: var(--red); color: #fff; font-size: 11px; line-height: 17px; text-align: center; }
.act-grid { display: flex; flex-direction: column; margin: 0 -14px -14px; }
.act { display: flex; gap: 12px; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; transition: background .1s; }
.act:last-child { border-bottom: 0; }
.act:hover:not(.off) { background: var(--tint); }
.act.off { background: var(--paper2); }
.act.off .act-name { color: var(--ink3); }
.act-ic { display: none; }
.act-body { flex: 1; min-width: 0; }
.act-name { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap, .choice b .ap { color: var(--ink); font-size: 8px; letter-spacing: 2px; font-weight: 400; }
.act p { font-size: 13px; color: var(--ink2); margin: 2px 0 5px; line-height: 1.5; }
.why { font-size: 12px; color: var(--amber); font-weight: 700; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nw { padding: 9px 2px; border-bottom: 1px solid var(--line); }
.nw:last-child { border-bottom: 0; }
.nw.good p { border-left: 3px solid var(--blue); padding-left: 8px; } .nw.bad p { border-left: 3px solid var(--red); padding-left: 8px; }
.nw-m { display: flex; gap: 8px; font-size: 11.5px; color: var(--ink3); font-weight: 700; margin-bottom: 2px; font-variant-numeric: tabular-nums; } .nw-o { color: var(--ink2); }
.nw p { font-size: 13.5px; line-height: 1.5; }
.trouble h4 { margin-top: 14px; }
.legal-box { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--line2); }
.lb { padding: 8px; display: flex; flex-direction: column; font-size: 11.5px; color: var(--ink2); border-right: 1px solid var(--line); } .lb:last-child { border-right: 0; } .lb b { font-size: 16px; color: var(--ink); } .lb b.bad { color: var(--red); } .lb.full { grid-column: 1/-1; border-top: 1px solid var(--line); border-right: 0; }
.scc { padding: 8px 10px; border: 1px solid var(--line2); border-left: 5px solid var(--amber); margin-bottom: 6px; } .scc.sev3 { border-left-color: var(--red); } .scc-t { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.bl { padding: 8px 10px; border: 1px solid var(--line); margin-bottom: 5px; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; } .bl.own { border-left: 5px solid var(--blue); } .bl.passed { border-left: 5px solid var(--green); } .bl.failed { border-left: 5px solid var(--line2); color: var(--ink3); } .bst { font-size: 12px; font-weight: 700; color: var(--blue); }
.bills h4 { margin-top: 0; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--paper); border-top: 2px solid var(--ink); }
.dock-in { max-width: 1500px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 8px 16px; }
.dock-hint { font-size: 13px; color: var(--ink2); }
.dock-hint b { color: var(--ink); }

/* ---------- 스플래시 · 토스트 · 플래시 ---------- */
.splash { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--navy); color: #fff; opacity: 0; transition: opacity .2s; cursor: pointer; }
.splash.in { opacity: 1; }
.sp-in { text-align: center; }
.sp-flag .flag { width: 84px; height: auto; margin-bottom: 18px; border: 1px solid #ffffff55; }
.sp-d { font-family: var(--serif); font-size: 108px; font-weight: 900; line-height: 1; letter-spacing: -.05em; } .sp-d small { font-size: 30px; color: #aab6e0; letter-spacing: 0; }
.sp-t { font-size: 20px; font-weight: 700; margin-top: 10px; } .sp-s { color: #ffd966; margin-top: 4px; font-weight: 700; min-height: 1.5em; }
#toast-root { position: fixed; top: 62px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { padding: 9px 16px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .2s; } .toast.in { opacity: 1; }
.flash { position: fixed; inset: 0; z-index: 110; pointer-events: none; opacity: 0; background: #fff; } .flash.red { background: #b3363b; } .flash.go { animation: flash .35s steps(4); }
@keyframes flash { 0% { opacity: .7; } 100% { opacity: 0; } }
.confetti { position: fixed; inset: 0; z-index: 115; pointer-events: none; overflow: hidden; } .confetti i { position: absolute; top: -20px; width: 8px; height: 14px; animation: fall linear forwards; }
@keyframes fall { to { top: 110vh; transform: rotate(720deg) translateX(40px); } }

/* ---------- 모달 (결재 문서) ---------- */
#modal-root { position: relative; z-index: 100; }
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 16, 35, .6); opacity: 0; transition: opacity .15s; overflow: auto; }
.modal-wrap.in { opacity: 1; }
.modal { position: relative; width: min(580px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); box-shadow: 6px 6px 0 rgba(0, 0, 0, .35); padding: 0 0 22px; margin: auto; scrollbar-width: thin; transform: translateY(8px); transition: transform .15s; }
.modal-wrap.in .modal { transform: none; }
.modal::before { content: attr(data-title); display: block; position: sticky; top: 0; z-index: 4; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .06em; padding: 9px 20px; border-bottom: 3px solid var(--blue); }
.modal > div, .modal > section { padding: 20px 22px 0; }
.modal.wide { width: min(880px, 100%); } .modal.full { width: min(1000px, 100%); }
.ev-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ev-ic, .res-ic { display: none; }
.ev-k { font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: .04em; }
.ev-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 900; line-height: 1.3; letter-spacing: -.03em; }
.ev-text { color: var(--ink2); font-size: 14.5px; margin-bottom: 16px; line-height: 1.7; } .ev-text small { display: block; margin-top: 6px; }
.ev-choices { display: flex; flex-direction: column; border: 1px solid var(--ink); counter-reset: ch; }
.choice { display: block; text-align: left; padding: 11px 14px 11px 44px; border-bottom: 1px solid var(--line2); position: relative; counter-increment: ch; transition: background .1s; }
.choice:last-child { border-bottom: 0; }
.choice::before { content: counter(ch); position: absolute; left: 12px; top: 11px; width: 20px; height: 20px; border: 1px solid var(--ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.choice:hover:not(.disabled) { background: var(--hi); }
.choice:hover:not(.disabled)::before { background: var(--ink); color: var(--paper); }
.choice b { font-size: 15px; display: block; } .choice small { color: var(--ink2); line-height: 1.45; display: block; margin-top: 1px; } .choice em { color: var(--amber); font-size: 12px; font-style: normal; font-weight: 700; } .choice.disabled { opacity: .5; background: var(--paper2); }
.res-head { margin-bottom: 12px; padding-right: 100px; position: relative; }
.res-title { font-family: var(--serif); font-size: 22px; font-weight: 900; letter-spacing: -.03em; line-height: 1.3; } .res-sub { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.res.good .res-head::after, .res.bad .res-head::after { position: absolute; right: 0; top: -2px; width: 74px; height: 74px; border: 4px double; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 20px; transform: rotate(-12deg); mix-blend-mode: multiply; opacity: .85; }
.res.good .res-head::after { content: '긍정'; color: var(--blue); border-color: var(--blue); }
.res.bad .res-head::after { content: '악재'; color: var(--red); border-color: var(--red); }
html[data-theme='dark'] .res.good .res-head::after, html[data-theme='dark'] .res.bad .res-head::after { mix-blend-mode: normal; }
.quote { margin: 4px 0 14px; padding: 10px 16px; border-left: 4px solid var(--ink); background: var(--paper2); font-family: var(--serif); font-size: 16.5px; font-weight: 700; line-height: 1.6; }
.res-text { font-size: 14.5px; line-height: 1.75; margin-bottom: 14px; white-space: pre-line; }
.clip { background: #f4eddb; color: #1d1b16; padding: 10px 14px; margin: 4px 0 14px; border: 1px solid #b9ad8a; position: relative; }
.clip-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #6b5f40; border-bottom: 2px solid #1d1b16; padding-bottom: 3px; margin-bottom: 6px; } .clip-top b { color: #b3363b; }
.clip-h { font-family: var(--serif); font-weight: 900; font-size: 17px; line-height: 1.4; letter-spacing: -.02em; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.bdg { font-size: 12px; font-weight: 800; padding: 1px 8px; border: 1px solid var(--ink2); color: var(--ink2); } .bdg.good { color: var(--green); border-color: var(--green); } .bdg.bad { color: var(--red); border-color: var(--red); } .bdg.warn { color: var(--amber); border-color: var(--amber); } .bdg.info { color: var(--blue); border-color: var(--blue); } .bdg.viral { color: #fff; background: var(--red); border-color: var(--red); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 22px; margin-bottom: 14px; border-top: 2px solid var(--ink); }
.dchip { display: flex; justify-content: space-between; padding: 5px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.dchip i { display: none; } .dchip b { font-weight: 800; } .dchip.up b { color: var(--up); } .dchip.dn b { color: var(--dn); }
.cmts h5 { font-size: 12px; color: var(--ink2); margin-bottom: 6px; border-top: 1px solid var(--line2); padding-top: 10px; }
.cm { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; align-items: baseline; padding: 5px 0; font-size: 13.5px; }
.cm-p { font-size: 11px; padding: 0 6px; border: 1px solid var(--line2); color: var(--ink2); font-weight: 700; } .cm b { font-size: 12.5px; color: var(--ink2); } .cm em { font-style: normal; font-size: 11px; color: var(--ink3); }

/* ---------- 구설수 (호외) ---------- */
.scandal-m .modal { border: 2px solid var(--red); }
.scandal-m .modal::before { background: var(--red); border-bottom-color: #7d1f25; }
.cr-bar { display: flex; align-items: center; gap: 12px; margin: -20px -22px 14px; padding: 7px 22px; background: var(--paper2); border-bottom: 1px solid var(--line2); font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.cr-bar b { color: var(--red); font-size: 13px; letter-spacing: .12em; }
.live { color: var(--red); font-weight: 800; } .cr-out { margin-left: auto; }
.cr-sev { font-size: 13px; font-weight: 800; color: var(--red); margin-bottom: 4px; letter-spacing: 2px; } .cr-sev small { margin-left: 8px; letter-spacing: 0; font-weight: 600; }
.cr-h { font-family: var(--serif); font-size: 25px; font-weight: 900; line-height: 1.38; letter-spacing: -.03em; margin-bottom: 10px; border-bottom: 3px double var(--ink); padding-bottom: 10px; }
.cr-lede { color: var(--ink); margin-bottom: 10px; font-size: 14.5px; line-height: 1.7; }
.cr-law { font-size: 12.5px; padding: 6px 10px; background: var(--hi); color: var(--ink); font-weight: 700; margin-bottom: 10px; border-left: 4px solid var(--amber); }
.truth { position: relative; margin: 12px 0 14px; min-height: 60px; border: 1px dashed var(--ink2); overflow: hidden; }
.t-seal, .t-open { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; transition: opacity .3s; }
.t-seal { background: repeating-linear-gradient(135deg, var(--paper2) 0 8px, var(--head) 8px 16px); font-weight: 700; color: var(--ink2); }
.t-open { flex-direction: column; gap: 0; opacity: 0; } .t-open b { font-size: 21px; font-family: var(--serif); font-weight: 900; }
.truth.rev .t-seal { opacity: 0; } .truth.rev .t-open { opacity: 1; }
.t-open.tt { background: #fbe7e8; } .t-open.tt b { color: var(--red); } .t-open.tp { background: #fbf0d6; } .t-open.tp b { color: var(--amber); } .t-open.tf { background: #e1f1e8; } .t-open.tf b { color: var(--green); }
html[data-theme='dark'] .t-open.tt { background: #3a1e21; } html[data-theme='dark'] .t-open.tp { background: #392d12; } html[data-theme='dark'] .t-open.tf { background: #15301f; }
.cr-q { margin: 6px 0 8px; font-size: 14px; font-weight: 800; }
.resp-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--ink); counter-reset: rs; }
.resp { text-align: left; padding: 10px 12px 10px 38px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 3px; position: relative; counter-increment: rs; transition: background .1s; }
.resp:nth-child(2n) { border-right: 0; } .resp:nth-last-child(-n+2) { border-bottom: 0; }
.resp::before { content: counter(rs); position: absolute; left: 10px; top: 11px; width: 19px; height: 19px; border: 1px solid var(--ink); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.resp:hover:not(.disabled) { background: var(--hi); }
.rs-top { display: flex; gap: 8px; align-items: center; font-size: 14px; } .rs-top span { display: none; } .resp small { line-height: 1.4; } .resp em { color: var(--amber); font-size: 12px; font-style: normal; font-weight: 700; } .resp.disabled { opacity: .45; background: var(--paper2); }
.mult { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 0 6px; border: 1px solid; } .mult.g { color: var(--green); } .mult.y { color: var(--amber); } .mult.r { color: var(--red); }

/* ---------- 표결 ---------- */
.v-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: var(--blue); margin-bottom: 4px; } .v-need { color: var(--ink2); }
.vote h3 { font-family: var(--serif); font-size: 23px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; } .v-blurb { color: var(--ink2); font-size: 14px; margin-bottom: 12px; }
.v-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: center; }
.v-hemi { position: relative; } .tally { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); margin-top: 8px; }
.tl { text-align: center; padding: 5px; border-right: 1px solid var(--line2); } .tl:last-child { border-right: 0; } .tl small { display: block; } .tl b { font-size: 24px; font-family: var(--serif); font-weight: 900; display: block; line-height: 1.2; font-variant-numeric: tabular-nums; } .tl.f b { color: var(--v-for); } .tl.a b { color: var(--v-against); } .tl.b b { color: var(--ink2); } .tl.z b { color: var(--ink3); }
.verdict { position: absolute; left: 50%; top: 36%; width: 132px; height: 132px; margin: -66px 0 0 -66px; display: grid; place-items: center; border: 6px double; border-radius: 50%; font-family: var(--serif); font-size: 36px; font-weight: 900; letter-spacing: .04em; line-height: 1.1; text-align: center; transform: rotate(-12deg); opacity: .96; background: var(--paper); box-shadow: 0 0 0 4px var(--paper); }
.verdict.pass { color: var(--blue); border-color: var(--blue); } .verdict.fail { color: var(--red); border-color: var(--red); } .verdict[hidden] { display: none; }

.stamp { animation: stamp .3s steps(5) both; } @keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } to { opacity: .9; transform: rotate(-12deg) scale(1); } }
.v-side h5 { font-size: 12.5px; color: var(--ink2); margin-bottom: 8px; border-bottom: 1px solid var(--line2); padding-bottom: 4px; } .lr { display: grid; grid-template-columns: 78px 1fr 36px; gap: 8px; align-items: center; font-size: 12.5px; margin-bottom: 6px; } .lr span { display: flex; align-items: center; gap: 5px; } .lr i { width: 8px; height: 8px; } .lbar { height: 8px; background: var(--head); border: 1px solid var(--line); } .lbar u { display: block; height: 100%; } .lr b { text-align: right; font-variant-numeric: tabular-nums; }
.line { margin-top: 10px; font-size: 13px; padding: 7px 10px; background: var(--paper2); border-left: 4px solid var(--blue); }
.v-act { margin-top: 14px; } .vbtns { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.vb { padding: 13px 8px; font-weight: 800; font-size: 15px; text-align: center; border-right: 1px solid var(--line2); transition: background .1s; } .vb:last-child { border-right: 0; } .vb small { display: block; font-size: 11px; font-weight: 600; } .vb:hover { background: var(--hi); }
.v-res { margin-top: 14px; } .v-res p { font-size: 14.5px; margin-bottom: 10px; line-height: 1.65; }

/* ---------- 발언 작성 · 대정부질의 ---------- */
.w-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-right: 30px; } .w-steps { display: flex; gap: 4px; } .w-steps i { width: 36px; height: 5px; background: var(--line); } .w-steps i.cur { background: var(--blue); } .w-steps i.done { background: var(--ink); }
.wiz h3, .gq h3 { font-family: var(--serif); font-size: 23px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; } .w-sub { color: var(--ink2); font-size: 14px; margin-bottom: 14px; }
.w-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; } .w-grid.tones { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wcard { text-align: left; padding: 12px; border: 1px solid var(--line2); background: var(--paper); display: flex; flex-direction: column; gap: 5px; transition: background .1s; } .wcard:hover:not(.off) { background: var(--hi); border-color: var(--ink); } .wcard.on { border: 2px solid var(--blue); padding: 11px; background: var(--tint); } .wcard.off { opacity: .45; background: var(--paper2); }
.wc-ic { display: none; } .wc-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink2); } .wcard p { font-size: 13px; color: var(--ink2); line-height: 1.45; } .wc-m { font-size: 12px; font-weight: 700; color: var(--blue); margin-top: auto; }
.wcard b { font-size: 15px; }
.w-list { display: flex; flex-direction: column; gap: 8px; }
.scard { text-align: left; padding: 11px 14px; border: 1px solid var(--line2); background: var(--paper); display: flex; flex-direction: column; gap: 6px; transition: background .1s; } .scard:hover { background: var(--hi); border-color: var(--ink); } .scard.on { border: 2px solid var(--blue); padding: 10px 13px; background: var(--tint); }
.scard q { font-family: var(--serif); font-size: 14.5px; color: var(--ink); line-height: 1.55; quotes: '“' '”'; font-weight: 600; }
.tg { display: flex; flex-wrap: wrap; gap: 5px; } .tg span { font-size: 11.5px; font-weight: 700; padding: 0 6px; border: 1px solid var(--line2); color: var(--ink2); } .tg .good { color: var(--green); border-color: var(--green); } .tg .bad { color: var(--red); border-color: var(--red); } .tg .mid { color: var(--ink2); }
.prev { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin: 4px 0; border: 1px solid var(--line2); } .prev span { display: flex; flex-direction: column; align-items: center; font-size: 12.5px; font-weight: 800; padding: 3px; color: var(--ink3); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); } .prev span:nth-child(3n) { border-right: 0; } .prev span:nth-last-child(-n+3) { border-bottom: 0; } .prev em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--ink2); } .prev .up { color: var(--up); } .prev .dn { color: var(--dn); }
.risk-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); padding-top: 5px; margin-top: 2px; } .risk-row .up { color: var(--green); } .risk-row .dn { color: var(--red); } .risk-row .warn { color: var(--amber); }
.w-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; } .wi { font-size: 13px; color: var(--ink2); font-weight: 700; }
h5.lab { margin: 12px 0 6px; font-size: 13px; color: var(--ink2); }
.tgt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; } .tgt { padding: 9px 10px; border: 1px solid var(--line2); display: flex; align-items: center; gap: 8px; font-size: 13.5px; position: relative; } .tgt span { display: none; } .tgt:hover { background: var(--hi); } .tgt.on { border: 2px solid var(--blue); background: var(--tint); } .tgt em { position: absolute; right: 6px; top: 2px; font-size: 10.5px; font-style: normal; color: var(--blue); font-weight: 800; }
.fl-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; } .fl-clock { font-family: var(--serif); font-size: 24px; font-weight: 900; } .fl-r { font-size: 12.5px; color: var(--ink2); font-weight: 700; } .fl-st { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 170px; } .fl-st .bar { flex: 1; } .fl-st .bar i { background: var(--green); } .fili h3 { font-family: var(--serif); font-size: 21px; font-weight: 900; margin-bottom: 6px; }
.recap h3 { font-family: var(--serif); font-size: 23px; font-weight: 900; margin-bottom: 12px; } .rc-k { font-size: 12.5px; font-weight: 800; color: var(--blue); } .rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; } .recap h5 { font-size: 13px; color: var(--ink2); margin: 6px 0; } .dr { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); } .dr b.up { color: var(--up); } .dr b.dn { color: var(--dn); } .nextk { margin: 12px 0; } .nextk span { display: inline-block; margin: 0 6px 6px 0; padding: 1px 8px; border: 1px solid var(--line2); font-size: 12.5px; font-weight: 700; } .feed.sm .nw { padding: 6px 2px; }

/* ---------- 개표 ---------- */
.elec-m .modal { border: 2px solid var(--ink); }
.el-head { text-align: center; margin-bottom: 12px; } .el-head h2 { font-family: var(--serif); font-size: 30px; font-weight: 900; letter-spacing: -.04em; margin: 4px 0; } .el-head p { color: var(--ink2); font-size: 14px; }
.el-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 14px 0; text-align: center; } .el-vs div { display: flex; flex-direction: column; align-items: center; gap: 2px; } .el-vs i { width: 44px; height: 6px; } .el-vs b { font-family: var(--serif); font-size: 21px; font-weight: 900; } .el-vs em { font-style: normal; font-weight: 800; color: var(--ink3); font-size: 15px; }
.er { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line2); margin-bottom: -1px; transition: background .2s; } .er.live { background: var(--hi); border-color: var(--ink); position: relative; z-index: 1; } .er.done.won { border-left: 6px solid var(--blue); } .er.done.lost { border-left: 6px solid var(--red); }
.er-n { display: flex; gap: 10px; align-items: center; } .er-n > span { display: none; } .er-n b { font-size: 14.5px; display: block; } .er-n small { font-size: 11.5px; line-height: 1.3; display: block; }
.er-bar { display: flex; height: 16px; border: 1px solid var(--ink); } .er-bar u { display: block; height: 100%; } .er-bar.big { height: 24px; } .er-bar.big u { transition: width 1s steps(20); }
.er-v { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; } .er-v .bal { color: var(--ink2); font-weight: 600; }
.er-list { margin-bottom: 14px; }
.el-total { margin: 14px 0; padding: 12px; border: 2px solid var(--ink); } .et-l { font-size: 12.5px; font-weight: 800; margin-bottom: 6px; } .el-total[hidden], .el-hemi[hidden], .el-act[hidden], .el-verdict[hidden] { display: none; }
.el-verdict { text-align: center; margin: 22px 0; } .el-verdict b { display: inline-grid; place-items: center; width: 176px; height: 176px; border: 8px double; border-radius: 50%; font-family: var(--serif); font-size: 56px; font-weight: 900; transform: rotate(-10deg); letter-spacing: .04em; background: var(--paper); } .el-verdict small { display: block; margin-top: 16px; font-size: 14.5px; color: var(--ink2); } .el-verdict.pass b { color: var(--blue); border-color: var(--blue); } .el-verdict.fail b { color: var(--red); border-color: var(--red); }

.el-verdict.stamp { animation: none; } .el-verdict.stamp b { animation: stamp2 .35s steps(6) both; } @keyframes stamp2 { from { opacity: 0; transform: rotate(-10deg) scale(2.4); } to { opacity: 1; transform: rotate(-10deg) scale(1); } }
.el-hemi { margin-top: 10px; } .el-hemi h5 { text-align: center; color: var(--ink2); font-size: 12.5px; margin-bottom: 4px; }

/* ---------- 결과 통지서 (엔딩) ---------- */
.ending { max-width: 1040px; margin: 0 auto; padding: 22px 16px 80px; }
.en-hero { text-align: left; padding: 22px 26px; background: var(--paper); border: 1px solid var(--line2); border-top: 8px solid var(--blue); margin-bottom: 12px; }
.ending.lose .en-hero { border-top-color: var(--red); }
.en-ic { display: none; }
.en-hero h2 { font-family: var(--serif); font-size: clamp(28px, 5vw, 44px); font-weight: 900; letter-spacing: -.04em; margin: 2px 0 6px; } .ending.win .en-hero h2 { color: var(--blue); } .ending.lose .en-hero h2 { color: var(--red); } .en-hero p { color: var(--ink2); }
.en-grid { display: grid; grid-template-columns: 220px 1fr; gap: 12px; }
.en-card { background: var(--paper); border: 1px solid var(--line2); padding: 14px; } .en-card h5 { font-size: 13.5px; font-weight: 800; margin: -14px -14px 10px; padding: 8px 14px; background: var(--head); border-bottom: 1px solid var(--line2); }
.grade { padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--line2); position: relative; } .grade b { font-family: var(--serif); font-size: 110px; line-height: 1; font-weight: 900; color: var(--blue); } .grade.g-F b, .grade.g-D b { color: var(--red); } .grade.g-S b { color: var(--ink); }
.en-title { background: var(--paper); border: 1px solid var(--line2); padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; gap: 4px; } .en-title b { font-family: var(--serif); font-size: 32px; font-weight: 900; letter-spacing: -.03em; } .alsos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .alsos span { font-size: 12.5px; padding: 0 8px; border: 1px solid var(--line2); font-weight: 700; } .en-vote { margin-top: 8px; color: var(--ink2); font-weight: 700; }
.rr { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .rr b { font-variant-numeric: tabular-nums; } .spark { width: 100%; height: auto; } .final-st { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 13px; font-weight: 700; }
.en-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin-top: 22px; align-items: center; }

/* ---------- 도움말 · 상징 ---------- */
.how { list-style: none; padding: 0; margin: 0 0 6px; border-top: 2px solid var(--ink); } .how li { font-size: 14px; color: var(--ink2); line-height: 1.65; padding: 9px 4px; border-bottom: 1px solid var(--line); } .how b { color: var(--ink); display: block; margin-bottom: 1px; }
.sym-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 12px; border: 1px solid var(--line2); } .sy { text-align: center; padding: 12px 8px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); } .sy:last-child { border-right: 0; } .sy-a { height: 110px; display: grid; place-items: center; } .sy-a .art { height: 100%; width: auto; max-width: 100%; } .sy-a .flag { width: 100%; height: auto; border: 1px solid var(--line2); } .sy span { font-size: 12.5px; color: var(--ink2); }
.sym-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line2); } .sym-info div { padding: 8px 12px; border-bottom: 1px solid var(--line); } .sym-info small { display: block; } .sym-note { margin-top: 12px; font-size: 12.5px; color: var(--ink2); line-height: 1.65; }
.inline-flag { height: 1em; width: auto; vertical-align: -.14em; margin-right: 4px; display: inline-block; border: 1px solid var(--line2); } .inline-flag.big { height: 34px; margin: 0; }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .cols { grid-template-columns: 310px minmax(0, 1fr); } .col-r { grid-column: 1 / -1; position: static; max-height: none; } .col-l { max-height: none; position: static; }
}
@media (max-width: 860px) {
  .cover-in { grid-template-columns: 1fr; } .cover-flag { flex-direction: row; align-items: center; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); } .cover-flag .flag { width: 120px; flex: none; } .cover-main { padding: 22px 20px; } .facts { grid-template-columns: 1fr; } .rec { margin-left: 0; }
  .cols { grid-template-columns: 1fr; } .col-l { order: 2; } .col-c { order: 1; } .col-r { order: 3; }
  .issue-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .issue { min-width: 235px; scroll-snap-align: start; flex: none; }
  .final-grid, .en-grid, .rc-grid, .v-body { grid-template-columns: 1fr; } .sym-grid { grid-template-columns: 1fr 1fr; } .sy:nth-child(2n) { border-right: 0; } .er { grid-template-columns: 1fr; }
  .cd { height: 32px; } .resp-grid { grid-template-columns: 1fr; } .resp { border-right: 0 !important; border-bottom: 1px solid var(--line2) !important; } .resp:last-child { border-bottom: 0 !important; } .vbtns { grid-template-columns: 1fr 1fr; } .vb:nth-child(2n) { border-right: 0; } .vb:nth-child(-n+2) { border-bottom: 1px solid var(--line2); }
  .brand span { display: none; } .dday b { font-size: 32px; } .dday { min-width: 96px; padding: 8px 12px; } .dock-in { justify-content: stretch; } .dock-in .btn { flex: 1; } .dock-hint { display: none; }
  .verdict { width: 110px; height: 110px; margin: -55px 0 0 -55px; font-size: 28px; } .el-verdict b { width: 140px; height: 140px; font-size: 42px; } .sum { display: none; } .tabs { overflow-x: auto; flex-wrap: nowrap; } .tab { white-space: nowrap; }
  .dright { flex-direction: row; } .ap-box, .fund { padding: 6px 12px; min-width: 0; }
}
@media (max-width: 560px) {
  .cal { grid-template-columns: repeat(15, 1fr); } .cd { border-bottom: 1px solid var(--line); } .modal > div, .modal > section { padding: 16px 16px 0; } .cr-bar { margin: -16px -16px 12px; padding: 7px 16px; } .topbar { padding: 0 8px; } .icon-btn { padding: 0 8px; font-size: 12px; } .logo { font-size: 66px; } .lr { grid-template-columns: 66px 1fr 34px; } .daybar { flex-wrap: wrap; } .dinfo { min-width: 60%; } .dright { width: 100%; border-left: 0; border-top: 1px solid var(--line); } .ap-box, .fund { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }

/* 다크 테마: 파란 면 위 흰 글씨 대비 확보 */
html[data-theme='dark'] .dday,
html[data-theme='dark'] .btn.primary,
html[data-theme='dark'] .chip-sel.on,
html[data-theme='dark'] .step.cur i,
html[data-theme='dark'] .card.sel.on::after { background: #3a56b8; border-color: #3a56b8; }
html[data-theme='dark'] .btn.primary:hover:not(:disabled) { background: #0b1635; border-color: #6c8fe8; }
html[data-theme='dark'] .modal::before { background: #0b1635; }
