/* 운전면허 공부 — index.html·page.html 공용. 아스팔트(어두운 회색)와 차선 노랑, 신호등 빨강·초록.
   공용 조각(_site_foot·_related·_site_guide·_channel)이 --bg·--card·--border·--accent·--accent2·
   --text·--muted·--ok 를 그대로 쓰므로 이름을 바꾸지 말 것. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f3f4f6; --bg2: #e7e9ee; --card: #ffffff; --border: #dde0e6;
  --text: #15181e; --sub: #3f4652; --muted: #6b7380;
  --accent: #a86f00; --accent2: #f5b700; --accent-soft: #fff3cc; --lane: #f5b700;
  --ok: #148a4b; --ok-soft: #e1f5e9; --no: #d0363c; --no-soft: #fde6e7;
  --sky: #2563c9; --sky-soft: #e3edfc;
  --warn: #c2410c; --warn-soft: #fff1e6; --warn-line: #f6b48a;
  --tip-soft: #fff8d9; --tip-line: #f0d060;
  --asphalt: #1c1f25; --asphalt2: #272b33; --on-asphalt: #f2f3f5; --on-asphalt-sub: #b4bac4;
  --shadow: 0 1px 2px rgba(20, 24, 30, .05), 0 8px 24px -14px rgba(20, 24, 30, .28);
  --radius: 16px; --barh: 52px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317; --bg2: #1a1d23; --card: #1b1e24; --border: #2d323b;
    --text: #eef0f3; --sub: #c9ced6; --muted: #959ca8;
    --accent: #ffc531; --accent2: #ffd75e; --accent-soft: #3a3014; --lane: #ffc531;
    --ok: #3fcf7f; --ok-soft: #12301f; --no: #ff6b70; --no-soft: #3a1a1c;
    --sky: #6aa5ff; --sky-soft: #15243d;
    --warn: #ffa07a; --warn-soft: #34201a; --warn-line: #7a3f28;
    --tip-soft: #2e2810; --tip-line: #7c6522;
    --asphalt: #16181d; --asphalt2: #20242b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 26px -14px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
@media (max-width: 480px) { :root { --barh: 46px; } }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--text); line-height: 1.7; min-height: 100vh;
       font-family: 'Pretendard', 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.dv-wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.kw { word-break: var(--xn-wb, keep-all); overflow-wrap: anywhere; }
.dv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 홈: 히어로(아스팔트 + 차선) ── */
.dv-hero { position: relative; margin-top: 18px; padding: 34px 22px 46px; border-radius: 24px; overflow: hidden; text-align: center;
           color: var(--on-asphalt); background:
             radial-gradient(120% 80% at 50% -20%, rgba(255, 255, 255, .07), transparent 60%),
             linear-gradient(180deg, var(--asphalt2), var(--asphalt)); box-shadow: var(--shadow); }
.dv-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 16px; height: 4px;
                  background: repeating-linear-gradient(90deg, var(--lane) 0 34px, transparent 34px 58px); opacity: .9; }
.dv-hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .55); }
.dv-lights { display: inline-flex; gap: 6px; padding: 6px 9px; border-radius: 999px; background: #0b0c0f; margin-bottom: 14px; }
.dv-lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d44; }
.dv-lights i:nth-child(1) { background: #ff4d4f; box-shadow: 0 0 10px #ff4d4f; }
.dv-lights i:nth-child(2) { background: #ffc531; box-shadow: 0 0 10px #ffc531; }
.dv-lights i:nth-child(3) { background: #2fd27a; box-shadow: 0 0 10px #2fd27a; }
.dv-eyebrow { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .04em; color: #ffc531; }
.dv-h1 { font-size: clamp(1.8rem, 6.4vw, 2.7rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.22; margin: 8px 0 10px; }
.dv-h1 .ico { display: inline-block; margin-right: 6px; }
.dv-lead { max-width: 620px; margin: 0 auto; font-size: 1rem; color: var(--on-asphalt-sub); word-break: var(--xn-wb, keep-all); }
.dv-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 680px; margin: 22px auto 0; }
.dv-start a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border-radius: 14px; text-decoration: none;
              background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-asphalt);
              transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.dv-start a:hover { transform: translateY(-2px); border-color: #ffc531; background: rgba(255, 255, 255, .11); }
.dv-start a.main { background: #ffc531; border-color: #ffc531; color: #1a1600; }
.dv-start a.main:hover { background: #ffd75e; }
.dv-start .e { font-size: 1.5rem; line-height: 1.2; }
.dv-start b { font-size: .98rem; font-weight: 900; }
.dv-start small { font-size: .74rem; opacity: .8; font-weight: 600; }

/* ── 홈: 학습 현황 ── */
.dv-prog { margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.dv-prog h2 { font-size: 1.05rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.dv-prog h2 a { margin-left: auto; font-size: .8rem; font-weight: 800; color: var(--accent); text-decoration: none; }
.dv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.dv-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 10px 8px; text-align: center; min-width: 0; }
.dv-stat b { display: block; font-size: .72rem; color: var(--muted); font-weight: 800; }
.dv-stat span { display: block; font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.35; }
.dv-stat em { display: block; font-style: normal; font-size: .72rem; color: var(--muted); }
.dv-stat.no span { color: var(--no); }
.dv-stat.ok span { color: var(--ok); }
.dv-bar { height: 8px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin-top: 12px; }
.dv-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lane), var(--ok)); transition: width .3s ease; }
.dv-prog .hint { font-size: .82rem; color: var(--muted); margin-top: 8px; word-break: var(--xn-wb, keep-all); }

/* ── 홈: 면허 따는 순서(스테퍼) ── */
.dv-steps-sec { margin-top: 40px; }
.dv-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: st; position: relative; }
.dv-steps li { position: relative; text-align: center; padding: 0 4px; counter-increment: st; min-width: 0; }
.dv-steps li::before { content: ''; position: absolute; top: 22px; left: 50%; right: -50%; height: 3px;
                       background: repeating-linear-gradient(90deg, var(--lane) 0 10px, transparent 10px 18px); z-index: 0; }
.dv-steps li:last-child::before { display: none; }
.dv-steps a, .dv-steps .nolink { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.dv-steps .n { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
               background: var(--card); border: 2px solid var(--lane); box-shadow: var(--shadow); position: relative; }
.dv-steps .n::after { content: counter(st); position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
                      background: var(--asphalt); color: #ffc531; font-size: .7rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.dv-steps b { font-size: .88rem; font-weight: 900; line-height: 1.3; word-break: var(--xn-wb, keep-all); }
.dv-steps small { font-size: .74rem; color: var(--muted); line-height: 1.4; word-break: var(--xn-wb, keep-all); }
.dv-steps a:hover .n { border-color: var(--ok); }
@media (max-width: 640px) {
  .dv-steps { grid-template-columns: 1fr; gap: 10px; }
  .dv-steps li { text-align: left; padding: 0; }
  .dv-steps li::before { top: 46px; bottom: -10px; left: 22px; right: auto; width: 3px; height: auto;
                         background: repeating-linear-gradient(180deg, var(--lane) 0 8px, transparent 8px 14px); }
  .dv-steps a, .dv-steps .nolink { flex-direction: row; align-items: center; gap: 12px; }
  .dv-steps .t { display: flex; flex-direction: column; }
}

/* ── 홈: 그룹 카드 ── */
.dv-h2 { font-size: 1.28rem; font-weight: 900; letter-spacing: -.02em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.dv-h2::after { content: ''; flex: 1; height: 1px; background: var(--border); margin-left: 8px; }
.dv-group { margin-top: 40px; scroll-margin-top: calc(var(--barh) + 12px); }
.dv-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dv-card { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border-radius: var(--radius); text-decoration: none;
           background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 0; position: relative; overflow: hidden;
           transition: transform .18s ease, border-color .18s ease; }
.dv-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lane); opacity: 0; transition: opacity .18s ease; }
.dv-card:hover { transform: translateY(-3px); border-color: var(--accent2); }
.dv-card:hover::before { opacity: 1; }
.dv-card .i { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
              font-size: 1.45rem; background: var(--bg2); }
.dv-card .b { min-width: 0; }
.dv-card strong { display: block; font-size: 1rem; font-weight: 900; line-height: 1.35; }
.dv-card p { font-size: .84rem; color: var(--muted); line-height: 1.55; margin-top: 3px; word-break: var(--xn-wb, keep-all);
             display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dv-card.quiz { background: linear-gradient(135deg, var(--asphalt2), var(--asphalt)); border-color: var(--asphalt); color: var(--on-asphalt); }
.dv-card.quiz p { color: var(--on-asphalt-sub); }
.dv-card.quiz .i { background: #ffc531; }
.dv-disc { margin: 22px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.65; padding: 12px 14px; border-radius: 14px;
           border: 1px dashed var(--border); word-break: var(--xn-wb, keep-all); }
.dv-disc b { color: var(--sub); }

/* ── 글 페이지 ── */
.dv-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 22px; font-size: .84rem; color: var(--muted); }
.dv-crumb a { text-decoration: none; font-weight: 700; color: var(--sub); }
.dv-crumb a:hover { color: var(--accent); }
.dv-crumb .sep { opacity: .5; }
.dv-head { padding: 18px 0 8px; max-width: 760px; }
.dv-head .ico { width: 62px; height: 62px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 2.1rem;
                background: var(--asphalt); margin-bottom: 14px; box-shadow: inset 0 -4px 0 var(--lane); }
.dv-head h1 { font-size: clamp(1.65rem, 6vw, 2.3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.28; word-break: var(--xn-wb, keep-all); }
.dv-head .sum { font-size: 1.06rem; line-height: 1.75; color: var(--sub); margin-top: 12px; font-weight: 500; word-break: var(--xn-wb, keep-all); }
.dv-head .meta { font-size: .78rem; color: var(--muted); margin-top: 10px; }

.dv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 18px; }
@media (min-width: 1000px) { .dv-layout { grid-template-columns: minmax(0, 1fr) 240px; } .dv-toc { order: 2; } }
.dv-toc { align-self: start; }
.dv-toc nav { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px; }
@media (min-width: 1000px) { .dv-toc nav { position: sticky; top: calc(var(--barh) + 16px); max-height: calc(100vh - var(--barh) - 32px); overflow: auto; } }
.dv-toc b { display: block; font-size: .74rem; font-weight: 900; letter-spacing: .06em; color: var(--muted); padding: 0 8px 6px; }
.dv-toc ol { list-style: none; display: grid; gap: 1px; }
.dv-toc a { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px; text-decoration: none;
            font-size: .88rem; color: var(--sub); line-height: 1.45; border-left: 3px solid transparent; transition: background .15s ease, color .15s ease; }
.dv-toc a:hover { background: var(--bg); color: var(--text); }
.dv-toc a.on { background: var(--accent-soft); color: var(--text); font-weight: 800; border-left-color: var(--lane); }
@media (max-width: 999px) {
  .dv-toc { position: sticky; top: var(--barh); z-index: 30; margin: 0 -16px; }
  .dv-toc nav { border: 0; border-radius: 0; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
                overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dv-toc nav::-webkit-scrollbar { display: none; }
  .dv-toc b { display: none; }
  .dv-toc ol { display: flex; gap: 6px; width: max-content; }
  .dv-toc a { white-space: nowrap; font-size: .82rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }
  .dv-toc a.on { border-color: var(--lane); }
  .dv-sec { scroll-margin-top: calc(var(--barh) + 64px); }
}

.dv-art { min-width: 0; }
.dv-sec { padding: 26px 0 8px; scroll-margin-top: calc(var(--barh) + 14px); border-top: 1px solid var(--border); }
.dv-sec:first-child { border-top: 0; padding-top: 4px; }
.dv-sec > h2 { font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.35; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dv-sec > h2 .si { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--bg2); }
.dv-sec p { font-size: 1.03rem; line-height: 1.9; margin-bottom: 14px; word-break: var(--xn-wb, keep-all); }
.dv-check { list-style: none; display: grid; gap: 8px; margin: 4px 0 16px; counter-reset: ck; }
.dv-check li { position: relative; padding: 11px 14px 11px 46px; border-radius: 14px; background: var(--card); border: 1px solid var(--border);
               font-size: .98rem; line-height: 1.65; word-break: var(--xn-wb, keep-all); counter-increment: ck; }
.dv-check li::before { content: counter(ck); position: absolute; left: 12px; top: 11px; width: 23px; height: 23px; border-radius: 7px;
                       display: flex; align-items: center; justify-content: center; font-size: .76rem; font-weight: 900; color: #ffc531; background: var(--asphalt); }
.dv-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; margin: 6px 0 16px; font-size: .98rem; line-height: 1.75; word-break: var(--xn-wb, keep-all); }
.dv-box .bi { font-size: 1.2rem; line-height: 1.4; flex: 0 0 auto; }
.dv-box b { display: block; font-size: .78rem; font-weight: 900; letter-spacing: .03em; margin-bottom: 2px; }
.dv-box.tip { background: var(--tip-soft); border: 1px solid var(--tip-line); }
.dv-box.tip b { color: #8a6400; }
.dv-box.warn { background: var(--no-soft); border: 1px solid color-mix(in srgb, var(--no) 35%, transparent); border-left: 5px solid var(--no); }
.dv-box.warn b { color: var(--no); }
@media (prefers-color-scheme: dark) { .dv-box.tip b { color: #ffd75e; } }

.dv-faq { display: grid; gap: 8px; }
.dv-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 13px 16px; }
.dv-faq details[open] { border-color: var(--accent2); }
.dv-faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 1rem; display: flex; gap: 10px; align-items: baseline; word-break: var(--xn-wb, keep-all); }
.dv-faq summary::-webkit-details-marker { display: none; }
.dv-faq summary::before { content: 'Q'; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
                          font-size: .74rem; font-weight: 900; color: #1a1600; background: var(--lane); transform: translateY(-1px); }
.dv-faq details p { margin: 10px 0 0 32px; font-size: .98rem; line-height: 1.8; word-break: var(--xn-wb, keep-all); }
.dv-src { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.dv-src li { font-size: .82rem; padding: 5px 11px; border-radius: 999px; background: var(--bg2); color: var(--sub); }
.dv-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.dv-nav a { display: block; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); text-decoration: none; min-width: 0; }
.dv-nav a:hover { border-color: var(--accent2); }
.dv-nav small { display: block; font-size: .74rem; font-weight: 800; color: var(--muted); }
.dv-nav strong { display: block; font-size: .98rem; font-weight: 900; margin-top: 2px; }
.dv-nav .next { text-align: right; grid-column: 2; }
.dv-h3 { font-size: 1.2rem; font-weight: 900; letter-spacing: -.02em; margin: 34px 0 12px; display: flex; align-items: center; gap: 8px; }
.dv-mini { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.dv-progbar { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 40; pointer-events: none; }
.dv-progbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lane), var(--ok)); }

/* ── 퀴즈: 모드 고르기 ── */
.dv-app { background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; position: relative; overflow: hidden; }
.dv-app::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
                  background: repeating-linear-gradient(90deg, var(--lane) 0 26px, transparent 26px 40px); }
.dv-app[hidden], .dv-app [hidden] { display: none !important; }
.dv-nojs { font-size: .9rem; color: var(--muted); word-break: var(--xn-wb, keep-all); }
.dv-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dv-mode { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 14px; cursor: pointer;
           background: var(--bg); border: 1px solid var(--border); min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.dv-mode:hover { border-color: var(--accent2); transform: translateY(-2px); }
.dv-mode.main { background: var(--asphalt); border-color: var(--asphalt); color: var(--on-asphalt); }
.dv-mode.main small { color: var(--on-asphalt-sub); }
.dv-mode .e { font-size: 1.6rem; line-height: 1.2; flex: 0 0 auto; }
.dv-mode b { display: block; font-size: 1rem; font-weight: 900; }
.dv-mode small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; word-break: var(--xn-wb, keep-all); }
.dv-mode .cnt { display: inline-block; margin-left: 6px; font-size: .72rem; font-weight: 900; padding: 1px 8px; border-radius: 999px; background: var(--no); color: #fff; vertical-align: 2px; }
.dv-mode:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.dv-sub-h { font-size: .95rem; font-weight: 900; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.dv-sub-h button { margin-left: auto; }
.dv-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.dv-cat { text-align: left; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; min-width: 0; }
.dv-cat:hover { border-color: var(--accent2); }
.dv-cat b { display: block; font-size: .92rem; font-weight: 900; }
.dv-cat small { display: block; font-size: .74rem; color: var(--muted); }
.dv-cat .m { height: 4px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin-top: 6px; }
.dv-cat .m i { display: block; height: 100%; background: var(--ok); }
.dv-link { background: none; border: 0; cursor: pointer; font-size: .8rem; font-weight: 800; color: var(--accent); padding: 4px 2px; }
.dv-link:hover { text-decoration: underline; }

/* ── 퀴즈: 문제 화면 ── */
.dv-qtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dv-qtop .mode { font-size: .78rem; font-weight: 900; padding: 4px 10px; border-radius: 999px; background: var(--asphalt); color: #ffc531; }
.dv-qtop .pos { font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sub); }
.dv-qtop .timer { margin-left: auto; font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.dv-qtop .timer.low { color: var(--no); border-color: var(--no); }
.dv-qtop .quit { margin-left: auto; }
.dv-qtop .timer + .quit { margin-left: 0; }
.dv-qbar { height: 6px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin: 10px 0 16px; }
.dv-qbar i { display: block; height: 100%; width: 0; background: var(--lane); transition: width .25s ease; }
.dv-qcat { font-size: .76rem; font-weight: 800; color: var(--muted); }
.dv-q { font-size: 1.15rem; font-weight: 800; line-height: 1.6; margin: 4px 0 6px; word-break: var(--xn-wb, keep-all); }
.dv-multi { display: inline-block; font-size: .78rem; font-weight: 900; color: var(--sky); background: var(--sky-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dv-choices { display: grid; gap: 8px; margin-top: 8px; }
.dv-ch { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 13px 14px; border-radius: 12px; cursor: pointer;
         border: 2px solid var(--border); background: var(--bg); font-size: 1rem; line-height: 1.55; min-height: 50px; word-break: var(--xn-wb, keep-all);
         transition: border-color .12s ease, background .12s ease; }
.dv-ch:hover:not(:disabled) { border-color: var(--accent2); }
.dv-ch .k { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
            font-size: .82rem; font-weight: 900; background: var(--card); border: 1px solid var(--border); }
.dv-ch[aria-pressed="true"] { border-color: var(--sky); background: var(--sky-soft); }
.dv-ch[aria-pressed="true"] .k { background: var(--sky); border-color: var(--sky); color: #fff; }
.dv-ch.right { border-color: var(--ok); background: var(--ok-soft); }
.dv-ch.right .k { background: var(--ok); border-color: var(--ok); color: #fff; }
.dv-ch.wrong { border-color: var(--no); background: var(--no-soft); }
.dv-ch.wrong .k { background: var(--no); border-color: var(--no); color: #fff; }
.dv-ch:disabled { cursor: default; }
.dv-fb { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); word-break: var(--xn-wb, keep-all); }
.dv-fb.ok { border-color: var(--ok); }
.dv-fb.no { border-color: var(--no); }
.dv-fb .r { font-weight: 900; font-size: 1.02rem; }
.dv-fb.ok .r { color: var(--ok); }
.dv-fb.no .r { color: var(--no); }
.dv-fb p { font-size: .96rem; line-height: 1.75; margin-top: 4px; }
.dv-fb .law { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.dv-qact { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.dv-qact .sp { flex: 1; }
.dv-btn { font-weight: 900; font-size: .95rem; padding: 12px 18px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
          background: #ffc531; color: #1a1600; min-height: 46px; }
.dv-btn:hover:not(:disabled) { filter: brightness(1.05); }
.dv-btn:disabled { opacity: .45; cursor: not-allowed; }
.dv-btn.dark { background: var(--asphalt); color: var(--on-asphalt); }
.dv-btn.ghost { background: transparent; color: var(--sub); border-color: var(--border); }
.dv-kbd { font-size: .74rem; color: var(--muted); margin-top: 10px; }
@media (hover: none) { .dv-kbd { display: none; } }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 5px; margin-top: 16px; }
.dv-grid button { height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); font-size: .78rem; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums; }
.dv-grid button.done { background: var(--sky-soft); border-color: var(--sky); color: var(--sky); }
.dv-grid button.cur { outline: 2px solid var(--lane); outline-offset: 1px; }
.dv-grid button.right { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.dv-grid button.wrong { background: var(--no-soft); border-color: var(--no); color: var(--no); }

/* ── 퀴즈: 결과 ── */
.dv-score { text-align: center; padding: 22px 12px; border-radius: 16px; background: linear-gradient(180deg, var(--asphalt2), var(--asphalt)); color: var(--on-asphalt); }
.dv-score .big { font-size: clamp(2.6rem, 12vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dv-score .big small { font-size: 1.1rem; color: var(--on-asphalt-sub); font-weight: 700; }
.dv-score .sub { font-size: .9rem; color: var(--on-asphalt-sub); margin-top: 4px; }
.dv-pass { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.dv-pass div { padding: 12px; border-radius: 12px; text-align: center; border: 2px solid; }
.dv-pass .y { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.dv-pass .n { border-color: var(--no); background: var(--no-soft); color: var(--no); }
.dv-pass b { display: block; font-size: .8rem; color: var(--sub); }
.dv-pass span { font-size: 1.05rem; font-weight: 900; }
.dv-catres { list-style: none; display: grid; gap: 6px; margin-top: 12px; }
.dv-catres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: .88rem; align-items: center; }
.dv-catres .m { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.dv-catres .m i { display: block; height: 100%; background: var(--ok); }
.dv-review { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.dv-review > li { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); border-left: 5px solid var(--ok); background: var(--bg); word-break: var(--xn-wb, keep-all); }
.dv-review > li.no { border-left-color: var(--no); }
.dv-review .q { font-weight: 800; line-height: 1.55; }
.dv-review .a { font-size: .88rem; margin-top: 4px; }
.dv-review .a .you { color: var(--no); font-weight: 800; }
.dv-review .a .ans { color: var(--ok); font-weight: 800; }
.dv-review p { font-size: .9rem; color: var(--sub); line-height: 1.7; margin-top: 4px; }
.dv-empty { text-align: center; padding: 22px 10px; color: var(--muted); font-size: .95rem; word-break: var(--xn-wb, keep-all); }
.dv-empty .e { font-size: 2.2rem; display: block; }

/* ── 퀴즈: 서버가 그린 전체 문제(검색엔진·JS 없이 공부) ── */
.dv-bank { list-style: none; display: grid; gap: 10px; counter-reset: bk; }
.dv-bank > li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); scroll-margin-top: calc(var(--barh) + 70px); }
.dv-bank .qt { font-weight: 800; font-size: 1rem; line-height: 1.6; word-break: var(--xn-wb, keep-all); display: flex; gap: 8px; }
.dv-bank .qt .no { flex: 0 0 auto; font-size: .76rem; font-weight: 900; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.dv-bank .two { display: inline-block; font-size: .72rem; font-weight: 900; color: var(--sky); background: var(--sky-soft); padding: 1px 8px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.dv-bank ol.ch { list-style: none; display: grid; gap: 3px; margin: 8px 0 0; padding-left: 2px; }
.dv-bank ol.ch li { font-size: .94rem; line-height: 1.55; color: var(--sub); word-break: var(--xn-wb, keep-all); display: flex; gap: 6px; }
.dv-bank ol.ch li span { flex: 0 0 auto; }
.dv-bank details { margin-top: 8px; }
.dv-bank summary { cursor: pointer; font-size: .84rem; font-weight: 800; color: var(--accent); width: max-content; max-width: 100%; }
.dv-bank details p { font-size: .92rem; line-height: 1.75; margin: 6px 0 0; word-break: var(--xn-wb, keep-all); }
.dv-bank details .ans { font-weight: 900; color: var(--ok); }
.dv-bank details .law { font-size: .8rem; color: var(--muted); }

.back { text-align: center; margin: 26px 0 40px; font-size: .85rem; color: var(--muted); }
.back a { color: var(--accent); text-decoration: none; }

@media (max-width: 560px) {
  .dv-hero { padding: 28px 16px 42px; border-radius: 20px; }
  .dv-start { grid-template-columns: 1fr; }
  .dv-start a { flex-direction: row; justify-content: flex-start; gap: 10px; text-align: left; padding: 12px 14px; }
  .dv-start small { margin-left: auto; }
  .dv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dv-cards { grid-template-columns: 1fr; }
  .dv-modes { grid-template-columns: 1fr; }
  .dv-app { padding: 16px 14px; border-radius: 18px; }
  .dv-faq details p { margin-left: 0; }
  .dv-nav { grid-template-columns: 1fr; }
  .dv-nav .next { grid-column: 1; }
  .dv-q { font-size: 1.06rem; }
  .dv-qact .dv-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-card, .dv-start a, .dv-mode { transition: none; }
  .dv-card:hover, .dv-start a:hover, .dv-mode:hover { transform: none; }
}
