/* ㅋㅋ통신 — 98년 PC 바탕화면. 청록 바탕, 회색 입체 창, 파란 제목줄, 도트 글씨(갈무리).
   모든 것이 '창' 안에 있다. 큰 표정은 창 그 자체와 아래 작업 표시줄. */
:root {
  --desk: #008080;
  --face: #c0c0c0;
  --hi: #ffffff;
  --lo: #808080;
  --dk: #000000;
  --navy: #000080;
  --navy2: #1084d0;
  --ink: #000;
  --pix: 'Galmuri11', 'DungGeunMo', 'Apple SD Gothic Neo', 'Malgun Gothic', monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; word-break: keep-all; overflow-wrap: break-word; }
body {
  margin: 0; color: var(--ink); font: 13px/1.7 var(--pix);
  background-color: var(--desk);
  background-image: radial-gradient(rgba(0, 0, 0, .12) 1px, transparent 1px);
  background-size: 4px 4px;
  padding-bottom: 46px;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }
.desk { max-width: 1100px; margin: 0 auto; padding: 16px 12px 24px; }

/* 창 */
.win { background: var(--face); border: 2px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); box-shadow: inset -1px -1px 0 var(--lo), inset 1px 1px 0 #dfdfdf; padding: 3px; margin-bottom: 14px; }
.bar { display: flex; align-items: center; gap: 6px; min-height: 22px; padding: 2px 4px; color: #fff; font-weight: 700; background: linear-gradient(90deg, var(--navy), var(--navy2)); }
.bar a, .bar h1 { color: #fff; font: inherit; margin: 0; }
.bar .bt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl { margin-left: auto; display: flex; gap: 2px; }
.ctl i { display: grid; place-items: center; width: 16px; height: 14px; font: 700 10px/1 Arial, sans-serif; font-style: normal; color: #000; background: var(--face); border: 1px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); }
.ic { flex: none; width: 16px; height: 14px; background: #ffd94a; border: 1px solid #000; box-shadow: inset 0 3px 0 #e8b400; }
.ic.img { background: linear-gradient(135deg, #7ec8ff 50%, #3a9b3a 50%); box-shadow: none; }
.ic.hot { background: #ff5050; box-shadow: none; border-radius: 50% 50% 4px 4px; }
.inset { background: #fff; border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); box-shadow: inset 1px 1px 0 var(--dk); margin: 3px 0 0; }
.pad { padding: 10px 12px; }
.small { font-size: 12px; }
.status { display: flex; gap: 3px; margin-top: 3px; font-size: 12px; }
.status span { flex: 1; padding: 1px 6px; border: 1px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status a { text-decoration: underline; }

/* 메뉴 */
.hd .bar { font-size: 15px; min-height: 28px; }
.menu { display: flex; flex-wrap: wrap; gap: 0; padding: 2px 0; }
.menu a, .menu span { padding: 2px 10px; }
.menu a:hover, .menu a.on { background: var(--navy); color: #fff; }
.menu.sm { font-size: 12px; border-bottom: 1px solid var(--lo); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.main, .side { min-width: 0; }

/* 탐색기 표 */
.files { width: 100%; border-collapse: collapse; table-layout: fixed; }
.files th { font-weight: 400; text-align: left; padding: 1px 6px; background: var(--face); border: 1px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); }
.files td { padding: 3px 6px; }
.files tr:hover td { background: var(--navy); color: #fff; }
.files tr:hover .nw { color: #ff0; }
.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-d { width: 92px; font-size: 12px; }
.w-v { width: 52px; text-align: right; font-size: 12px; }
.fi { display: inline-block; width: 14px; height: 16px; margin-right: 6px; vertical-align: -3px; border: 1px solid #000; background: #fff; position: relative; }
.fi.txt::after { content: ''; position: absolute; left: 2px; right: 2px; top: 3px; height: 7px; background: repeating-linear-gradient(#000 0 1px, transparent 1px 3px); }
.fi.img { background: linear-gradient(135deg, #7ec8ff 55%, #3a9b3a 55%); }
.nw { margin-left: 6px; color: #c00; font-style: normal; font-size: 11px; }

/* 아이콘 보기 */
.icons { list-style: none; padding: 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 10px; }
.icons a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; }
.icons img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #000; image-rendering: pixelated; }
.icons span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 2px; }
.icons a:hover span { background: var(--navy); color: #fff; }

/* 인기 */
.rank { list-style: none; padding: 4px 6px; }
.rank li { display: flex; gap: 6px; padding: 2px 0; }
.rank b { color: var(--navy); }
.rank a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank a:hover { background: var(--navy); color: #fff; }

/* 메모장 */
.paper { padding: 14px 18px 18px; }
.crumb { margin: 0 0 4px; font-size: 12px; color: #444; }
.crumb a:hover { text-decoration: underline; }
.paper h1 { font-size: 20px; line-height: 1.4; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px dashed #999; }
.body { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.body img { display: block; max-width: 100%; height: auto; margin: 12px 0; border: 1px solid #000; }
.body a { color: #00e; text-decoration: underline; }
.btns { display: flex; gap: 6px; margin-top: 6px; }
.btns .sp { flex: 1; }
.b98 { display: inline-block; min-width: 76px; text-align: center; padding: 3px 10px; background: var(--face); color: #000; border: 2px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); box-shadow: inset -1px -1px 0 var(--lo); }
.b98:active { border-color: var(--dk) var(--hi) var(--hi) var(--dk); }

.pagination { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 0 0 14px; }
.pagination a, .pagination strong, .pagination .gap { min-width: 30px; text-align: center; padding: 2px 8px; background: var(--face); border: 2px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); }
.pagination strong { border-color: var(--dk) var(--hi) var(--hi) var(--dk); background: #dcdcdc; }
.pagination .gap { background: none; border-color: transparent; color: #fff; }

/* 키워드 링크 묶음 — 메모장 속 '참고.txt' 칸 (광고 표시 없음) */
.pl { margin: 16px 0; font-size: 14px; }
.pl p { margin: 2px 0; }
.pl a { color: #00e; text-decoration: underline; }
.pl-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px; margin: 0 0 8px; }
.pl-g a { display: block; }
.body .pl-g img { width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; margin: 0; }
.pl-q { padding: 8px 12px; background: #ffffe1; border: 1px solid #000; }
.pl-q p::before { content: '▸ '; }
.pl-n { padding: 8px 12px; border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); background: #f4f4f4; }
.pad > .pl:only-child { margin: 0; }

.err { max-width: 420px; margin: 40px auto; }
.err .x { float: left; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 12px 0 0; border-radius: 50%; background: #e00; color: #fff; font: 700 22px/1 Arial, sans-serif; }

/* 작업 표시줄 */
.task { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 6px; height: 34px; padding: 3px 4px; background: var(--face); border-top: 2px solid var(--hi); box-shadow: 0 -1px 0 #dfdfdf; font-size: 12px; }
.start { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; font-weight: 700; border: 2px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); }
.flag { width: 14px; height: 12px; background: conic-gradient(#f00 0 25%, #0a0 0 50%, #ff0 0 75%, #00f 0); }
.tsp { flex: 1; }
.tray { padding: 2px 8px; border: 1px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }

@media (max-width: 800px) {
  .cols { grid-template-columns: 1fr; }
  .icons { grid-template-columns: repeat(3, 1fr); }
  .w-d { display: none; }
  .desk { padding: 8px 6px 20px; }
}
.hl { margin: 0; font: inherit; }
