/* NOJP.INFO v2 · 새 화면 스타일
   강조색은 푸른 계열만 사용 (붉은색·원형 태양 모티프 배제) */

:root {
    --night: #0b1220;
    --night-2: #131c33;
    --night-line: #26324f;
    --ice: #8fb0ff;
    --ice-soft: #c9d8ff;
    --on-night: #e9eef8;
    --on-night-sub: #a9b6cf;

    --bg: #f3f6fb;
    --surface: #ffffff;
    --ink: #0b1630;
    --sub: #4f5a6b;
    --line: #e1e7f0;
    --cobalt: #0047ab;
    --cobalt-2: #1e5fae;
    --cobalt-soft: #e7effb;
    --navy: #0b1f4d;
    --sky: #82c8e5;
    --warn: #8a4b00;
    --warn-soft: #fff3d6;

    --radius: 18px;
    --shadow: 0 1px 2px rgba(11,22,48,.04), 0 8px 28px rgba(11,22,48,.07);
    --wrap: 1180px;
    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--cobalt); }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ── 로고 ── */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--on-night); text-decoration: none; font-weight: 900; letter-spacing: .03em; }
.logo-img { height: 25px; width: auto; display: block; flex: 0 0 auto; }
.logo-text { font-size: 15px; }

/* ── 상단바 ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11,18,32,.92); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--night-line); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; }
.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a { color: var(--on-night-sub); text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 99px; }
.top-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.top-day { display: inline-flex; align-items: center; gap: 7px; color: var(--on-night); font-size: 13px; font-variant-numeric: tabular-nums; border: 1px solid var(--night-line); border-radius: 99px; padding: 5px 12px; white-space: nowrap; }
.top-day .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 0 rgba(143,176,255,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(143,176,255,0); } 100% { box-shadow: 0 0 0 0 rgba(143,176,255,0); } }
@media (max-width: 860px) { .top-nav { display: none; } .top-day { margin-left: auto; } }
.logo { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 400px) { .top-in { gap: 10px; padding: 10px 14px; } .top-day { font-size: 12px; padding: 4px 9px; } .logo-text { font-size: 14px; } }
@media (max-width: 330px) { .top-day { display: none; } }
.beta-bar { background: var(--warn-soft); color: var(--warn); font-size: 13px; text-align: center; padding: 7px 16px; }
.beta-bar a { color: var(--warn); font-weight: 700; }

/* ── 히어로 (어두운 첫 화면) ── */
.hero { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 80% 20%, rgba(47,91,211,.28), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(130,200,229,.10), transparent 70%); pointer-events: none; }
.hero-mark { position: absolute; right: -1vw; top: 30px; font-size: clamp(150px, 26vw, 400px); font-weight: 900; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(143,176,255,.32); user-select: none; pointer-events: none; transform: translateY(var(--sy, 0)); }
.hero-mark::after { content: ""; position: absolute; left: -4%; right: -4%; top: 46%; height: .065em; background: var(--cobalt-2); transform: scaleX(0); transform-origin: left; animation: strike .9s .5s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes strike { to { transform: scaleX(1); } }
.hero-in { position: relative; }
.hero h1 { margin: 0; font-size: clamp(42px, 7.6vw, 104px); line-height: 1.02; letter-spacing: -.045em; font-weight: 900; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s cubic-bezier(.2,.7,.1,1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; color: var(--ice); }
@keyframes rise { to { transform: none; } }
.hero-lead { color: var(--on-night-sub); font-size: clamp(15px, 1.6vw, 18px); max-width: 560px; margin: 22px 0 30px; }

/* 검색 팔레트 */
.palette { position: relative; max-width: 760px; }
.pbox { display: flex; align-items: center; gap: 12px; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 6px 8px 6px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.35); border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.pbox:focus-within { border-color: var(--sky); box-shadow: 0 0 0 6px rgba(130,200,229,.22), 0 18px 50px rgba(0,0,0,.35); }
.pbox svg { flex: 0 0 auto; color: var(--sub); }
.pbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 19px var(--font); padding: 14px 0; color: var(--ink); }
.pbox input::placeholder { color: #7d8797; font-weight: 500; }
.pbox input::-webkit-search-cancel-button { display: none; }
.pbox kbd { font: 600 12px var(--font); color: var(--sub); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
@media (max-width: 520px) { .pbox kbd { display: none; } .pbox input { font-size: 17px; } }
.drop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(11,22,48,.28); padding: 8px; z-index: 30; max-height: min(440px, 60vh); overflow-y: auto; display: none; }
.drop.open { display: block; animation: drop .16s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.opt[aria-selected="true"] { background: var(--cobalt-soft); }
.opt-name { font-weight: 700; }
.opt-name mark { background: #ffe58a; color: inherit; border-radius: 3px; padding: 0 1px; }
.opt-sub { margin-left: auto; font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.drop-empty { padding: 16px; color: var(--sub); font-size: 15px; line-height: 1.6; }
.drop-foot { display: flex; gap: 14px; padding: 9px 12px 3px; border-top: 1px solid var(--line); margin-top: 6px; font-size: 12px; color: var(--sub); }
@media (hover: none) { .drop-foot { display: none; } }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick button { background: rgba(255,255,255,.06); border: 1px solid var(--night-line); color: var(--on-night); border-radius: 99px; padding: 7px 14px; font-size: 14px; }
.quick button:hover { border-color: var(--ice); color: #fff; }
.quick span { color: var(--on-night-sub); font-size: 13px; align-self: center; margin-right: 2px; }

/* 판정 카드 */
.verdict { max-width: 760px; margin-top: 18px; background: var(--surface); color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.3); display: none; }
.verdict.show { display: block; animation: drop .25s ease; }
.v-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fff, #f1f5fc); }
/* 브랜드 분야 아이콘 칸 (색은 불매 수준: .lv-* 배경 재사용) */
.b-ico { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px; display: inline-grid; place-items: center; color: #fff; font-size: 23px; line-height: 1; }
.b-ico.lg { width: 66px; height: 66px; border-radius: 18px; font-size: 30px; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.b-ico.sm { width: 40px; height: 40px; border-radius: 11px; font-size: 18px; }
.b-ico.xs { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
.b-ico.lv-alt { background: var(--cobalt-soft); color: var(--navy); }
.v-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.v-sub { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--sub); }
.v-body { padding: 18px 22px 22px; display: grid; gap: 16px; }
.v-row h3 { margin: 0 0 7px; font-size: 13px; color: var(--sub); font-weight: 600; }
.v-row p { margin: 0; }
.v-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 공용 배지·칩·버튼 */
.lv { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; border-radius: 6px; padding: 2px 8px; line-height: 1.6; white-space: nowrap; }
.lv-war-criminal { background: #111827; }
.lv-history-distortion { background: #4c2a85; }
.lv-japanese { background: var(--cobalt); }
.lv-japan-capital { background: #0f6b63; }
.lv-controversy { background: var(--warn); }
.lv-alt { background: var(--cobalt-soft); color: var(--navy); }
.rv { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 2px 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; border-radius: 10px; padding: 6px 11px; font-size: 14px; transition: transform .15s, border-color .15s; }
.chip:hover { transform: translateY(-2px); border-color: var(--ink); }
.chip.alt { background: var(--cobalt-soft); border-color: transparent; color: var(--navy); font-weight: 600; }
.chip.alt:hover { border-color: var(--cobalt); }
.chip small { color: var(--sub); font-size: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: 14px; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn.primary:hover { background: var(--navy); }
.link-btn { background: none; border: 0; padding: 0; text-align: left; }

/* 지표 */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -30px; position: relative; z-index: 2; }
.kpi { background: var(--surface); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--sub); font-size: 14px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* 섹션 */
.sec { padding: 80px 0 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-h h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.03em; }
.sec-h p { margin: 6px 0 0; color: var(--sub); }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; color: var(--cobalt); text-transform: uppercase; margin-bottom: 8px; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.1,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* 국경일 배너 */
.flagday { display: flex; align-items: center; gap: 18px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; margin-top: 28px; border-top: 4px solid var(--cobalt-2); }
.flagday.mourning { border-top-color: #4b5563; }
.flagday img { width: 70px; height: auto; flex: 0 0 auto; }
.flagday.mourning img { filter: grayscale(.4); }
.flagday b { font-size: 19px; }
.flagday .tag { font-size: 12px; font-weight: 700; color: #fff; background: var(--cobalt-2); border-radius: 99px; padding: 2px 9px; margin-right: 6px; }
.flagday p { margin: 4px 0 0; color: var(--sub); font-size: 14.5px; }

/* 장바구니 검사기 */
.checker { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .checker { grid-template-columns: 1fr; } }
.checker textarea { width: 100%; min-height: 230px; border: 1.5px dashed #c6d1e1; border-radius: 12px; padding: 14px; font: 500 15px/1.8 var(--font); resize: vertical; outline: none; color: var(--ink); }
.checker textarea:focus { border-color: var(--cobalt); border-style: solid; }
.c-sum { display: flex; gap: 10px; margin-bottom: 12px; }
.c-sum div { flex: 1; border-radius: 12px; padding: 12px 14px; background: var(--bg); font-size: 14px; }
.c-sum b { display: block; font-size: 26px; }
.c-sum .bad { background: var(--warn-soft); color: var(--warn); }
.c-sum .ok { background: var(--cobalt-soft); color: var(--navy); }
.c-list { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.c-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg); font-size: 15px; animation: drop .22s ease both; }
.c-item.bad { background: var(--warn-soft); }
.c-item a { margin-left: auto; font-size: 13px; text-align: right; }
.c-item small { margin-left: auto; color: var(--sub); font-size: 12.5px; }
.c-item .dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b8; flex: 0 0 auto; }
.c-item.bad .dot { background: var(--warn); }
.c-note { font-size: 13px; color: var(--sub); margin: 10px 0 0; }

/* 분야 브라우저 */
.browse { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .browse { grid-template-columns: 1fr; } .rail { display: none !important; } }
.rail { position: sticky; top: 76px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; max-height: calc(100vh - 100px); overflow-y: auto; }
.rail a { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 8px 11px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14px; }
.rail a small { color: var(--sub); font-variant-numeric: tabular-nums; }
.rail a i { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rail a i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--sky); }
.rail a.on { background: var(--cobalt-soft); color: var(--navy); font-weight: 700; }
.rail a.on i::after { background: var(--cobalt); }
.mchips { display: none; gap: 8px; overflow-x: auto; padding: 8px 0 12px; scrollbar-width: none; position: sticky; top: 57px; z-index: 10; background: var(--bg); }
.mchips::-webkit-scrollbar { display: none; }
@media (max-width: 960px) { .mchips { display: flex; } }
.mchips a { flex: 0 0 auto; text-decoration: none; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 99px; padding: 7px 13px; font-size: 14px; }
.mchips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 14px; }
.cat h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cat h3 small { font-size: 13px; color: var(--sub); font-weight: 500; }
.tabs { display: inline-flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 3px; margin: 14px 0; }
.tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--sub); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cat-empty { color: var(--sub); font-size: 14px; }
.note-card { background: var(--cobalt-soft); color: var(--navy); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; }
.note-card b { display: block; font-size: 17px; margin-bottom: 4px; }

/* 초성 색인 */
.jamo { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.jamo button { min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; font-weight: 800; color: var(--ink); border-radius: 12px; transition: background .2s, color .2s; }
.jamo button:hover { border-color: var(--ink); }
.jamo button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.jamo-out { columns: 4 190px; column-gap: 26px; }
.jamo-out a { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--ink); font-size: 15px; animation: drop .2s ease both; }
.jamo-out a:hover b { color: var(--cobalt); }
.jamo-out small { color: var(--sub); font-size: 12.5px; white-space: nowrap; }

/* 기록: 연표·명언 (어두운 구간) */
.memory { background: var(--night); color: var(--on-night); margin-top: 90px; padding: 80px 0; }
.memory .sec-h h2 { color: #fff; }
.memory .sec-h p, .memory .eyebrow { color: var(--on-night-sub); }
.memory .eyebrow { color: var(--ice); }
.timeline { position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 1px; background: var(--night-line); }
.timeline .fill { position: absolute; left: 118px; top: 8px; width: 1px; background: var(--ice); height: var(--h, 0); }
.ev { display: grid; grid-template-columns: 118px 1fr; gap: 0 30px; padding: 14px 0; position: relative; opacity: .4; transition: opacity .4s; }
.ev.on { opacity: 1; }
.ev::before { content: ""; position: absolute; left: 113px; top: 21px; width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg); background: var(--night); border: 2px solid var(--night-line); transition: all .3s; }
.ev.on::before { background: var(--ice); border-color: var(--ice); }
.ev time { font-weight: 800; font-variant-numeric: tabular-nums; padding-top: 2px; }
.ev h3 { margin: 0 0 4px; font-size: 18px; color: #fff; }
.ev p { margin: 0; color: var(--on-night-sub); font-size: 15px; }
@media (max-width: 600px) { .timeline::before, .timeline .fill { left: 7px; } .ev { grid-template-columns: 1fr; padding-left: 30px; } .ev::before { left: 2px; } }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; margin-top: 56px; scrollbar-color: var(--night-line) transparent; }
.qc { scroll-snap-align: start; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 18px; margin: 0; display: grid; gap: 14px; align-content: start; transition: transform .3s, border-color .3s; }
.qc:hover { transform: translateY(-4px); border-color: var(--ice); }
.qc img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; filter: grayscale(1) contrast(1.05); }
.qc blockquote { margin: 0; font-size: 16px; line-height: 1.75; color: var(--on-night); }
.qc figcaption { color: var(--ice); font-weight: 700; font-size: 14px; }

/* 공지 */
.news a { display: grid; grid-template-columns: 110px auto 1fr; gap: 14px; align-items: baseline; padding: 15px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news a:hover .n-title { color: var(--cobalt); }
.n-date { color: var(--sub); font-size: 14px; font-variant-numeric: tabular-nums; }
.n-cat { font-size: 12px; color: var(--navy); background: var(--cobalt-soft); border-radius: 6px; padding: 2px 8px; }
.n-title { font-weight: 600; }
@media (max-width: 600px) { .news a { grid-template-columns: auto 1fr; } .n-title { grid-column: 1 / -1; } }

/* 푸터 */
.foot { background: var(--night); color: var(--on-night-sub); margin-top: 90px; padding: 56px 0 30px; font-size: 14px; }
.memory + .foot { margin-top: 0; border-top: 1px solid var(--night-line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.foot-brand p { margin: 14px 0 0; line-height: 1.8; }
.foot-col h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.foot-col a, .foot-col .link-btn { display: block; color: var(--on-night-sub); text-decoration: none; padding: 4px 0; font-size: 14px; }
.foot-col a:hover, .foot-col .link-btn:hover { color: #fff; }
.foot-copy { max-width: var(--wrap); margin: 36px auto 0; padding: 18px 20px 0; border-top: 1px solid var(--night-line); font-size: 13px; }

/* 이용안내 다이얼로그 */
.policy { max-width: 620px; width: calc(100% - 32px); border: 0; border-radius: var(--radius); padding: 26px 26px 20px; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.policy::backdrop { background: rgba(11,18,32,.6); }
.policy h2 { margin: 0 0 12px; font-size: 22px; }
.policy h3 { font-size: 15px; margin: 18px 0 6px; }
.policy ul { margin: 0; padding-left: 20px; color: var(--sub); font-size: 14.5px; }
.policy p { color: var(--sub); font-size: 14.5px; margin: 0; }
.policy-x { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 26px; color: var(--sub); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: all .3s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 브랜드 상세 ── */
.bp-hero { background: var(--night); color: var(--on-night); padding: 44px 0 64px; position: relative; overflow: hidden; }
.bp-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 85% 10%, rgba(47,91,211,.25), transparent 70%); }
.bp-hero .wrap { position: relative; }
.crumb { font-size: 13.5px; color: var(--on-night-sub); margin-bottom: 22px; }
.crumb a { color: var(--on-night-sub); text-decoration: none; }
.crumb a:hover { color: #fff; }
.bp-head { display: flex; align-items: center; gap: 18px; }
.bp-head h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.035em; line-height: 1.1; color: #fff; }
.bp-alias { color: var(--on-night-sub); margin-top: 6px; }
.bp-q { margin: 26px 0 0; font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: var(--ice-soft); }
.bp-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: -34px; position: relative; }
@media (max-width: 860px) { .bp-grid { grid-template-columns: 1fr; } }
.bp-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; }
.bp-card h2 { font-size: 15px; color: var(--sub); margin: 0 0 10px; font-weight: 700; }
.bp-dl { display: grid; grid-template-columns: 90px 1fr; gap: 10px 14px; margin: 0; }
.bp-dl dt { color: var(--sub); font-size: 14px; }
.bp-dl dd { margin: 0; }
.bp-src a { display: block; padding: 4px 0; font-size: 14.5px; }
.faq h3 { font-size: 16px; margin: 0 0 6px; }
.faq p { margin: 0 0 14px; color: var(--sub); }

/* ── 바코드 스캐너 ── */
.scan-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--cobalt); color: #fff; border-radius: 14px; padding: 11px 14px; font-weight: 700; font-size: 14px; }
.scan-btn:hover { background: var(--navy); }
@media (max-width: 520px) { .scan-btn span { display: none; } }
.scanner { width: 100%; max-width: 560px; height: 100%; max-height: 100dvh; margin: auto; padding: 0; border: 0; background: #05070d; color: #fff; overflow: hidden; }
@media (min-width: 600px) { .scanner { height: min(860px, 94dvh); border-radius: 22px; } }
.scanner::backdrop { background: rgba(5,7,13,.75); }
.scanner[open] { display: grid; grid-template-rows: auto minmax(180px, 1fr) auto; }
.sc-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 800; }
.sc-top button { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 12px; padding: 8px 14px; font-weight: 600; }
.sc-view { position: relative; overflow: hidden; display: grid; place-items: center; background: #0b1220; }
.sc-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-frame { position: relative; width: min(78%, 400px); aspect-ratio: 16 / 9; }
.sc-frame i { position: absolute; width: 30px; height: 30px; border: 4px solid #fff; }
.sc-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.sc-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.sc-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.sc-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.sc-laser { position: absolute; left: 6%; right: 6%; height: 2px; background: #5aa2ff; box-shadow: 0 0 14px 2px rgba(90,162,255,.75); animation: laser 2s ease-in-out infinite; }
@keyframes laser { 0%, 100% { top: 14%; } 50% { top: 86%; } }
.sc-frame.hit i { border-color: #5aa2ff; }
.sc-frame.hit .sc-laser { animation: none; top: 50%; }
.sc-msg { position: absolute; left: 14px; right: 14px; bottom: 14px; text-align: center; font-size: 14px; color: #d3dceb; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.sc-start { position: absolute; }
.sc-bottom { background: #0e1422; border-radius: 22px 22px 0 0; padding: 14px 16px 20px; max-height: 62dvh; overflow-y: auto; }
.sc-tools { display: flex; gap: 8px; }
.sc-tools label, .sc-tools .sc-tool { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: #1a2234; border: 1px solid #2a3550; color: #e6ecf5; border-radius: 12px; padding: 0 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.sc-tools form { flex: 1; display: flex; gap: 6px; min-width: 0; }
.sc-tools input[type="text"] { flex: 1; min-width: 0; background: #1a2234; border: 1px solid #2a3550; color: #fff; border-radius: 12px; padding: 11px 12px; font: 600 16px var(--font); letter-spacing: .05em; outline: none; }
.sc-tools input[type="text"]:focus { border-color: #5aa2ff; }
.sc-tools button[type="submit"] { background: var(--cobalt); color: #fff; border: 0; border-radius: 12px; padding: 0 14px; font-weight: 700; }
.sc-note { font-size: 12.5px; color: #a9bbd6; margin: 10px 2px 0; line-height: 1.5; }
.sr { background: #fff; color: var(--ink); border-radius: 18px; padding: 18px; margin-top: 12px; animation: drop .25s ease; }
.sr-head { display: flex; gap: 12px; align-items: flex-start; }
.sr-badge { flex: 0 0 auto; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 5px 9px; margin-top: 3px; }
.sr-badge.sure { background: var(--ink); color: #fff; }
.sr-badge.guess { background: var(--warn-soft); color: var(--warn); }
.sr-badge.clear { background: var(--cobalt-soft); color: var(--navy); }
.sr-badge.none { background: var(--bg); color: var(--sub); }
.sr-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.sr-sub { font-size: 13.5px; color: var(--sub); margin-top: 3px; }
.sr-sub a { font-weight: 700; }
.steps { list-style: none; padding: 12px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.steps li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--sub); opacity: .35; transition: opacity .25s; }
.steps li.done { opacity: 1; }
.steps li .st { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--bg); flex: 0 0 auto; }
.steps li.hit { color: var(--ink); font-weight: 700; }
.steps li.hit .st { background: var(--cobalt); color: #fff; }
.sr-block { margin-top: 14px; }
.sr-block h3 { margin: 0 0 7px; font-size: 13px; color: var(--sub); font-weight: 600; }
.sr-block p { margin: 0; font-size: 14.5px; }
.report { display: grid; gap: 8px; }
.report input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 500 15px var(--font); outline: none; width: 100%; color: var(--ink); }
.report input:focus { border-color: var(--cobalt); }
.report .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.report button { border: 0; background: var(--cobalt); color: #fff; border-radius: 10px; padding: 11px; font-weight: 700; }
.report button:disabled { opacity: .6; }
.done-msg { background: var(--cobalt-soft); color: var(--navy); border-radius: 10px; padding: 12px; font-size: 14px; font-weight: 600; }
.err-msg { color: var(--warn); font-size: 13.5px; }
.scan-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.scan-cta p { margin: 0; flex: 1 1 280px; color: var(--sub); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .hero h1 .line > span { transform: none; }
    .hero-mark::after { transform: none; }
    .reveal { opacity: 1; transform: none; }
}
