/* 레마넥트 브리핑 — 스토어와 같은 결(#191919 바탕 · 프리텐다드 · 파란 강조 · 둥근 카드) 위에 «분석 페이지» 무게를 더한다.
   움직임: 머리 오로라 · 차례대로 떠오르는 절 · 그려지는 시세선 · 펼쳐지는 예측 띠 · 올라가는 숫자. 움직임 줄이기 설정이면 전부 끈다. */
:root {
  --bg: #121212; --bg2: #1b1b1b; --card: #202020; --card2: #262626; --line: #2e2e2e; --ink: #fff; --sub: #cfcfcf; --dim: #8e8e8e; --mute: #5f5f5f;
  --blue: #4f7bff; --blue2: #7d9dff; --red: #ff5a4a; --gold: #e9b94e; --green: #2fd48b; --violet: #9b7bff;
  --up: #ff5a4a; --down: #4f7bff;                /* 한국 시세 색 — 오르면 빨강, 내리면 파랑 */
  --r: 18px; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none }
*::-webkit-scrollbar { width: 0; height: 0; display: none }
html { scroll-behavior: smooth; overflow-x: clip }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; overflow-x: clip }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; cursor: pointer }
img { display: block; max-width: 100% }
[hidden] { display: none !important }
.w { width: min(1120px, 100% - 32px); margin: 0 auto }

/* ── 머리 ── */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(18, 18, 18, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #222 }
.hd-top { display: flex; align-items: center; gap: 28px; height: 60px }
.logo { display: flex; align-items: center; gap: 8px }
.logo b { font-size: 18px; font-weight: 900; letter-spacing: -.02em }
.gnb { display: flex; gap: 20px; font-size: 17px; font-weight: 800; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap }
.gnb::-webkit-scrollbar { display: none }
.gnb a { color: #bdbdbd; transition: color .2s }
.gnb a.on, .gnb a:hover { color: var(--blue2) }
.owner-badge { margin-left: auto; padding: 4px 10px; border-radius: 12px; background: rgba(233, 185, 78, .14); color: var(--gold); font-size: 12px; font-weight: 800 }
.days { display: flex; align-items: center; gap: 6px; height: 50px }
.d-arr { flex: none; width: 34px; height: 34px; border: 1px solid #333; border-radius: 50%; background: #1d1d1d; font-size: 18px; line-height: 1 }
.d-arr:disabled { opacity: .3; cursor: default }
.d-strip { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px }
.d-strip a { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; height: 40px; padding: 0 10px; border-radius: 12px; background: #1d1d1d; border: 1px solid #2a2a2a; color: var(--dim); font-size: 11px; line-height: 1.15; transition: background .2s, color .2s, border-color .2s }
.d-strip a b { font-size: 14px; color: #e8e8e8; font-weight: 800 }
.d-strip a.on { background: var(--blue); border-color: var(--blue); color: #e7ecff }
.d-strip a.on b { color: #fff }

/* ── 머리 그림(오로라) ── */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; border-bottom: 1px solid #1f1f1f }
.aurora { position: absolute; inset: -30% -10% auto; height: 160%; pointer-events: none; filter: blur(60px); opacity: .55 }
.aurora i { position: absolute; width: 46%; height: 60%; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s var(--ease) infinite alternate }
.aurora i:nth-child(1) { left: 2%; top: 8%; background: radial-gradient(circle, #3b5bff 0, transparent 65%) }
.aurora i:nth-child(2) { left: 40%; top: 0; background: radial-gradient(circle, #8a4dff 0, transparent 65%); animation-duration: 23s; animation-delay: -6s }
.aurora i:nth-child(3) { right: 0; top: 24%; background: radial-gradient(circle, #00b3a4 0, transparent 65%); animation-duration: 27s; animation-delay: -11s }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1) } 50% { transform: translate3d(6%, 8%, 0) scale(1.12) } 100% { transform: translate3d(-5%, -4%, 0) scale(.95) } }
.hero-in { position: relative }
.kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--sub); font-size: 14px; font-weight: 700 }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 90, 74, .6); animation: ping 2s infinite }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 74, .55) } 70% { box-shadow: 0 0 0 10px rgba(255, 90, 74, 0) } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 74, 0) } }
.h-title { margin: 0; max-width: 880px; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.22; font-weight: 900; letter-spacing: -.035em }
.h-title .wd { display: inline-block; opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards }
.h-sub { max-width: 760px; margin: 16px 0 0; color: var(--sub); font-size: 17px; line-height: 1.7 }
.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 26px; max-width: 640px }
.toc a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 14px; font-weight: 700; color: #e6e6e6; white-space: nowrap; overflow: hidden; transition: background .2s }
.toc a:hover { background: rgba(79, 123, 255, .25) }
.toc a em { font-style: normal; color: var(--blue2); font-weight: 900 }
@keyframes rise { to { opacity: 1; transform: none } }

/* ── 절 ── */
.sec { padding: 52px 0 8px }
.sh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 20px; font-size: 24px; font-weight: 900; letter-spacing: -.03em }
.sh em { font-style: normal; font-size: 13px; color: var(--blue2); font-weight: 900; letter-spacing: .06em; padding: 3px 8px; border: 1px solid rgba(125, 157, 255, .4); border-radius: 8px }
.sh small { font-size: 13px; color: var(--dim); font-weight: 600; letter-spacing: 0 }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease) }
.rv.in { opacity: 1; transform: none }

/* 앞으로 바뀌는 것 */
.life { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px }
.lf { position: relative; padding: 20px 20px 18px; border-radius: var(--r); background: linear-gradient(160deg, #222 0, #1b1b1b 100%); border: 1px solid var(--line); overflow: hidden }
.lf::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--c, var(--blue)) }
.lf .ar { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--c, var(--blue2)) }
.lf p { margin: 8px 0 12px; font-size: 17px; line-height: 1.55; font-weight: 700; letter-spacing: -.02em }
.lf .meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim) }
.odds { display: inline-flex; gap: 3px }
.odds i { width: 16px; height: 6px; border-radius: 3px; background: #333 }
.odds.h i, .odds.m i:nth-child(-n+2), .odds.l i:first-child { background: var(--c, var(--blue)) }

/* 검색어 */
.trends { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; counter-reset: tr }
.tr { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s }
.tr:hover { border-color: #3d3d3d; background: var(--card2) }
.tr:not(.open):active { transform: scale(.98) }
.tr { align-self: start }
.tr .ex { flex-basis: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease) }
.tr.open .ex { grid-template-rows: 1fr }
.tr .ex-in { min-height: 0; overflow: hidden; padding-left: 38px; cursor: default }
.tr .ex p { margin: 10px 0 12px; font-size: 14.5px; line-height: 1.7; color: #dcdcdc; opacity: 0; transition: opacity .25s }
.tr.open .ex p { opacity: 1; transition-delay: .08s }
.tr .ex .more { width: 100%; height: 44px; margin-bottom: 4px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; font-size: 14.5px; cursor: pointer }
@media (prefers-reduced-motion: reduce) { .tr .ex, .tr .ex p { transition: none } }
.tr.sel { border-color: var(--blue); background: #1d2236 }
.tr .rk { flex: none; width: 26px; font-size: 20px; font-weight: 900; color: var(--blue2); text-align: center; font-variant-numeric: tabular-nums }
.tr:nth-child(n+4) .rk { color: #9a9a9a }
.tr .th { flex: none; width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #2a2a2a }
.tr .tx { min-width: 0; flex: 1 }
.tr .kw { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tr .sm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; color: var(--dim); line-height: 1.45 }
.tr .vol { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--mute); font-weight: 700 }
.tr .cat { display: inline-block; margin-right: 4px; font-size: 11px; color: var(--gold); font-weight: 800 }

/* 말풍선 */
.bubble { position: fixed; z-index: 50; width: min(340px, calc(100vw - 24px)); padding: 0; border-radius: 18px; background: #262626; border: 1px solid #3a3a3a; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); overflow: hidden; animation: pop .22s var(--ease) }
.bubble img { width: 100%; height: 170px; object-fit: cover; background: #2f2f2f }
.bubble .bb { padding: 14px 16px 16px }
.bubble b { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.02em }
.bubble p { margin: 6px 0 12px; font-size: 14px; color: var(--sub); line-height: 1.6 }
.bubble .more { width: 100%; height: 40px; border: 0; border-radius: 12px; background: var(--blue); font-weight: 800; font-size: 14px }
.bubble::after { content: ""; position: absolute; left: var(--tip, 50%); top: -7px; width: 12px; height: 12px; background: #262626; border-left: 1px solid #3a3a3a; border-top: 1px solid #3a3a3a; transform: translateX(-50%) rotate(45deg) }
.bubble.up::after { top: auto; bottom: -7px; transform: translateX(-50%) rotate(225deg) }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96) } to { opacity: 1; transform: none } }

/* 모달(큰 창) */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow-y: auto; animation: fade .2s ease }
.m-in { width: min(760px, 100%); margin: 0 auto; min-height: 100%; background: #171717; animation: slideUp .32s var(--ease) }
.m-hero { position: relative; height: min(46vh, 360px); background: #222 center/cover no-repeat }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #171717 100%) }
.m-body { position: relative; padding: 0 22px 60px; margin-top: -70px }
.m-body .cat { color: var(--gold); font-size: 13px; font-weight: 800 }
.m-body h3 { margin: 6px 0 12px; font-size: 28px; line-height: 1.3; font-weight: 900; letter-spacing: -.03em }
.m-body .lead { font-size: 17px; line-height: 1.75; color: #e8e8e8 }
.m-arts { display: grid; gap: 10px; margin-top: 22px }
.m-art { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: #222; border: 1px solid #2e2e2e }
.m-art img { width: 84px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: #2c2c2c }
.m-art b { display: block; font-size: 14.5px; line-height: 1.45; font-weight: 700 }
.m-art small { color: var(--dim); font-size: 12px }
/* 닫기·별표는 엄지 닿는 아래 오른쪽(재민 12-05) */
.m-bar { position: fixed; right: max(14px, calc((100vw - 760px) / 2 + 14px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 61; display: flex; gap: 10px; align-items: center }
.m-x { height: 60px; min-width: 112px; padding: 0 24px; border: 0; border-radius: 30px; background: #f2f2f2; color: #111; font-size: 18px; font-weight: 900; box-shadow: 0 10px 30px rgba(0, 0, 0, .5) }
.m-x:active { transform: scale(.97) }
.m-star { height: 60px; padding: 0 18px 0 14px; border: 1px solid #4a4a4a; border-radius: 30px; background: rgba(30, 30, 30, .92); color: var(--ink); font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px) }
.m-star .st { font-size: 24px; line-height: 1; color: var(--gold) }
.m-star.on { background: var(--gold); border-color: var(--gold); color: #1a1406 }
.m-star.on .st { color: #1a1406 }
.m-star[hidden] { display: none }
.m-star:disabled { opacity: .6 }
.m-body { padding-bottom: 110px }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); transform: translateX(-50%); z-index: 70; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 14px; background: #f2f2f2; color: #111; font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .45) }
.toast[hidden] { display: none }
/* 추적 중인 관심 이슈 */
.trk { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px }
.tk { padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid rgba(233, 185, 78, .35); cursor: pointer }
.tk:hover { border-color: var(--gold) }
.tk-cat { font-size: 12px; font-weight: 800; color: var(--gold) }
.tk h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 900; letter-spacing: -.02em }
.tk-today { margin: 0; font-size: 14px; line-height: 1.6; color: var(--sub) }
.tk-dig { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.tk-n { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--blue2) }
.m-sec { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #1f1f1f; border: 1px solid #2a2a2a }
.m-sec dt { font-size: 12px; font-weight: 800; color: var(--blue2) }
.m-sec dd { margin: 4px 0 12px; font-size: 15px; line-height: 1.7; color: #e4e4e4 }
.m-sec dd:last-child { margin-bottom: 0 }
@keyframes fade { from { opacity: 0 } }
@keyframes slideUp { from { transform: translateY(40px); opacity: .4 } }

/* 뉴스 이면 */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px }
.nw { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: transform .25s var(--ease), border-color .2s }
.nw:hover { transform: translateY(-3px); border-color: #3c3c3c }
.nw .pic { position: relative; height: 180px; background: #262626 center/cover no-repeat }
.nw .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(32, 32, 32, .95) 100%) }
.nw .tag { position: absolute; z-index: 1; left: 12px; top: 12px; padding: 3px 9px; border-radius: 8px; background: rgba(0, 0, 0, .6); font-size: 12px; font-weight: 800 }
.nw .bd { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 }
.nw h3 { margin: -18px 0 0; position: relative; z-index: 1; font-size: 18px; line-height: 1.4; font-weight: 800; letter-spacing: -.02em }
.nw .bh { font-size: 14px; color: var(--sub); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden }
.nw .lc { margin-top: auto; padding: 10px 12px; border-radius: 12px; background: rgba(79, 123, 255, .1); border: 1px solid rgba(79, 123, 255, .25); font-size: 13.5px; line-height: 1.55 }
.nw .lc b { color: var(--blue2); font-size: 12px; display: block }

/* 시세 */
.mk-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px }
.mk-tabs button { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #333; background: #1d1d1d; font-size: 13.5px; font-weight: 700; color: #ddd; transition: background .2s, color .2s }
.mk-tabs button.on { background: #fff; color: #111; border-color: #fff }
.mk { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px }
.mc { min-width: 0; padding: 18px 18px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line) }
.mc .top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap }
.mc .nm { font-size: 16px; font-weight: 800 }
.mc .px { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em }
.mc .ch { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums }
.up { color: var(--up) } .dn { color: var(--down) } .fl { color: var(--dim) }
.mc .tilt { margin-left: auto; padding: 2px 9px; border-radius: 9px; font-size: 12px; font-weight: 800; background: #2b2b2b }
.mc svg { display: block; width: 100%; height: 150px; margin: 10px 0 6px; overflow: visible }
.mc .ln { fill: none; stroke: #e8e8e8; stroke-width: 1.8; stroke-linejoin: round }
.mc .mid { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 4 4 }
.mc .b80 { fill: rgba(233, 185, 78, .12) } .mc .b50 { fill: rgba(233, 185, 78, .26) }
.mc .now { stroke: #555; stroke-dasharray: 2 3 }
.mc .fan { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform 1.2s var(--ease) .9s }
.mc.in .fan { transform: none }
.mc .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.3s var(--ease) }
.mc.in .draw { stroke-dashoffset: 0 }
.hz { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 4px }
.hz div { padding: 7px 4px; border-radius: 10px; background: #1a1a1a; text-align: center }
.hz small { display: block; font-size: 11px; color: var(--dim); font-weight: 700 }
.hz b { display: block; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums }
.hz i { display: block; font-style: normal; font-size: 10.5px; color: var(--mute); font-variant-numeric: tabular-nums; line-height: 1.3; overflow-wrap: anywhere }
.mc .vw { margin: 10px 0 0; font-size: 13.5px; color: var(--sub); line-height: 1.65 }
.mc .drv { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px }
.mc .drv span { padding: 2px 8px; border-radius: 8px; background: #2a2a2a; font-size: 11.5px; color: #cfcfcf }
.mk-side { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 12px }
.sc { padding: 18px; border-radius: var(--r); background: linear-gradient(160deg, #1f2620 0, #1b1b1b 100%); border: 1px solid var(--line) }
.sc h4 { margin: 0 0 10px; font-size: 16px; font-weight: 800 }
.sc .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #2a2a2a; font-size: 14px }
.sc .row:first-of-type { border-top: 0 }
.sc .row b { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums }
.sc p { margin: 10px 0 0; font-size: 13.5px; color: var(--sub); line-height: 1.65 }
.sc .fcl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px }
.sc .fcl div { padding: 6px; border-radius: 10px; background: #1a1a1a; font-size: 12px; line-height: 1.4 }
.sc .fcl small { display: block; color: var(--dim); font-weight: 700 }
.disc { margin: 12px 0 0; font-size: 12px; color: var(--mute); line-height: 1.6 }

/* 정책 칼럼 */
.col { position: relative; padding: 30px 32px; border-radius: 22px; background: linear-gradient(150deg, #1d2236 0, #18181d 60%); border: 1px solid #2c3352; overflow: hidden }
.col::before { content: "“"; position: absolute; right: 22px; top: -30px; font-size: 180px; font-weight: 900; color: rgba(125, 157, 255, .08); line-height: 1 }
.col .cl { font-size: 12px; font-weight: 800; color: var(--blue2); letter-spacing: .04em }
.col h3 { margin: 8px 0 12px; font-size: 26px; line-height: 1.35; font-weight: 900; letter-spacing: -.03em; max-width: 760px }
.col .ld { font-size: 17px; line-height: 1.75; color: #e8e8e8; font-weight: 600; max-width: 760px }
.col .bd p { font-size: 15.5px; line-height: 1.85; color: #d2d2d2; max-width: 760px; margin: 14px 0 0 }
.col .bd p:first-child::first-letter { font-size: 1.9em; font-weight: 900; color: var(--blue2) }
.pol { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 14px }
.pi { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line) }
.pi .fit { align-self: flex-start; padding: 2px 9px; border-radius: 8px; font-size: 12px; font-weight: 800 }
.fit.ok { background: rgba(47, 212, 139, .15); color: var(--green) } .fit.mid { background: rgba(233, 185, 78, .15); color: var(--gold) } .fit.no { background: #2b2b2b; color: var(--dim) }
.pi b { font-size: 15.5px; line-height: 1.45 }
.pi .mt { font-size: 12.5px; color: var(--dim) }
.pi p { margin: 0; font-size: 13.5px; color: var(--sub); line-height: 1.6 }
.pi a.go { margin-top: auto; font-size: 13px; color: var(--blue2); font-weight: 700 }

/* AI */
.ai-sum { margin: -6px 0 14px; font-size: 16px; color: var(--sub); line-height: 1.7; max-width: 820px }
.ai { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px }
.ac { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s }
.ac img.ap { width: calc(100% + 36px); margin: -18px -18px 4px; height: 160px; object-fit: cover; border-radius: var(--r) var(--r) 0 0; background: #262626 }
.ac h3 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 800; letter-spacing: -.02em }
.ac p { margin: 0; font-size: 14px; color: var(--sub); line-height: 1.65 }
.ac .fa { padding: 10px 12px; border-radius: 12px; background: #1a1a1a; font-size: 13.5px; line-height: 1.6 }
.ac .fa b { display: block; font-size: 12px; color: var(--green) }
.ac .us { padding: 10px 12px; border-radius: 12px; background: rgba(233, 185, 78, .08); border: 1px solid rgba(233, 185, 78, .25); font-size: 13.5px; line-height: 1.6 }
.ac .us b { display: block; font-size: 12px; color: var(--gold) }
.ac .ft { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; color: var(--dim) }
.ac .ft a { margin-left: auto; color: var(--blue2); font-weight: 700 }
.ac .pick { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px dashed #4a4a4a; font-size: 13.5px; font-weight: 800; cursor: pointer }
.ac .pick input { width: 18px; height: 18px; accent-color: var(--gold) }
.ac.on { border-color: var(--gold); background: #24211a }
.apply-bar { position: fixed; z-index: 40; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: min(620px, calc(100vw - 24px)); padding: 8px 8px 8px 16px; border-radius: 18px; background: #2a2618; border: 1px solid rgba(233, 185, 78, .5); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); animation: pop .25s var(--ease) }
.apply-bar b { flex: none; color: var(--gold); font-size: 14px }
.apply-bar input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid #4a4433; background: #1d1b14; color: #fff; font: inherit; font-size: 14px; outline: 0 }
.apply-bar button { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--gold); color: #1a1406; font-weight: 900 }
.apply-bar button:disabled { opacity: .5 }

.src { padding: 14px 18px; border-radius: 14px; background: #181818; border: 1px solid #262626; font-size: 13px; color: var(--dim) }
.src summary { cursor: pointer; font-weight: 700; color: #bbb }
.src ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.8 }
.src a { color: #9fb4ff }
.foot { padding: 50px 0 calc(env(safe-area-inset-bottom, 0px) + 90px); font-size: 12.5px; color: var(--mute); line-height: 1.8 }
.foot a { color: #9a9a9a }
.empty { padding: 60px 0; text-align: center; color: var(--dim) }

@media (max-width: 720px) {
  .hd-top { gap: 16px; height: 54px }
  .logo b { display: none }
  .gnb { gap: 14px; font-size: 15px }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none }
  .hero { padding: 38px 0 28px }
  .h-sub { font-size: 15.5px }
  .sec { padding-top: 40px }
  .sh { font-size: 21px }
  .life, .news, .mk, .mk-side, .pol, .ai, .trends { grid-template-columns: 1fr }
  .col { padding: 22px 18px }
  .col h3 { font-size: 22px }
  .hz i { font-size: 9.5px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
  .rv, .h-title .wd { opacity: 1; transform: none }
  .mc .fan { transform: none } .mc .draw { stroke-dashoffset: 0 }
}
