
  /* ===== 작업 G · 76번 4 · 5항(11/3판 시안, 기본 꺼짐): 홈 '단원별 실력'(html.k76-hex) · 소단원 줄 수준(html.k76-st) =====
     단계 색은 학습 진단과 같은 먹보라 짙기(D-184): 많이 맞을수록 진함. 노베(기록 적음)는 옅은 회색 */
  .k76h-card, #chapter-container { --k76-acc: var(--kk-accent, #654EDB); --k76-c4: color-mix(in srgb, var(--k76-acc) 78%, #1B1830); --k76-c3: var(--k76-acc);
    --k76-c2: color-mix(in srgb, var(--k76-acc) 45%, #A9A7B3); --k76-c1: #9A98A6; --k76-c0: color-mix(in srgb, var(--muted) 70%, transparent); }
  :root[data-mode="dark"] .k76h-card, :root[data-mode="dark"] #chapter-container { --k76-acc: var(--kk-accent-ink, #CFC7FF); --k76-c4: var(--kk-accent-ink, #CFC7FF);
    --k76-c3: color-mix(in srgb, var(--kk-accent-ink, #CFC7FF) 70%, #6A51E6); --k76-c2: color-mix(in srgb, #6A51E6 50%, #8A889A); --k76-c1: #8A889A; }
  [data-st="4"] { --k76-c: var(--k76-c4); } [data-st="3"] { --k76-c: var(--k76-c3); } [data-st="2"] { --k76-c: var(--k76-c2); } [data-st="1"] { --k76-c: var(--k76-c1); } [data-st="0"] { --k76-c: var(--k76-c0); }
  .k76h-card { container-type: inline-size; margin: 0 0 16px; padding: 18px 16px 14px; border-radius: 20px; background: var(--card); box-shadow: 0 1px 2px rgba(16, 18, 24, .04), 0 4px 16px rgba(16, 18, 24, .05); }
  .k76h-t { margin: 0 0 6px; font-size: var(--kk-fs-3); font-weight: 800; color: var(--ink); }
  .k76h-body { display: grid; gap: 6px; }
  .k76h-plot { justify-self: center; width: min(100%, 250px); }
  .k76h-hex { display: block; width: 100%; height: auto; overflow: visible; }
  .k76h-grid polygon, .k76h-grid line { fill: none; stroke: var(--line); stroke-width: 1; }
  .k76h-grid polygon:first-child { stroke-width: 1.4; }
  .k76h-val { fill: color-mix(in srgb, var(--k76-acc) 20%, transparent); stroke: var(--k76-acc); stroke-width: 2; stroke-linejoin: round; }
  .k76h-dots circle { fill: var(--k76-acc); }
  .k76h-ax { fill: var(--ink-2); font-size: 12px; font-weight: 700; }
  .k76h-ax.k76h-none { fill: var(--muted); font-weight: 500; }
  .k76h-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* 78번 5항: 휴대폰 두 칸 타일 = 단원 그림 | '1단원' · 수준 막대(이름 오른쪽). 넓은 화면은 아래에서 한 줄(단원 이름 · 막대 · 단계 이름) */
  .k76h-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; box-sizing: border-box; padding: 6px 10px; border: 0; border-radius: 12px; background: var(--k64-fill, var(--surface)); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
  .k76h-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .k76h-emo { flex: none; width: 24px; height: 24px; color: var(--ink-2); }
  .k76h-nm { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; line-height: 1.25; }
  .k76h-nm b { font-size: var(--kk-fs-2); font-weight: 800; white-space: nowrap; }
  .k76h-nm small { display: none; min-width: 0; font-size: var(--kk-fs-1); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .k76h-lv { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: var(--kk-fs-1); font-weight: 800; color: var(--k76-c); }
  .k76h-lw { display: none; }
  .k76h-row[data-st="0"] .k76h-lv { font-weight: 500; }
  .k76h-dash { display: inline-block; width: 1.1em; height: 2px; border-radius: 1px; background: var(--k76-c0); }
  .k76h-bar { display: inline-flex; color: var(--k76-c); }
  /* 넓은 화면: 육각형 왼쪽 · 단원 줄 오른쪽(한 줄에 단원 이름까지) */
  /* 79번 3항: 넓은 꼴은 카드 폭으로(600px 화면 · 글자 130%에서 단원 줄이 넘치던 것 → 카드 안 폭이 560px 넘을 때만(900 화면 628px) 육각형 왼쪽 · 줄 오른쪽) */
  @container (min-width: 560px) {
    .k76h-body { grid-template-columns: 250px minmax(0, 1fr); align-items: center; gap: 18px; }
    .k76h-list { grid-template-columns: 1fr; gap: 6px; }
    .k76h-row { gap: 10px; }
    .k76h-nm small { display: block; }
    .k76h-lv { font-size: var(--kk-fs-2); }
    .k76h-lw { display: inline; }
  }
  /* 5항: 소단원 줄 수준(첫 줄 오른쪽). 휴대폰은 막대만, 넓은 화면은 막대 + 단계 이름 */
  html.k76-st #chapter-container.k64-list .chapter-item > label { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "no nm st" ". con con"; }
  #chapter-container .chapter-item > label > .k76-st { grid-area: st; align-self: start; margin-top: .25em; display: inline-flex; align-items: center; gap: 5px; font-size: .78em; font-weight: 800; color: var(--k76-c); white-space: nowrap; }
  #chapter-container .chapter-item > label > .k76-st b { display: none; font-weight: 800; }
  #chapter-container .chapter-item > label > .k76-st .k76h-dash { display: inline-block; width: 1.1em; height: 2px; border-radius: 1px; background: var(--k76-c0); }
  @media (min-width: 600px) { #chapter-container .chapter-item > label > .k76-st b { display: inline; } }
  /* 79번 3항: 기록이 없는 단원은 휴대폰에서도 '노베' 이름을 보임(막대가 없어 줄표만으로는 뜻이 안 읽힘) */
  .k76h-row[data-st="0"] .k76h-lw { display: inline; }
  .k76h-row[data-st="0"] .k76h-dash { display: none; }

  /* 165번: 꼭짓점 그림은 누르는 단추(꼴은 그대로). 누를 때 살짝 옅어지고, 키보드 초점은 둘레 원에 테 */
  #k76h-card .k76h-axi[data-g] { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; transition: opacity .12s; }
  #k76h-card .k76h-axi[data-g]:active { opacity: .55; }
  #k76h-card .k76h-axi[data-g]:focus-visible .k76h-hit { stroke: var(--brand); stroke-width: 1.4; }
  @media (hover: hover) { #k76h-card .k76h-axi[data-g]:hover { opacity: .75; } }

  /* 169 · 171번: 꼭짓점 그림 둥근 바탕(ui76h.js badge). 빈 곳은 옅은 회색 · 또렷한 테, 차오른 면은 숙련도 빛깔(JS가 밝게 · 어둡게 두 벌을 만듦) · 위 가장자리 물결 */
  #k76h-card .k76h-bdg { fill: color-mix(in srgb, var(--ink) 7%, var(--card)); stroke: none; }
  :root[data-mode="dark"] #k76h-card .k76h-bdg { fill: rgba(255, 255, 255, .07); }
  #k76h-card .k76h-bdg[data-st="0"] { fill: none; stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: .9; stroke-dasharray: 2 2.4; }
  #k76h-card .k171-ring { fill: none; stroke: color-mix(in srgb, var(--ink) 26%, transparent); stroke-width: 1; }
  :root[data-mode="dark"] #k76h-card .k171-ring { stroke: rgba(255, 255, 255, .3); }
  #k76h-card .k171-ring[data-st="4"] { stroke: rgba(176, 156, 255, .9); filter: drop-shadow(0 0 1.4px rgba(186, 164, 255, .75)) drop-shadow(0 0 3px rgba(140, 205, 255, .45)); }
  :root[data-mode="dark"] #k76h-card .k171-ring[data-st="4"] { stroke: rgba(255, 255, 255, .9); filter: drop-shadow(0 0 2px rgba(255, 255, 255, .7)) drop-shadow(0 0 4px rgba(196, 176, 255, .55)); }
  #k76h-card .k171-wv { fill: var(--fl); stroke: none; animation: k171wv 4.2s linear infinite; }
  :root[data-mode="dark"] #k76h-card .k171-wv { fill: var(--fd); }
  #k76h-card .k171-lv { transform: translateY(var(--y)); animation: k171rise .9s cubic-bezier(.3, .7, .3, 1) both; }
  @keyframes k171wv { to { transform: translateX(8px); } }
  @keyframes k171rise { from { transform: translateY(26px); } }
  #k76h-card .k76h-axi[data-st]:not([data-st="0"]) { color: rgb(28, 26, 48); }   /* 밝게: 빈 곳 · 차오른 면 모두 짙은 선 */
  :root[data-mode="dark"] #k76h-card .k76h-axi:is([data-st="1"], [data-st="2"], [data-st="3"]) { color: rgb(240, 238, 252); }   /* 어둡게: 밝은 선(강함 오팔 위만 짙은 선) */
  @media (prefers-reduced-motion: reduce) { #k76h-card .k171-wv, #k76h-card .k171-lv { animation: none; } }
  @media (forced-colors: active) { #k76h-card .k171-ring { filter: none; } }

  /* 170번: 육각형에서 단원을 눌러 도착한 대단원 줄 테두리가 두 번 부드럽게 빛남. 움직임 줄이기면 테두리만 잠깐 */
  #chapter-container .k64-gh.k170-hi { border-radius: 12px; animation: k170hi 1.8s ease-in-out; }
  @keyframes k170hi { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 18%, 58% { box-shadow: 0 0 0 2px var(--brand), 0 0 14px color-mix(in srgb, var(--brand) 35%, transparent); } 38%, 80% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); } }
  @media (prefers-reduced-motion: reduce) { #chapter-container .k64-gh.k170-hi { animation: none; box-shadow: 0 0 0 2px var(--brand); } }

