/*
 * 디자인: 단순하고 꽉 찬 느낌.
 * 밝은 바탕 + 먹색 글자 + 강조색(노랑) 하나. 그라데이션·그림자·장식선 없이,
 * 큰 글자와 색 면(첫 화면 머리, 마지막 권유)으로 화면을 채운다.
 */
:root {
	--bg: #f6f5f1;
	--surface: #ffffff;
	--ink: #141414;
	--muted: #67645d;
	--line: #e4e1d9;
	--cell: #efede6;
	--accent: #ffd43b;
	--accent-ink: #141414;
	--accent-soft: #fff4c4;
	--ok: #1f8a4c;
	--bad: #d23b2a;
	--radius: 16px;
	--wide: 1160px;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", sans-serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #121212;
		--surface: #1c1c1c;
		--ink: #f2f0ea;
		--muted: #a19d94;
		--line: #2e2e2c;
		--cell: #262624;
		--accent-soft: #3a3214;
		--ok: #4fc283;
		--bad: #ff6f5e;
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }

/* 머리말 · 꼬리말 */
.topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	height: 64px; padding-inline: max(20px, calc((100% - var(--wide)) / 2 + 20px));
	background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; white-space: nowrap; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--accent); font-size: 14px; font-weight: 900; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; opacity: .75; }
.nav-link:hover { opacity: 1; }
#lang { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 14px; }

main { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
main[data-view="home"] { max-width: none; padding: 0; }
main[data-view="test"], main[data-view="result"] { max-width: 760px; }

.footer { max-width: var(--wide); margin: 0 auto; padding: 36px 20px 48px; }
.footer p { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 700; opacity: .75; }
.footer-links a:hover { opacity: 1; }

/* 공통 */
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; margin: 20px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { color: var(--muted); font-weight: 800; font-size: 14px; margin: 0 0 10px; }
.eyebrow a { text-decoration: none; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 0 0 28px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--ink); color: var(--bg); border: 0; border-radius: 12px;
	padding: 12px 20px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
	transition: transform .1s, opacity .15s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; cursor: default; }
.btn-lg { padding: 17px 30px; font-size: 1.08rem; border-radius: 14px; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-accent, .btn-light { background: var(--accent); color: var(--accent-ink); }

.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.block { margin: 88px 0; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; letter-spacing: -.03em; margin-bottom: .3em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p { margin: 0; }
.more-link { font-weight: 800; text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* 첫 화면: JS가 그리기 전에 보이는 소개 글 (검색 엔진용, 곧바로 화면으로 바뀐다) */
.seo-intro { max-width: 760px; margin: 48px auto; padding: 0 20px; }
.seo-intro h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; }
.seo-intro p, .seo-intro li { color: var(--muted); }

/* 첫 화면 머리: 노란 면 전체, 왼쪽 제목 · 오른쪽 예제 문제 */
.hero { background: var(--accent); color: var(--accent-ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.kicker { font-weight: 800; font-size: 15px; margin: 0 0 20px; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 900; line-height: 1.04; letter-spacing: -.045em; margin-bottom: .35em; }
.hero .lead { color: inherit; opacity: .8; font-size: 1.22rem; max-width: 26em; margin-bottom: 32px; }
.hero .btn { background: #141414; color: #ffd43b; }
.guest-line { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 14px; }
.guest-line .link-btn { color: inherit; }

.demo { background: #ffffff; color: #141414; border-radius: 22px; padding: 30px 28px 28px; }
.demo-label { font-weight: 800; font-size: 14px; color: #67645d; margin: 0 0 4px; }
.demo-q { font-size: 1.2rem; font-weight: 800; margin: 0 0 20px; }
.demo .seq { justify-content: flex-start; }
.demo .seq span { background: #efede6; }
.demo .seq .q { background: #ffd43b; color: #141414; }
.demo .opt { background: #ffffff; color: #141414; box-shadow: inset 0 0 0 1.5px #e4e1d9; }
.demo button.opt:hover { box-shadow: inset 0 0 0 2px #141414; }
.demo .opt .letter { color: #67645d; }
/* .options의 margin: 0 auto 보다 뒤에 와도 이기도록 .demo를 붙인다 */
.demo .demo-opts { margin: 28px 0 0; max-width: none; }
.demo-msg { font-weight: 700; margin: 18px 0 0; }
.demo-msg:empty { display: none; }
.demo-msg.ok { color: #1f8a4c; }
.demo-msg.bad { color: #d23b2a; }
#demo-cta { margin-top: 14px; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 40px 0 0; gap: 12px; }
.stat-strip li { background: var(--surface); border-radius: var(--radius); padding: 18px 22px; color: var(--muted); font-size: 14px; }
.stat-strip b { display: block; font-size: 1.9rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.mine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 0; }
.mine > span { font-weight: 800; margin-right: 6px; }
.h-item { display: inline-flex; align-items: baseline; gap: 10px; padding: 8px 14px; border-radius: 12px; background: var(--surface); text-decoration: none; }
.h-item:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.h-iq { font-weight: 900; font-size: 1.2rem; font-variant-numeric: tabular-nums; }

/* 결과 예시 + 네 가지 영역 */
.get-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.sample { position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px; text-align: center; }
.sample p { margin: 0; }
.sample .bar-row { text-align: left; }
.sample-tag { position: absolute; top: 18px; left: 18px; padding: 3px 10px; border-radius: 99px; background: var(--cell); color: var(--muted); font-size: 12px; font-weight: 800; }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.area { background: var(--surface); border-radius: var(--radius); padding: 26px; }
.area .ico { width: 30px; height: 30px; margin-bottom: 18px; }
.area h3 { font-size: 1.25rem; font-weight: 900; }
.area p { color: var(--muted); margin: 0; font-size: 15px; }

/* 국기 · 닉네임 */
.flag { display: inline-block; width: 24px; height: 18px; border-radius: 3px; object-fit: cover; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); flex: none; }
.flag-none { box-shadow: none; text-align: center; line-height: 18px; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.player { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }

.nick-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); }
.nick-dialog form { padding: 28px; }
.nick-dialog::backdrop { background: rgba(10, 10, 10, .55); }
.nick-dialog h2 { font-size: 1.45rem; font-weight: 900; margin-bottom: .3em; }
.nick-field { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0 14px; border-radius: 12px; background: var(--cell); box-shadow: inset 0 0 0 2px transparent; }
.nick-field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.nick-field input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.1rem; font-weight: 700; }
.nick-error { min-height: 1.4em; margin: 8px 0 6px; color: var(--bad); font-size: 14px; }
.nick-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* 랭킹 */
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rank-card { min-width: 0; background: var(--surface); border-radius: var(--radius); padding: 22px 24px 12px; }
.rank-card h3 { font-size: 1.15rem; font-weight: 900; margin: 0; }
/* 개인·국가 표의 머리 높이를 같게 해서 두 표의 줄이 나란히 맞게 한다 */
.rank-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 34px; margin-bottom: 10px; }
.tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--cell); }
.tabs button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: grid; grid-template-columns: 30px 1fr 56px; gap: 10px; align-items: center; min-height: 46px; padding: 8px 0; border-top: 1px solid var(--line); }
.rank-list.countries li { grid-template-columns: 30px 1fr 72px 56px; }
.rank-list .r-head { min-height: 0; border-top: 0; padding: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.r-head span:nth-child(n+3), .rank-list .r-sub, .rank-list .r-val { text-align: right; }
.r-pos { font-size: 14px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.top-1 .r-pos, .top-2 .r-pos, .top-3 .r-pos { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cell); color: var(--ink); }
.top-1 .r-pos { background: var(--accent); color: var(--accent-ink); }
.r-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.r-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-sub { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.r-val { font-size: 1.08rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.rank-empty { margin: 0 0 12px; padding: 28px 12px; border-radius: 12px; background: var(--cell); text-align: center; color: var(--muted); }
.rank-note { margin: 16px 0 0; text-align: left; }

/* 읽을거리 카드 */
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.a-grid.three { grid-template-columns: repeat(3, 1fr); }
.a-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s; }
.a-card:hover { transform: translateY(-3px); }
.a-card img { display: block; width: 100%; aspect-ratio: 800 / 420; object-fit: cover; }
.a-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.a-card-body b { font-size: 1.1rem; font-weight: 800; line-height: 1.35; }
.a-card-body span { color: var(--muted); font-size: 14px; }
.a-card-body small { color: var(--muted); font-weight: 700; font-size: 13px; margin-top: auto; padding-top: 6px; }

.faq-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.faq { background: var(--surface); border-radius: var(--radius); padding: 0 24px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 32px 20px 0; color: var(--muted); }

/* 마지막 권유: 검은 면 전체 */
.final { background: #141414; color: #f2f0ea; margin-top: 88px; }
.final-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.final h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; letter-spacing: -.04em; margin-bottom: .25em; }
.final p { margin: 0; color: #a19d94; font-size: 1.1rem; }
.final .rules { margin: 20px 0 0; color: #d6d3cb; font-size: 14px; }
.final .btn { flex: none; }
.rules { margin: 0; padding-left: 1.2em; }
.rules li { margin: 4px 0; }
.rules li::marker { color: var(--accent); }

/* 읽을거리 · 랭킹 페이지 */
.learn-head { margin: 40px 0 32px; }
.learn-head h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); font-weight: 900; letter-spacing: -.045em; margin-bottom: .2em; }
.learn-head .lead { margin: 0; max-width: 36em; }
.prose { max-width: 700px; margin: 40px auto 0; font-size: 17px; line-height: 1.8; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.15; margin-bottom: .35em; }
.prose .lead { margin-bottom: 10px; }
.prose h2 { font-size: 1.5rem; font-weight: 900; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose li { margin: 6px 0; }
.prose em { font-style: italic; }
.prose a { text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; background: var(--surface); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--cell); font-weight: 800; }
.a-hero { display: block; width: 100%; border-radius: 20px; margin: 24px 0 36px; }
/* 읽을거리·랭킹 페이지의 권유 띠 (functions/learn, 랭킹 화면) */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 72px 0 24px; padding: 44px 48px; border-radius: 24px; background: #141414; color: #f2f0ea; }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 900; letter-spacing: -.03em; margin-bottom: .25em; }
.cta-band p { margin: 0; color: #a19d94; }
.cta-band .btn { flex: none; background: var(--accent); color: var(--accent-ink); }
main.learn > section > .section-title { margin-top: 56px; }

/* 응시 화면 */
.test { padding: 28px 0 16px; }
.test-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; }
.timer { font-variant-numeric: tabular-nums; background: var(--surface); border-radius: 10px; padding: 4px 12px; }
.timer.warn { color: #fff; background: var(--bad); }
.progress { height: 6px; background: var(--line); border-radius: 99px; margin: 14px 0 28px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .3s; }
.prompt { font-size: 1.3rem; font-weight: 900; text-align: left; margin-bottom: 18px; }
.prompt.small { font-size: 15px; font-weight: 500; }

.figure { display: flex; justify-content: center; margin: 0 0 20px; padding: 28px 16px; background: var(--surface); border-radius: var(--radius); color: var(--ink); }
.figure .matrix { width: min(100%, 280px); }
.figure > .opt-svg { width: 150px; }
.figure.sm .matrix { width: 200px; }
.figure.sm > .opt-svg { width: 100px; }
.cell-bg { fill: var(--cell); }
.cell-missing { fill: var(--accent-soft); stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 8 6; }
.cell-q { fill: var(--ink); font: 800 44px system-ui, sans-serif; }
.piece { fill: currentColor; fill-opacity: .9; stroke: var(--surface); stroke-width: 2; }

.seq, .pairs, .eq, .num-grid { font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.seq span { background: var(--cell); border-radius: 12px; padding: 8px 14px; min-width: 58px; text-align: center; }
.q { color: var(--ink); }
.seq .q { background: var(--accent); color: var(--accent-ink); }
.pairs { display: grid; gap: 8px; }
.pairs div { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pairs span { min-width: 48px; text-align: center; }
.pairs i { color: var(--muted); font-style: normal; }
.num-grid { border-collapse: separate; border-spacing: 8px; }
.num-grid td { background: var(--cell); border-radius: 12px; width: 76px; height: 64px; text-align: center; }
.eq { display: grid; gap: 10px; }
.eq-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.eq-row span { min-width: 22px; text-align: center; }
.sym { width: 34px; height: 34px; color: var(--ink); }

.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 480px; margin: 0 auto; }
.opt {
	position: relative; display: grid; place-items: center; aspect-ratio: 1;
	background: var(--surface); color: var(--ink); border: 0; border-radius: 14px;
	box-shadow: inset 0 0 0 1.5px var(--line);
	padding: 10px; cursor: pointer; font: inherit; transition: box-shadow .12s, background .12s;
}
.options.text .opt { aspect-ratio: auto; min-height: 70px; }
button.opt:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.opt.selected { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent-ink); }
.opt .letter { position: absolute; top: 7px; left: 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
.opt.selected .letter { color: var(--accent-ink); }
.opt-svg { width: 100%; max-width: 110px; }
.opt-text { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.options.sm { max-width: 360px; gap: 8px; margin-bottom: 8px; }
.options.sm .opt { cursor: default; }
.options.sm .opt-text { font-size: 1.15rem; }
.opt.is-answer { background: #dff3e6; box-shadow: inset 0 0 0 2px #1f8a4c; }
.opt.is-wrong { background: #fbe1dd; box-shadow: inset 0 0 0 2px #d23b2a; }

.nav-row { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0 20px; }
/* 문제 화면: 그림이 커서 화면이 길어져도 이전·다음 버튼이 늘 화면 아래에 보이게 붙여 둔다 */
.test .nav-row { position: sticky; bottom: 0; z-index: 5; margin: 24px 0 16px; padding: 12px 0; background: var(--bg); }
/* 문항 번호: PC는 20개 한 줄, 좁은 화면은 10개씩 두 줄 (한두 개만 다음 줄로 떨어지지 않게 열 수를 고정) */
.dots { display: grid; grid-template-columns: repeat(20, 28px); justify-content: center; gap: 6px; }
.dot { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.dot.done { background: var(--ink); color: var(--bg); }
.dot.cur { background: var(--accent); color: var(--accent-ink); }

/* 결과 화면 */
.result { padding: 0; overflow: hidden; }
.result p { margin: 0; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 26px; font-weight: 800; background: var(--accent); color: var(--accent-ink); }
.report-head .player { font-size: 15px; }
.report-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: center; padding: 28px 26px 24px; }
.iq-label { font-weight: 800; color: var(--muted); font-size: 14px; }
.iq { font-size: clamp(4.6rem, 16vw, 6.8rem); font-weight: 900; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; margin: 4px 0 6px !important; }
.band-chip { display: inline-block; margin-top: 8px !important; padding: 4px 14px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px; }
.bell { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
.bell text { fill: var(--muted); font-size: 10px; }
.bell-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.bell-fill { fill: var(--accent); opacity: .7; }
.bell-mark { stroke: var(--ink); stroke-width: 2; }
.bell-dot { fill: var(--ink); }
.big-line { font-size: 1.08rem; font-weight: 800; margin: 8px 0 !important; }
.report-foot { padding: 14px 26px; border-top: 1px solid var(--line); }
.fig-card { display: grid; grid-template-columns: 72px 1fr; gap: 22px; align-items: start; }
.fig-card h2 { font-size: 1.8rem; font-weight: 900; margin: 2px 0 8px; }
.fig-card p { margin: 0 0 10px; }
.fig-avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); }
.fig-avatar .ico { width: 34px; height: 34px; }
.share h2 { margin-bottom: .2em; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
main[data-view="result"] .block { margin: 56px 0; }

.bar-row { display: grid; grid-template-columns: 88px 1fr 44px; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 10px; background: var(--cell); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.stats { list-style: none; padding: 0; margin: 18px 0 0; }
.stats li { padding: 10px 0; border-top: 1px solid var(--line); }

.ad { margin: 40px 0; min-height: 100px; }
.ad-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ad-placeholder { display: grid; place-items: center; height: 100px; border: 1px dashed var(--muted); border-radius: 12px; color: var(--muted); font-size: 13px; }

#toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 30;
	background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px;
	opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); font-size: 14px; font-weight: 600;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
	.get-grid { grid-template-columns: 1fr; }
	.rank-grid { grid-template-columns: 1fr; }
	.a-grid.three { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
	.faq-block { grid-template-columns: 1fr; gap: 8px; }
	.final-in, .cta-band { flex-direction: column; align-items: flex-start; }
	.cta-band { padding: 36px 28px; }
}

@media (max-width: 640px) {
	.wrap, main, .footer { padding-left: 16px; padding-right: 16px; }
	main[data-view="home"] { padding: 0; }
	.topbar { padding-inline: 16px; }
	.hero-grid { padding-top: 36px; padding-bottom: 40px; }
	.hero .lead { font-size: 1.08rem; }
	.hero .btn-lg, .final .btn, .cta-band .btn { width: 100%; }
	.demo { padding: 22px 18px 20px; border-radius: 18px; }
	.demo .seq { gap: 6px; font-size: 1.25rem; }
	.demo .seq span { min-width: 0; padding: 6px 10px; }
	.nav { gap: 12px; }
	.block { margin: 64px 0; }
	.stat-strip { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
	.stat-strip li { padding: 14px; font-size: 12px; }
	.stat-strip b { font-size: 1.35rem; }
	.areas { grid-template-columns: 1fr 1fr; gap: 10px; }
	.area { padding: 20px 18px; }
	.rank-card { padding: 18px 16px 8px; }
	.rank-list.countries li { grid-template-columns: 26px 1fr 52px 48px; gap: 8px; }
	.final { margin-top: 64px; }
	.final-in { padding-top: 48px; padding-bottom: 48px; }
	.dots { grid-template-columns: repeat(10, minmax(0, 30px)); }
	.dot { width: 100%; height: auto; aspect-ratio: 1; }
	.test .nav-row { margin: 20px -16px 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
	.test .nav-row .btn { flex: 1; }
	.figure { margin-bottom: 18px; padding: 20px 8px; }
	.figure .matrix { width: min(100%, 240px); }
	.report-body { grid-template-columns: 1fr; text-align: center; }
	.learn-head { margin-top: 28px; }
}

@media (max-width: 480px) {
	.seq span { min-width: 0; padding: 6px 9px; }
	.share-row { display: grid; grid-template-columns: 1fr 1fr; }
	.share-row .btn:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
	.card { padding: 20px; }
	.result.card { padding: 0; }
	.fig-card { grid-template-columns: 1fr; gap: 14px; }
	.options { gap: 8px; }
	.areas { grid-template-columns: 1fr; }
	.num-grid td { width: 64px; height: 56px; }
	.bar-row { grid-template-columns: 72px 1fr 40px; }
}

@media (max-width: 420px) {
	/* 아주 좁은 화면에서는 로고만 남겨 메뉴가 줄바꿈되지 않게 한다 */
	.brand span:not(.logo) { display: none; }
	#lang { padding: 6px; font-size: 13px; max-width: 104px; }
}
