/* 회원 사이트 — 밝은 바탕 + 남색 글씨 + 파랑 강조, 둥근 카드 (다크 모드 전환 가능) */
:root {
  --bg: #f3f6fc;
  --bg-glow1: rgba(120, 160, 255, .22);
  --bg-glow2: rgba(255, 170, 210, .16);
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --ink: #0f1b3d;
  --ink-2: #3d4766;
  --sub: #6b7491;
  --line: #e3e8f2;
  --accent: #2563eb;
  --accent-soft: #e8efff;
  --hot: #e5484d;
  --up: #e5484d;
  --down: #2563eb;
  --ticker-bg: #0f1a33;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(20, 40, 90, .07);
  --font: "Pretendard", "Pretendard Variable", "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b1020;
  --bg-glow1: rgba(60, 100, 220, .20);
  --bg-glow2: rgba(150, 60, 140, .14);
  --surface: #141a2e;
  --surface-2: #1a2139;
  --ink: #eef2ff;
  --ink-2: #c3cae0;
  --sub: #8e97b5;
  --line: #262f4a;
  --accent: #5b8cff;
  --accent-soft: #1d2950;
  --ticker-bg: #060a16;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  background-image: radial-gradient(60% 40% at 10% 0%, var(--bg-glow1), transparent 70%), radial-gradient(50% 35% at 95% 10%, var(--bg-glow2), transparent 70%);
  background-repeat: no-repeat; -webkit-font-smoothing: antialiased; word-break: keep-all; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.container { max-width: 1232px; margin: 0 auto; padding: 0 16px; }

/* ---------- 시세 띠 ---------- */
.ticker { background: var(--ticker-bg); color: #dfe6ff; height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 12px; overflow: hidden; font-size: 12.5px; }
.ticker .lbl { flex: none; font-weight: 800; letter-spacing: .12em; font-size: 11.5px; display: flex; align-items: center; gap: 7px; }
.ticker .lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6d9bff; }
.ticker .rail { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker .track { display: inline-flex; gap: 34px; white-space: nowrap; animation: marquee 50s linear infinite; }
.ticker.paused .track { animation-play-state: paused; }
.ticker .it b { font-weight: 600; margin-right: 6px; }
.ticker .it .v { color: #9fbcff; font-weight: 800; }
.ticker .it .v.up { color: #ff8a8f; } .ticker .it .v.down { color: #8fb3ff; }
.ticker .it small { color: #7d88a8; margin-left: 6px; }
.ticker .pause { flex: none; width: 30px; height: 26px; border-radius: 7px; border: 1px solid #3b4767; background: transparent; color: #fff; font-size: 11px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 헤더 ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-row { display: flex; align-items: center; gap: 10px; height: 74px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 22px; height: 22px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.logo .mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; background: linear-gradient(135deg, #3b6bff, #7b4dff); box-shadow: 0 8px 18px rgba(80, 90, 255, .35); }
.logo .suf { color: var(--accent); font-size: 12px; font-weight: 900; margin-left: 2px; vertical-align: 1px; }
.hdr .spacer { flex: 1; }
.btn-text { border: 0; background: none; font-weight: 700; font-size: 14.5px; padding: 10px 8px; color: var(--ink-2); white-space: nowrap; }
.btn-solid { border: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 14.5px; padding: 12px 16px; border-radius: 14px; white-space: nowrap; }
.btn-line { border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14.5px; padding: 12px 16px; border-radius: 14px; }
.tabs { display: flex; justify-content: space-between; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 12px 6px 16px; font-weight: 600; font-size: 15.5px; color: var(--sub); white-space: nowrap; }
.tabs a.hot { color: var(--hot); }
.tabs a.on { color: var(--accent); font-weight: 800; }
.tabs a.on::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); }
.hdr .tabs-pc { display: none; }
.hdr .user-chip { font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

/* 서랍 메뉴 */
.drawer-back { position: fixed; inset: 0; background: rgba(8, 14, 30, .45); z-index: 60; opacity: 0; pointer-events: none; transition: .2s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--surface); z-index: 61; transform: translateX(-100%); transition: .25s ease; padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; }
.drawer.open { transform: none; } .drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer a { padding: 14px 12px; border-radius: 12px; font-weight: 700; }
.drawer a:hover { background: var(--surface-2); }
.drawer .cta { margin-top: auto; background: var(--accent); color: #fff; text-align: center; }

/* ---------- 공통 섹션 ---------- */
main { padding: 26px 0 40px; }
.sec { margin: 0 0 34px; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-hd h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.sec-hd p { margin: 8px 0 0; color: var(--sub); font-size: 15px; }
.more { color: var(--accent); font-weight: 800; font-size: 15px; white-space: nowrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.ph { color: var(--sub); }
.sample { font-size: 10.5px; font-weight: 800; color: #b26b00; background: #fff4dc; border-radius: 5px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
[data-theme="dark"] .sample { background: #3a2c0a; color: #ffcf6e; }
.fab { position: absolute; right: 16px; top: 12px; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-size: 34px; font-weight: 300; box-shadow: var(--shadow); z-index: 5; }
.fab-menu { position: absolute; right: 16px; top: 78px; z-index: 6; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: none; min-width: 210px; }
.fab-menu.open { display: block; }
.fab-menu a { display: block; padding: 11px 12px; border-radius: 10px; font-weight: 700; font-size: 14.5px; }
.fab-menu a:hover { background: var(--surface-2); }

/* ---------- 자료실 카드 ---------- */
.lib { display: grid; gap: 16px; }
.lcard { display: grid; grid-template-columns: 40% 1fr; overflow: hidden; min-height: 200px; }
.lcard .art { background: linear-gradient(160deg, #e9f0ff, #f7f3ff); position: relative; }
[data-theme="dark"] .lcard .art { background: linear-gradient(160deg, #1b2547, #241c3d); }
.lcard .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lcard .body { padding: 26px 22px; display: flex; flex-direction: column; }
.lcard .tag { color: var(--accent); font-weight: 800; font-size: 14px; }
.lcard h3 { margin: 8px 0 8px; font-size: 22px; line-height: 1.32; font-weight: 800; letter-spacing: -0.02em; }
.lcard p { margin: 0; color: var(--sub); font-size: 15px; }
.lcard .go { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.lcard .go span { color: var(--accent); font-weight: 800; font-size: 15px; }
.round-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 0; }
.lcard.big .round-go { background: var(--accent); color: #fff; }
.lcard { cursor: pointer; transition: transform .15s ease; }
.lcard:hover { transform: translateY(-2px); }

/* ---------- 일정 ---------- */
.cal-wrap { padding: 22px; display: grid; gap: 22px; }
.cal-hd { display: flex; align-items: baseline; gap: 10px; }
.cal-hd .y { color: var(--sub); font-size: 13px; }
.cal-hd .m { font-size: 24px; font-weight: 800; }
.cal-hd .nav { margin-left: auto; display: flex; gap: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--sub); margin: 8px 0 12px; }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 4px 0; }
.grid7 .dow { font-size: 12px; color: var(--sub); font-weight: 700; padding: 6px 0; }
.grid7 .dow:first-child { color: var(--hot); } .grid7 .dow:last-child { color: var(--accent); }
.grid7 .d { font-size: 13.5px; padding: 6px 0 4px; min-height: 42px; border-radius: 10px; }
.grid7 .d.out { color: transparent; }
.grid7 .d.today b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; }
.grid7 .d .dots { display: flex; justify-content: center; gap: 3px; margin-top: 3px; height: 6px; }
.grid7 .d .dots i { width: 5px; height: 5px; border-radius: 50%; }
.up-list h4 { margin: 0 0 10px; font-size: 13px; color: var(--sub); font-weight: 700; }
.ev { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev .db { flex: none; width: 48px; text-align: center; background: var(--surface-2); border-radius: 12px; padding: 5px 0; }
.ev .db small { display: block; font-size: 11px; color: var(--sub); }
.ev .db b { font-size: 21px; font-weight: 800; }
.ev .t { font-weight: 700; font-size: 15px; }
.ev .m { font-size: 12.5px; color: var(--sub); margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cat { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; color: #fff; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--sub); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.cal-full .grid7 .d { min-height: 86px; text-align: left; padding: 6px; border: 1px solid var(--line); border-radius: 10px; margin: 2px; }
.cal-full .grid7 .d .evs { display: grid; gap: 3px; margin-top: 4px; }
.cal-full .grid7 .d .evs span { font-size: 11px; line-height: 1.3; padding: 2px 4px; border-radius: 4px; background: var(--surface-2); border-left: 3px solid; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 회원 수 · 이벤트 ---------- */
.stats4 { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats4 > div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.stats4 > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats4 small { display: block; color: var(--sub); font-size: 12.5px; }
.stats4 b { display: block; font-size: 26px; font-weight: 800; margin: 4px 0 2px; letter-spacing: -0.02em; }
.stats4 b.goal { color: var(--accent); }
.stats4 em { font-style: normal; color: var(--sub); font-size: 12px; }
.asof { font-size: 12px; color: var(--sub); margin: 8px 4px 0; }
.event { position: relative; padding: 26px 22px; display: grid; gap: 22px; overflow: hidden; }
.event.off { outline: 2px dashed #f0a63a; outline-offset: -2px; }
.off-ribbon { position: absolute; top: 0; right: 0; left: 0; background: #fff4dc; color: #8a5300; font-size: 12.5px; font-weight: 800; padding: 7px 14px; }
[data-theme="dark"] .off-ribbon { background: #3a2c0a; color: #ffcf6e; }
.event.off .ev-left { margin-top: 22px; }
.event .eyebrow { font-size: 11.5px; letter-spacing: .14em; font-weight: 800; color: var(--accent); }
.event h3 { white-space: pre-line; font-size: 27px; line-height: 1.32; font-weight: 800; margin: 10px 0 10px; letter-spacing: -0.025em; }
.event .desc { color: var(--sub); font-size: 14.5px; margin: 0 0 18px; }
.progress { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.progress b { font-size: 18px; color: var(--accent); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #3b6bff, #7b4dff); border-radius: inherit; }
.prizes { display: grid; gap: 10px; }
.prize { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.prize:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.prize .rk { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface); border: 1px solid var(--line); }
.prize .nm small { display: block; font-size: 11.5px; color: var(--sub); }
.prize .nm b { font-size: 16px; }
.prize .ct { margin-left: auto; font-weight: 800; color: var(--accent); }
details.rules { border-top: 1px solid var(--line); padding-top: 12px; }
details.rules summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
details.rules summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
details.rules[open] summary::after { content: "−"; }
details.rules p { color: var(--sub); font-size: 13.5px; line-height: 1.7; }

/* ---------- 핫토픽 ---------- */
.hot-main { padding: 26px 22px; position: relative; overflow: hidden; }
.hot-main .top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--sub); }
.hot-badge { color: var(--hot); font-weight: 800; background: #ffeef0; border-radius: 999px; padding: 4px 10px; }
[data-theme="dark"] .hot-badge { background: #3b1520; }
.hot-main h3 { font-size: 30px; line-height: 1.3; font-weight: 900; letter-spacing: -0.03em; margin: 16px 0 10px; background: linear-gradient(90deg, #2b55e6, #7b4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hot-main p { color: var(--sub); margin: 0 0 22px; }
.hot-main .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lock-btn { border: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; padding: 12px 18px; border-radius: 999px; }
.lock-link { border: 0; background: none; color: var(--accent); font-weight: 800; font-size: 14px; padding: 0; }

/* ---------- 뉴스 ---------- */
.news-layout { display: grid; gap: 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; align-items: center; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips .search-link { margin-left: auto; color: var(--accent); font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.nitem { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 14px 0; }
.nitem::before { content: ""; position: absolute; left: -18px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.nitem .when b { display: block; font-size: 14px; font-weight: 800; }
.nitem .when small { color: var(--sub); font-size: 12px; }
.nitem .card { padding: 16px 18px; }
.nitem .meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.new { color: var(--accent); font-size: 11px; font-weight: 900; }
.nitem h4 { margin: 0 0 6px; font-size: 16.5px; font-weight: 800; line-height: 1.4; }
.nitem p { margin: 0 0 12px; color: var(--sub); font-size: 14px; }
.nitem .act { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--sub); }
.side { display: grid; gap: 16px; align-content: start; }
.side .box { padding: 20px; }
.side h4 { margin: 6px 0 6px; font-size: 18px; font-weight: 800; }
.side p { margin: 0 0 14px; color: var(--sub); font-size: 13.5px; }
.side .wide { display: block; width: 100%; text-align: center; border: 0; background: var(--accent); color: #fff; font-weight: 800; padding: 13px; border-radius: 12px; }
.rank li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.rank li:last-child { border-bottom: 0; }
.rank ol { list-style: none; margin: 0; padding: 0; }
.rank .n { color: var(--hot); font-weight: 900; width: 14px; }
.archive { background: linear-gradient(150deg, #10183a, #1d1650); color: #fff; border: 0; }
.archive p { color: #b8c0e0; }
.archive .eyebrow { font-size: 11px; letter-spacing: .14em; color: #9fb6ff; font-weight: 800; }

/* ---------- 시황 ---------- */
.research { padding: 22px; }
.research .q { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.research .meta { font-size: 12.5px; color: var(--sub); }
.research .hl { margin: 16px 0; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); font-size: 22px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
.research ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.research ol li { margin: 6px 0; }
.reports { display: grid; gap: 14px; margin-top: 16px; }
.report { padding: 20px; }
.report .pill { color: var(--accent); background: var(--accent-soft); border: 0; }
.report h4 { margin: 10px 0 6px; font-size: 17px; }
.report p { color: var(--sub); font-size: 13.5px; margin: 0 0 12px; }
.date-sel { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--sub); }
.date-sel select { border: 1px solid var(--line); background: var(--surface); padding: 9px 12px; border-radius: 10px; }

/* 분야별 뉴스 */
.cols3 { display: grid; gap: 16px; }
.col { padding: 20px; border-top: 3px solid var(--accent); }
.col .eyebrow { font-size: 11px; letter-spacing: .14em; color: var(--sub); font-weight: 800; }
.col h4 { margin: 4px 0 12px; font-size: 19px; }
.col li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.col ul { margin: 0; padding: 0; }
.col li small { display: block; color: var(--sub); font-weight: 500; font-size: 12px; margin-top: 3px; }

/* 검색 */
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 54px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 18px; }
.search input { flex: 1; border: 0; background: none; font-size: 16px; outline: none; }

/* 바닥글 */
.ftr { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--sub); font-size: 13px; }
.ftr .logo { color: var(--ink); margin-bottom: 10px; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0; }
.ftr nav a, .ftr nav button { border: 0; background: none; padding: 0; color: var(--ink-2); font-weight: 600; font-size: 13px; }

/* ---------- 모달 ---------- */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(10, 16, 34, .42); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-back.open { display: flex; }
html.modal-open, html.modal-open body { overflow: hidden; }
.modal { width: 100%; max-width: 420px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal.wide { max-width: 480px; }
.modal-hd { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.modal-hd h3 { margin: 0; font-size: 22px; font-weight: 800; }
.x { border: 0; background: none; width: 36px; height: 36px; font-size: 24px; color: var(--sub); }
.f-lbl { display: block; font-size: 13.5px; font-weight: 700; margin: 14px 0 6px; color: var(--ink-2); }
.f-row { display: flex; gap: 8px; }
.inp { width: 100%; min-width: 0; height: 50px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 0 14px; font-size: 15.5px; outline: none; }
.inp:focus { border-color: var(--accent); }
.f-row .btn-line { flex: none; padding: 0 14px; height: 50px; font-size: 13.5px; }
.f-msg { font-size: 12.5px; margin: 5px 2px 0; min-height: 1em; color: var(--sub); }
.f-msg.bad { color: var(--hot); } .f-msg.good { color: #15924a; }
.big-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border-radius: 16px; font-weight: 800; font-size: 16.5px; border: 0; margin-top: 12px; }
.big-btn.primary { background: var(--accent); color: #fff; }
.big-btn.kakao { background: #fee500; color: #191919; }
.big-btn.outline { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.or { text-align: center; color: var(--sub); font-size: 12.5px; margin: 18px 0 2px; }
.switch { text-align: center; color: var(--sub); font-size: 14px; margin-top: 20px; }
.switch button { border: 0; background: none; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.consent-box { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 12px 14px; font-size: 12.5px; color: var(--sub); line-height: 1.7; white-space: pre-line; max-height: 150px; overflow: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; font-weight: 600; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; z-index: 90; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 좁은 화면(헤더 한 줄 맞춤) ---------- */
.has-fab > [data-section]:first-of-type .sec { padding-top: 56px; }
.fab { top: -6px; }
.fab-menu { top: 60px; }
@media (max-width: 1023px) {
  .hdr-row { gap: 6px; height: 66px; }
  .icon-btn { width: 40px; height: 40px; border-radius: 12px; }
  .logo { gap: 7px; font-size: 15px; min-width: 0; }
  .logo > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .logo .mark { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
  .hdr .btn-text { padding: 8px 4px; font-size: 13.5px; }
  .hdr .btn-solid { padding: 10px 11px; font-size: 13.5px; border-radius: 12px; }
  .hdr .user-chip { max-width: 72px; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
}
@media (max-width: 420px) { .logo .suf { display: none; } }

/* ---------- 넓은 화면 ---------- */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .hdr-row { height: 80px; gap: 14px; }
  .hdr .tabs-mo { display: none; }
  .hdr .tabs-pc { display: flex; justify-content: center; gap: 26px; flex: 1; }
  .hdr .tabs-pc a { padding: 28px 2px; font-size: 15px; }
  .hdr .tabs-pc a.on::after { bottom: 14px; }
  .hdr .spacer { display: none; }
  main { padding-top: 44px; }
  .sec { margin-bottom: 44px; }
  .sec-hd h2 { font-size: 34px; }
  .lib { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; }
  .lcard.big { grid-row: span 2; grid-template-columns: 1fr; grid-template-rows: 230px 1fr; }
  .lcard:not(.big) { min-height: 214px; }
  .lcard:not(.big) h3 { font-size: 18px; } .lcard:not(.big) p { font-size: 13.5px; }
  .lcard.big h3 { font-size: 28px; }
  .cal-wrap { grid-template-columns: 340px 1fr; gap: 40px; padding: 26px 28px; }
  .cal-wrap .up-list { border-left: 1px solid var(--line); padding-left: 28px; }
  .stats4 { grid-template-columns: repeat(4, 1fr); }
  .stats4 > div { border-bottom: 0; border-right: 1px solid var(--line); }
  .stats4 > div:last-child { border-right: 0; }
  .event { grid-template-columns: 1fr 1fr; padding: 34px 36px; gap: 40px; }
  .event details.rules { grid-column: 1 / -1; }
  .event h3 { font-size: 32px; }
  .hot-main { padding: 34px 40px; }
  .hot-main h3 { font-size: 40px; }
  .news-layout { grid-template-columns: 1fr 340px; gap: 28px; }
  .reports { grid-template-columns: 1fr 1fr; }
  .cols3 { grid-template-columns: repeat(3, 1fr); }
  .research { padding: 28px 32px; }
  .fab { right: 24px; }
  .has-fab > [data-section]:first-of-type .sec { padding-top: 0; padding-right: 80px; }
  .fab { top: 0; }
}

@media (min-width: 1320px) {
  .has-fab > [data-section]:first-of-type .sec { padding-right: 0; }
  .fab { right: -62px; }
  .fab-menu { right: -62px; }
}