/* 코사이트 유리 층 (2026-10-31 두목님 지시) — korsite-2026.css 뒤에 읽는다.
 * 0. 글꼴: Pretendard 를 사이트 안에 두고 먼저 쓴다(맥 기본 글꼴이 작은 굵은 글자를 뭉개 보이게 함).
 * 1. 머리글: 가운데 메뉴, 선택 페이지는 파랑 글자 + 파랑 밑줄. 바로가기 앱은 유리 버튼에 빛이 흐름.
 * 2. 바로가기 목록: 큰 판 전체를 유리로, 사이트 버튼도 옅은 유리. 추천 5곳만 빛이 지나감.
 * .nav-column / a.nav-link 마크업은 그대로 두고 CSS 와 가상 요소로만 꾸민다. */

@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("../fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-display: swap; src: url("../fonts/Pretendard-Medium.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("../fonts/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("../fonts/Pretendard-Bold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-display: swap; src: url("../fonts/Pretendard-ExtraBold.subset.woff2") format("woff2"); }

:root {
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-line: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
}
body.ks { font-family: var(--font); letter-spacing: 0; }

/* ---------- 유리 버튼 + 흐르는 빛 ---------- */
.ks a.ks-glass {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 14px;
  font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.3), var(--glass-shadow), 0 1px 2px rgba(15, 27, 45, 0.06);
  text-decoration: none; transition: transform 0.12s ease-out, box-shadow 0.2s ease;
}
.ks a.ks-glass::after {
  content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent 0, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  animation: ks-shine 3.8s ease-in-out infinite;
}
.ks a.ks-glass:hover { color: var(--primary); text-decoration: none; box-shadow: inset 0 1px 0 #fff, var(--glass-shadow), 0 4px 14px rgba(32, 97, 235, 0.12); }
.ks a.ks-glass:active { transform: scale(0.97); }
.ks a.ks-glass--sm { min-height: 38px; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(32, 97, 235, 0.10)); border-color: rgba(32, 97, 235, 0.18); }
@keyframes ks-shine {
  0% { transform: translateX(-160%) skewX(-18deg); }
  55%, 100% { transform: translateX(330%) skewX(-18deg); }
}

/* ---------- 1. 머리글: 로고 + 검증 상태 표시 / 유리 분할 메뉴 + 인기 사이트 펼침 ---------- */
.ks-header--v3 { background: rgba(255, 255, 255, 0.72); }
.ks-header--v3 .ks-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
.ks-brand { display: flex; align-items: center; gap: 12px; }
/* 메뉴가 아래 줄로 내려가는 폭에서는 검증 표시를 오른쪽 끝에 */
@media (max-width: 991px) { .ks-brand { flex: 1 1 100%; justify-content: space-between; } }
.ks-header--v3 .ks-logo img { width: 132px; }
.ks-status {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.10); border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 12px; font-weight: 600; line-height: 1.4; color: #047857; white-space: nowrap;
}
.ks-status__dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22); animation: ks-pulse 2.2s ease-in-out infinite; }
@keyframes ks-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22); } 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.06); } }

.ks-header--v3 nav { flex: 1 1 100%; }
.ks-seg {
  display: flex; align-items: center; gap: 4px; margin: 0; padding: 4px; list-style: none;
  border-radius: 13px; background: rgba(241, 245, 249, 0.72); border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ks-seg > li { position: relative; flex: 1 1 auto; }
.ks .ks-seg__link {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font: 600 14px/1.3 var(--font); color: #475569; white-space: nowrap; text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.ks .ks-seg__link:hover { color: var(--ink); text-decoration: none; }
.ks .ks-seg__link.is-current, .ks .ks-seg__link[aria-current="page"] { background: rgba(255, 255, 255, 0.96); color: var(--primary); box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.10), inset 0 1px 0 #fff; }
/* 바로가기 설치: 빛이 흐름 */
.ks-seg__link--shine::after {
  content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent 0, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg); animation: ks-shine 3.8s ease-in-out infinite;
}
.ks-seg__chev { transition: transform 0.2s ease; }
.ks-seg__drop.is-open .ks-seg__chev { transform: rotate(180deg); }
.ks-drop {
  position: absolute; z-index: 1100; top: calc(100% + 10px); right: 0; width: 220px; margin: 0; padding: 8px; list-style: none;
  border-radius: 15px; background: #fff;
  -webkit-backdrop-filter: blur(28px) saturate(200%); backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.98); box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
}
.ks-drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.ks-seg__drop.is-open .ks-drop { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .ks-seg__drop:hover .ks-drop { opacity: 1; visibility: visible; transform: none; } }
.ks-drop__label { padding: 5px 10px 7px; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #94a3b8; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
.ks .ks-drop a { display: block; padding: 8px 11px; border-radius: 9px; font-size: 15px; font-weight: 600; color: #1e293b; text-decoration: none; }
.ks .ks-drop a:hover, .ks .ks-drop a[aria-current="page"] { background: rgba(32, 97, 235, 0.08); color: var(--primary); }
@media (min-width: 992px) {
  .ks-header--v3 .ks-header__inner { flex-wrap: nowrap; min-height: 68px; }
  .ks-header--v3 .ks-logo img { width: 150px; }
  .ks-header--v3 nav { flex: 0 0 auto; }
  .ks-seg > li { flex: 0 0 auto; }
  .ks .ks-seg__link { padding: 8px 16px; font-size: 14px; }
}

/* ---------- 2. 바로가기: 설치 띠 + 분류별 유리 판 ---------- */
.ks-directory { position: relative; isolation: isolate; padding-top: 14px; }
.ks-directory::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 -160px;
  background:
    radial-gradient(28rem 18rem at 12% 35%, rgba(80, 140, 255, 0.20), transparent 70%),
    radial-gradient(24rem 16rem at 88% 50%, rgba(150, 110, 255, 0.14), transparent 70%),
    radial-gradient(22rem 14rem at 50% 62%, rgba(40, 200, 190, 0.10), transparent 70%);
  pointer-events: none;
}
.ks-directory > .ks-wrap { display: flex; flex-direction: column; }
.ks-dir-head { margin: 4px 0 10px; }
.ks-dir-head h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.ks-dir-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* 설치 띠 */
.ks a.ks-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding: 12px 14px 12px 18px; border-radius: 18px; color: var(--ink); text-decoration: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.78) 0%, rgba(238, 244, 255, 0.66) 55%, rgba(224, 231, 255, 0.72) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.92); box-shadow: inset 0 1px 0 #fff, 0 16px 36px -14px rgba(37, 99, 235, 0.16);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease;
}
.ks a.ks-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #3b82f6, #6366f1, #06b6d4); }
.ks a.ks-banner:hover { text-decoration: none; transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 22px 44px -14px rgba(37, 99, 235, 0.24); }
.ks-banner__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
}
.ks-banner__icon::after {
  content: ""; position: absolute; inset: 10px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ks-banner__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ks-banner__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.ks-banner__badge { padding: 2px 8px; border-radius: 999px; background: rgba(37, 99, 235, 0.12); color: #2563eb; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }
.ks-banner__sub { display: none; font-size: 13px; color: #64748b; font-weight: 500; }
.ks-banner__sync { display: none; flex-direction: column; align-items: flex-end; padding-right: 14px; border-right: 1px solid rgba(148, 163, 184, 0.24); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ks-banner__sync-label { font-size: 11px; font-weight: 600; color: #94a3b8; letter-spacing: 0.04em; }
.ks-banner__sync-time { font-size: 13px; font-weight: 700; color: #334155; }
.ks-banner__cta {
  flex: none; padding: 9px 14px; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 분류별 유리 판 */
.ks-directory .nav-container {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ks-directory .nav-column, .ks-directory .nav-column:nth-child(n) {
  --cat: #2563eb; position: relative; overflow: hidden; padding: 10px 8px 8px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.54); -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 20px 48px -16px rgba(30, 64, 175, 0.11), 0 4px 16px -4px rgba(15, 23, 42, 0.04);
}
.ks-directory .nav-column:nth-child(2) { --cat: #6366f1; }
.ks-directory .nav-column:nth-child(3) { --cat: #0891b2; }
.ks-directory .nav-column:nth-child(4) { --cat: #7c3aed; }
.ks-directory .nav-column::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.98), transparent); pointer-events: none; }
.column-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; padding: 0 2px 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
.ks-directory .nav-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.3; }
.ks-directory .nav-title::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--cat) var(--icon) center / 15px no-repeat;
  -webkit-mask: none; box-shadow: 0 4px 10px -3px rgba(37, 99, 235, 0.14);
}
/* 분류 아이콘: 흰 유리 칸 안의 분류 색 선 그림 */
.ks-directory .nav-title::before { background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.95); position: relative; }
.ks-directory .nav-title::after {
  content: ""; position: absolute; width: 15px; height: 15px; margin-left: 6px; background: var(--cat);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.ks-directory .nav-title { position: relative; }
.ks-directory .nav-column:nth-child(1) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20'/%3E%3C/svg%3E"); }
.ks-directory .nav-column:nth-child(2) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E"); }
.ks-directory .nav-column:nth-child(3) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.ks-directory .nav-column:nth-child(4) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.node-count { flex: none; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9); color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }

.ks-directory .nav-links { display: grid; grid-template-columns: 1fr; gap: 5px; }
.ks-directory .nav-column a.nav-link {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; min-height: 36px; padding: 0 10px 0 26px; margin: 0; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* 사이트 앞 초록 점 */
.ks-directory .nav-column a.nav-link::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16); transition: background-color 0.2s ease;
}
/* 빛 지나감(화살표 없음) */
.ks-directory .nav-column a.nav-link::after {
  content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent 0, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
}
.ks-directory .nav-column a.nav-link:hover {
  color: var(--cat); background: rgba(255, 255, 255, 0.94); border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.22), inset 0 1px 0 #fff;
}
.ks-directory .nav-column a.nav-link:hover::before { background: var(--cat); }
.ks-directory .nav-column a.nav-link:hover::after { animation: ks-shine 0.9s ease-out 1; }
.ks-directory .nav-column a.nav-link:active { transform: none; }
/* 분류마다 위 두 곳: 굵게 + 유리 그라데이션 + 천천히 빛(분류끼리 시차) */
.ks-directory .nav-column a.nav-link:nth-child(-n+2) {
  font-weight: 800; background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(214, 228, 255, 0.6));
}
.ks-directory .nav-column a.nav-link:nth-child(-n+2)::after { animation: ks-shine 6s ease-in-out infinite; }
.ks-directory .nav-column:nth-child(1) a.nav-link:nth-child(2)::after { animation-delay: 0.6s; }
.ks-directory .nav-column:nth-child(2) a.nav-link:nth-child(1)::after { animation-delay: 1.5s; }
.ks-directory .nav-column:nth-child(2) a.nav-link:nth-child(2)::after { animation-delay: 2.1s; }
.ks-directory .nav-column:nth-child(3) a.nav-link:nth-child(1)::after { animation-delay: 3s; }
.ks-directory .nav-column:nth-child(3) a.nav-link:nth-child(2)::after { animation-delay: 3.6s; }
.ks-directory .nav-column:nth-child(4) a.nav-link:nth-child(1)::after { animation-delay: 4.5s; }
.ks-directory .nav-column:nth-child(4) a.nav-link:nth-child(2)::after { animation-delay: 5.1s; }

@media (min-width: 768px) {
  .ks-banner__sub { display: block; }
  .ks-banner__sync { display: flex; }
  .ks a.ks-banner { padding: 15px 22px; gap: 14px; border-radius: 20px; margin-bottom: 20px; }
  .ks-banner__title { font-size: 16px; }
  .ks-banner__cta { padding: 10px 18px; }
  .ks-directory .nav-container { gap: 20px; }
  .ks-directory .nav-column, .ks-directory .nav-column:nth-child(n) { padding: 20px 22px 22px; border-radius: 24px; }
  .column-head { margin-bottom: 16px; padding-bottom: 13px; }
  .ks-directory .nav-title { font-size: 17px; gap: 11px; }
  .ks-directory .nav-title::before { width: 34px; height: 34px; border-radius: 10px; }
  .ks-directory .nav-title::after { width: 17px; height: 17px; margin-left: 9px; }
  .node-count { padding: 4px 9px; }
  .ks-directory .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ks-directory .nav-column a.nav-link { min-height: 48px; padding: 0 16px 0 32px; border-radius: 14px; font-size: 15px; }
  .ks-directory .nav-column a.nav-link::before { left: 15px; }
}
@media (min-width: 992px) {
  .ks-directory { padding-top: 28px; }
  .ks-dir-head { margin: 8px 0 16px; }
  .ks-dir-head h1 { font-size: 26px; }
  .ks-dir-note { margin-top: 14px; font-size: 14px; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ks-directory .nav-column { background: rgba(255, 255, 255, 0.9); }
  .ks a.ks-glass { background: rgba(255, 255, 255, 0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .ks a.ks-glass::after, .ks-directory .nav-column a.nav-link::after, .ks-seg__link--shine::after, .ks-status__dot { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .ks-directory .nav-column, .ks a.ks-banner, .ks a.ks-glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.95); }
}

/* 휴대폰: 바로가기 21개가 첫 화면에 다 들어오게 — 설치 띠는 목록 아래로, 분류 개수는 숨김 */
@media (max-width: 767px) {
  .ks-directory > .ks-wrap > .ks-dir-head { order: 1; }
  .ks-directory > .ks-wrap > .nav-container { order: 2; }
  .ks-directory > .ks-wrap > a.ks-banner { order: 4; margin: 14px 0 0; }
  .node-count { display: none; }
  .column-head { margin-bottom: 6px; padding-bottom: 6px; }
  .ks-directory .nav-title { font-size: 13px; gap: 6px; white-space: nowrap; letter-spacing: -0.03em; }
  .ks-directory .nav-title::before { width: 22px; height: 22px; border-radius: 7px; }
  .ks-directory .nav-title::after { width: 13px; height: 13px; margin-left: 5px; }
  .ks-directory .nav-links { gap: 4px; }
  .ks-directory .nav-column a.nav-link { min-height: 35px; }
}

/* ---------- 3. 아래 구역: 위 분류 판과 같은 유리 판으로 통일 ----------
 * 구역 사이 가는 선은 걷고, 판 하나하나가 구역을 나눈다. 판 속에 판을 넣지 않는다. */
.ks-intro, .ks-section { position: relative; isolation: isolate; }
.ks-intro { padding: 32px 0 0; border: 0; }
.ks-section { padding: 48px 0 0; }
.ks-section:last-of-type { padding-bottom: 8px; }
.ks-section::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(26rem 16rem at 8% 40%, rgba(80, 140, 255, 0.10), transparent 70%),
    radial-gradient(22rem 14rem at 92% 70%, rgba(150, 110, 255, 0.08), transparent 70%);
}
.ks .ks-intro__grid.ks-wrap, .ks .ks-appband__grid.ks-wrap, .ks-sites .ks-site, .ks .ks-faq {
  background: rgba(255, 255, 255, 0.54);
  -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 20px 48px -16px rgba(30, 64, 175, 0.11), 0 4px 16px -4px rgba(15, 23, 42, 0.04);
}
.ks-section-head { margin-bottom: 16px; }

/* 소개: 글만 담은 판 하나 */
.ks .ks-intro__grid.ks-wrap { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; padding: 24px 20px; }
.ks .ks-intro__app { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 13px; color: var(--muted); }
@media (min-width: 768px) {
  .ks .ks-intro__grid.ks-wrap { grid-template-columns: 1fr auto; gap: 40px; }
}
.ks-intro h2 { margin-bottom: 8px; }
.ks-intro .ks-lead { font-size: 16px; }

/* 인기 사이트 5곳: 바깥 큰 판을 걷고 사이트마다 유리 판 */
.ks .ks-sites { display: grid; gap: 16px; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ks-sites .ks-site, .ks-sites .ks-site:last-child { padding: 16px; border: 1px solid rgba(255, 255, 255, 0.85); }
.ks-site__media { border-radius: 16px; box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.25); }
.ks .ks-site__more { display: inline-flex; margin-top: 12px; font-weight: 700; }

/* 앱 안내: 판 하나 + 위 설치 띠와 같은 파랑 버튼 */
.ks .ks-appband__grid.ks-wrap { padding: 24px 20px; }
/* 휴대폰 그림은 바깥이 투명하다: 그림자는 휴대폰 모양을 따라가게 */
.ks-appband__media img, .ks-app-shot img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 16px 24px rgba(15, 23, 42, 0.22)); }
.ks a.ks-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border-radius: 13px;
  color: #fff; font-size: 15px; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ks a.ks-cta:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.ks a.ks-cta:active { transform: scale(0.98); }

/* 자주 묻는 질문: 폭 전체 판 하나 */
.ks .ks-faq { max-width: none; padding: 4px 20px; }

@media (min-width: 768px) {
  .ks .ks-intro__grid.ks-wrap { padding: 32px 36px; }
  .ks-sites .ks-site, .ks-sites .ks-site:last-child { padding: 20px 28px 20px 20px; }
  .ks .ks-appband__grid.ks-wrap { padding: 36px 40px; }
  .ks .ks-faq { padding: 8px 36px; }
}
@media (min-width: 992px) { .ks-section { padding-top: 64px; } .ks-intro { padding-top: 40px; } }
@media (prefers-reduced-transparency: reduce) {
  .ks .ks-intro__grid.ks-wrap, .ks .ks-appband__grid.ks-wrap, .ks-sites .ks-site, .ks .ks-faq { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.95); }
}

/* ---------- 4. 안내 페이지·앱 설치 페이지: 첫 화면과 같은 유리 판 ---------- */
.ks .ks-pagehead { padding: 20px 0 0; border: 0; background: none; }
.ks .ks-pagehead__grid.ks-wrap, .ks .ks-article, .ks .ks-phone, .ks .ks-others, .ks .ks-device {
  background: rgba(255, 255, 255, 0.54);
  -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 20px 48px -16px rgba(30, 64, 175, 0.11), 0 4px 16px -4px rgba(15, 23, 42, 0.04);
}
.ks .ks-pagehead__grid.ks-wrap {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); padding: 24px 20px;
}
.ks-pagehead__media img, .ks-pagehead__media img { border-radius: 16px; box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.3); }
.ks-crumbs { margin-bottom: 14px; font-size: 13px; }

/* "OO 바로가기"(기능 블록 .nav-column > .btn_go > a 그대로): 설치 띠와 같은 파랑, 빛이 흐름 */
.ks .ks-go .btn_go a, .ks .setup-btn {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 50px; padding: 12px 24px; border: 0 !important; border-radius: 14px;
  color: #fff !important; font-size: 16px; font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ks .ks-go .btn_go a::after, .ks .setup-btn::after {
  content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent 0, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg); animation: ks-shine 4.2s ease-in-out infinite;
}
.ks .ks-go .btn_go a:hover, .ks .setup-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ks .ks-go .btn_go a:active, .ks .setup-btn:active { transform: scale(0.98); }
.ks .setup-btn[disabled] { opacity: 0.55; }
/* 보조 버튼: 흰 유리 */
.ks .ks-go .ks-btn--line, .ks .setup-btn1 {
  min-height: 50px; padding: 12px 22px; border-radius: 14px; color: var(--ink) !important; font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45)) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: inset 0 1px 0 #fff, 0 6px 20px -8px rgba(31, 38, 135, 0.18) !important;
}
.ks .ks-go .ks-btn--line:hover, .ks .setup-btn1:hover { color: var(--primary) !important; text-decoration: none; }

/* 본문 판 + 옆 판 */
.ks-guide__grid { padding-top: 24px; gap: 24px; }
.ks .ks-article { max-width: none; padding: 24px 20px 28px; }
.ks-facts { border-top: 1px solid rgba(148, 163, 184, 0.35); }
.ks-facts > div { border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
.ks-aside { gap: 20px; }
.ks .ks-phone { padding: 20px 16px 16px; }
.ks-phone img { border-radius: 18px; box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.3); }
.ks .ks-others { padding: 18px 20px 8px; }
.ks .ks-others h2 { border-bottom: 1px solid rgba(148, 163, 184, 0.35); }
.ks-others li a { border-bottom-color: rgba(148, 163, 184, 0.18); }
.ks-others li:last-child a { border-bottom: 0; }

/* 앱 설치 페이지: 기기 고르기는 머리글 메뉴와 같은 유리 분할 */
.ks .ks-tabs {
  gap: 4px; padding: 4px; margin-bottom: 20px; overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.92) !important; border-radius: 14px !important;
  background: rgba(241, 245, 249, 0.72) !important; box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ks .ks-tab { min-height: 52px; margin: 0; border: 0 !important; border-radius: 10px; color: #475569; background: transparent !important; }
.ks .ks-tab[aria-selected="true"] { color: var(--primary); background: rgba(255, 255, 255, 0.96) !important; box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.10), inset 0 1px 0 #fff !important; }
.ks .ks-tab[aria-selected="true"] small { color: var(--muted) !important; }
.ks .ks-device { padding: 24px 20px; }
.ks .ks-device + .ks-device { margin-top: 20px; }
.ks-device__head { border-bottom-color: rgba(148, 163, 184, 0.25); }


@media (min-width: 768px) {
  .ks .ks-pagehead__grid.ks-wrap { padding: 36px 40px; }
  .ks .ks-article { padding: 32px 40px 40px; }
  .ks .ks-device { padding: 32px 40px; }
}
@media (min-width: 992px) { .ks-guide__grid { padding-top: 28px; gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .ks .ks-go .btn_go a::after, .ks .setup-btn::after { animation: none !important; } }
@media (prefers-reduced-transparency: reduce) {
  .ks .ks-pagehead__grid.ks-wrap, .ks .ks-article, .ks .ks-phone, .ks .ks-others, .ks .ks-device { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.95); }
}

/* 첫 화면 대표 제목: 사이트 이름 목록은 한 단계 작고 옅게 */
.ks-dir-head h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ks-dir-head__sites { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; }
@media (min-width: 992px) { .ks-dir-head__sites { font-size: 16px; } }

/* 애드센스 아래 고정 광고가 페이지 끝에 붙이는 여백을 푸터와 같은 남색으로.
 * 바탕(캔버스)은 위 절반 옅은 하늘색·아래 절반 남색, body 배경은 내용 상자까지만 칠한다. */
html { background: linear-gradient(to bottom, #f2f7fc 50%, var(--footer-bg) 50%); }
body.ks { background-clip: content-box; }
