/* ==========================================================
   ANOMALY HUD — Tistory skin (SF / 이능력자 장르)
   Black + White base, red = alert accent only.
   색을 완전 흑백으로 쓰려면 --alert 를 #ffffff 로 바꾸세요.
   ========================================================== */
:root {
  --bg: #000;
  --panel: #0a0a0a;
  --panel2: #131313;
  --line: #262626;
  --hl: #5a5a5a;          /* HUD 프레임 기본 선 색 */
  --txt: #d6d6d6;
  --dim: #858585;
  --accent: #fff;
  --alert: #ff2b2b;
  --mono: 'JetBrains Mono', 'D2Coding', Consolas, 'Courier New', monospace;
  --sans: 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --disp: 'Orbitron', 'Noto Sans KR', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 400 15px/1.75 var(--sans); -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: #fff; text-decoration: none; }
a:hover { color: var(--alert); }
img { max-width: 100%; height: auto; }
::selection { background: #fff; color: #000; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #444; }
::-webkit-scrollbar-track { background: #000; }

/* ---------- HUD 프레임 유틸 (모서리 컷 + 1px 선) ---------- */
.hud { --c: 14px; --hl: #5a5a5a; position: relative; background: var(--hl);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background .2s; }
.hud::before { content: ""; position: absolute; inset: 1px; z-index: 0; background: var(--panel);
  clip-path: polygon(calc(var(--c) - .42px) 0, 100% 0, 100% calc(100% - var(--c) + .42px), calc(100% - var(--c) + .42px) 100%, 0 100%, 0 calc(var(--c) - .42px)); }
.hud > * { position: relative; z-index: 1; }

.hatch { background: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 7px); }
.bar { display: inline-block; position: relative; width: 96px; height: 9px; border: 1px solid #8a8a8a; vertical-align: middle; }
.bar b { position: absolute; inset: 0 auto 0 0; width: var(--p, 50%); background: #fff; }
.hatch.bar b { background: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 5px); }
.bar.hot b { background: var(--alert); }
.red { color: var(--alert) !important; }

.alert-tab { display: inline-block; padding: 4px 10px 4px 8px; background: var(--alert); color: #000; font: 700 10px/1 var(--mono); letter-spacing: .16em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%); }
.scan-tab { display: inline-block; padding: 5px 12px; background: #fff; color: #000; font: 700 11px/1 var(--mono); letter-spacing: .18em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }

/* ---------- 화면 모서리 (아주 작은 브래킷만) ---------- */
.frame { position: fixed; inset: 12px; z-index: 9980; pointer-events: none; }
.frame i { position: absolute; width: 16px; height: 16px; border: 1px solid rgba(255,255,255,.55); }
.frame .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frame .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frame .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- shell / header ---------- */
.shell { max-width: 1260px; margin: 0 auto; padding: 0 36px; }
.head { position: sticky; top: 0; z-index: 60; padding: 22px 0 0; background: linear-gradient(#000 70%, rgba(0,0,0,0)); }
.head-top { display: flex; justify-content: space-between; font: 500 10px/1 var(--mono); letter-spacing: .2em; color: var(--dim); padding: 0 2px 12px; }
.head-top .sys em { font-style: normal; color: var(--alert); }
.head-top .sq { display: inline-block; width: 9px; height: 9px; background: var(--alert); margin-left: 6px; animation: blink 1.4s steps(1) infinite; }
.head-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); position: relative; }
.head-main::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 96px; height: 1px; background: #fff; }
.logo { display: flex; align-items: center; gap: 14px; color: #fff; min-width: 0; }
.logo:hover { color: #fff; }
.logo-mark { position: relative; width: 40px; height: 40px; flex: none; border: 1px solid #fff; display: grid; place-items: center; overflow: hidden; }
.logo-mark i { position: absolute; inset: 0; background:
  linear-gradient(45deg, transparent 47%, #fff 48%, #fff 52%, transparent 53%),
  linear-gradient(-45deg, transparent 47%, #fff 48%, #fff 52%, transparent 53%); }
.logo-mark img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; background: #000; }
.logo-mark img[src=""] { display: none; }
.logo-text { min-width: 0; }
.logo-text strong { display: block; font: 900 17px/1.2 var(--disp); letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text small { display: block; margin-top: 3px; font: 400 10px/1.2 var(--mono); color: var(--dim); letter-spacing: .16em; }
.gnb { display: flex; gap: 6px; }
.gnb a { padding: 9px 14px; font: 500 11px/1 var(--mono); letter-spacing: .18em; color: var(--txt); border: 1px solid transparent; }
.gnb a::before { content: "["; margin-right: 6px; color: var(--dim); } .gnb a::after { content: "]"; margin-left: 6px; color: var(--dim); }
.gnb a i { font-style: normal; color: var(--alert); margin-right: 7px; }
.gnb a:hover { color: #fff; border-color: #fff; }
.gnb a:hover::before, .gnb a:hover::after { color: var(--alert); }
.menu-btn { display: none; width: 40px; height: 36px; background: none; border: 1px solid #fff; padding: 0 9px; flex-direction: column; justify-content: center; gap: 4px; cursor: pointer; }
.menu-btn span { height: 2px; background: #fff; display: block; }

/* ---------- hero : 3D 지구 ---------- */
.hero { display: none; position: relative; height: clamp(560px, 82vh, 760px); margin-top: 6px; }
body#tt-body-index .hero { display: block; }
.hero.is-hidden { display: none !important; }
.hero-tab { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3; font: 500 10px/1 var(--mono); letter-spacing: .3em; color: var(--dim); white-space: nowrap; }
.hero-tab span { padding: 6px 14px; border: 1px solid #333; }
.hero-copy { position: absolute; left: 0; top: 46px; z-index: 3; max-width: min(420px, 42%); }
.hero-copy .alert-tab { display: block; width: max-content; }
.hero-copy .glitch { display: block; width: max-content; max-width: 100%; }
.hero-title { margin: 20px 0 0; font: 900 clamp(26px, 3.6vw, 52px)/1.08 var(--disp); letter-spacing: .02em; color: #fff; text-transform: uppercase; word-break: break-word; }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; }
.glitch::before { color: var(--alert); transform: translate(3px, 0); clip-path: inset(0 0 62% 0); animation: gl1 3.2s steps(1) infinite; }
.glitch::after { color: #fff; opacity: .7; transform: translate(-3px, 0); clip-path: inset(58% 0 0 0); animation: gl2 3.7s steps(1) infinite; }
@keyframes gl1 { 0%,86%,100% { clip-path: inset(0 0 100% 0); } 88% { clip-path: inset(10% 0 55% 0); } 91% { clip-path: inset(40% 0 30% 0); } 94% { clip-path: inset(0 0 70% 0); } }
@keyframes gl2 { 0%,80%,100% { clip-path: inset(100% 0 0 0); } 82% { clip-path: inset(60% 0 10% 0); } 85% { clip-path: inset(30% 0 50% 0); } 88% { clip-path: inset(75% 0 0 0); } }
.hero-desc { margin: 16px 0 0; color: var(--dim); font-size: 14px; white-space: pre-line; }
.hero-actions { margin-top: 22px; }

.globe-wrap { position: absolute; left: 50%; top: 50%; width: min(640px, 92vh, 62vw); transform: translate(-50%, -50%); z-index: 1; }
.globe-wrap::before { content: ""; display: block; padding-top: 100%; }
.globe-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline: 0; }
.globe-wrap canvas:active { cursor: grabbing; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.hero-lines path { fill: none; stroke: #fff; stroke-width: 1; opacity: .75; }
.hero-lines .nd { fill: #000; stroke: var(--alert); stroke-width: 1.5; }
.hero-lines .nd-p { fill: none; stroke: var(--alert); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

.call { --c: 12px; position: absolute; z-index: 3; display: flex; align-items: center; gap: 14px; width: 210px; padding: 14px 16px; border: 0; cursor: pointer; color: #fff; text-align: left; font-family: var(--mono); }
.call:hover, .call:focus-visible { --hl: #fff; outline: 0; }
.call:hover .no, .call:focus-visible .no { color: var(--alert); }
.call .no { font: 900 30px/1 var(--disp); color: #fff; }
.call .tx b { display: block; font: 700 12px/1.2 var(--mono); letter-spacing: .2em; }
.call .tx small { display: block; margin-top: 5px; font: 400 12px/1.2 var(--sans); color: var(--dim); }
.call-1 { right: 0; top: 14%; }
.call-2 { left: 0; top: 40%; }
.call-3 { right: 0; top: 52%; }
.call-4 { left: 0; top: 68%; }
.hero-hud { --c: 10px; position: absolute; left: 0; bottom: 8px; z-index: 3; display: flex; gap: 22px; padding: 10px 16px; font: 400 10px/1 var(--mono); letter-spacing: .16em; }
.hero-hud span { color: var(--dim); margin-right: 8px; } .hero-hud b { color: #fff; font-weight: 500; }

.btn { display: inline-block; padding: 12px 20px; font: 500 12px/1 var(--mono); letter-spacing: .16em; color: #fff; background: transparent; border: 1px solid #fff; cursor: pointer; transition: .2s;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.btn:hover { background: #fff; color: #000; }
.btn.primary { background: #fff; color: #000; font-weight: 700; }
.btn.primary:hover { background: var(--alert); border-color: var(--alert); color: #000; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 40px; align-items: start; padding-top: 18px; }
.content { min-width: 0; padding-bottom: 56px; }
.side { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; display: grid; gap: 18px; padding-bottom: 8px; align-content: start; }

/* ---------- scan head ---------- */
.scan-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); letter-spacing: .12em; }
.scan-title { flex: 1; min-width: 0; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-count { color: var(--dim); }

/* ---------- cards ---------- */
.post-list { display: grid; gap: 18px; counter-reset: file; }
.card { --c: 16px; counter-increment: file; display: block; }
.card:hover { --hl: #fff; }
.card-bar { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); font: 400 10px/1 var(--mono); letter-spacing: .16em; color: var(--dim); }
.fileno::before { content: "FILE // " counter(file, decimal-leading-zero); color: #fff; font-weight: 700; }
.card:hover .fileno::before { color: var(--alert); }
.card-bar .date { margin-left: auto; }
.card-main { display: flex; }
.card-thumb { flex: none; width: 210px; min-height: 150px; background: #111 center / cover no-repeat; border-right: 1px solid var(--line); filter: grayscale(1) contrast(1.15) brightness(.9); transition: filter .35s; position: relative; }
.card-thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px); }
.card:hover .card-thumb { filter: none; }
.card-body { flex: 1; min-width: 0; padding: 18px 22px; }
.card-title { margin: 0 0 8px; font: 700 19px/1.4 var(--sans); }
.card-title a { color: #fff; }
.card-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--alert); text-underline-offset: 5px; }
.card-sum { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font: 400 10px/1 var(--mono); letter-spacing: .16em; }
.sync { display: flex; align-items: center; gap: 10px; color: var(--dim); }
.sync u { text-decoration: none; color: #fff; }
.card-open { color: #fff; }
.card:hover .card-open { color: var(--alert); }

/* ---------- post ---------- */
.post { margin-top: 4px; }
.post-head { --c: 18px; padding: 0 !important; }
.post-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); font: 400 10px/1 var(--mono); letter-spacing: .16em; color: var(--dim); }
.post-title { margin: 0; padding: 26px 20px 24px; font: 700 clamp(22px, 3.4vw, 34px)/1.35 var(--sans); color: #fff; }
.post-title a { color: #fff; }
.post-admin { padding: 0 20px 18px; display: flex; gap: 14px; font: 400 10px/1 var(--mono); letter-spacing: .16em; }
.post-admin a { color: var(--dim); } .post-admin a:hover { color: var(--alert); }

.post-content { padding: 32px 0 10px; font-size: 16px; line-height: 1.95; color: #d9d9d9; }
.post-content p { margin: 0 0 1.1em; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { color: #fff; line-height: 1.4; margin: 2em 0 .8em; font-weight: 700; }
.post-content h2 { font-size: 24px; padding: 0 0 10px 18px; border-bottom: 1px solid var(--line); position: relative; }
.post-content h2::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 20px; background: var(--alert); }
.post-content h3 { font-size: 20px; }
.post-content h3::before { content: "// "; color: var(--alert); font-family: var(--mono); }
.post-content h4 { font-size: 17px; color: var(--txt); }
.post-content a { color: #fff; border-bottom: 1px solid #fff; }
.post-content a:hover { color: var(--alert); border-color: var(--alert); }
.post-content ul, .post-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.post-content li { margin: .3em 0; } .post-content li::marker { color: var(--alert); }
.post-content blockquote { margin: 1.8em 0; padding: 18px 24px; background: var(--panel); color: var(--dim); border: 1px solid #444; border-left: 4px solid #fff; position: relative; }
.post-content blockquote::after { content: "NOTE"; position: absolute; top: -9px; right: 14px; padding: 2px 8px; background: #000; border: 1px solid #444; font: 500 9px/1.2 var(--mono); letter-spacing: .2em; color: var(--dim); }
.post-content blockquote p:last-child { margin: 0; }
.post-content hr { border: 0; height: 1px; margin: 2.6em 0; background: repeating-linear-gradient(90deg, #666 0 6px, transparent 6px 12px); }
.post-content img { border: 1px solid #333; }
.post-content figure { margin: 1.8em 0; }
.post-content figcaption { margin-top: 8px; text-align: center; font: 400 11px var(--mono); color: var(--dim); letter-spacing: .1em; }
.post-content code { font: 400 .88em var(--mono); background: var(--panel2); border: 1px solid #333; color: #fff; padding: 2px 6px; }
.post-content pre { margin: 1.8em 0; padding: 18px 20px; overflow-x: auto; background: #000; border: 1px solid #555; border-top: 3px solid #fff; font: 400 13px/1.7 var(--mono); color: #e6e6e6; }
.post-content pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 14px; display: block; overflow-x: auto; }
.post-content th, .post-content td { padding: 10px 14px; border: 1px solid #444; }
.post-content th { background: #fff; color: #000; font: 700 11px var(--mono); letter-spacing: .12em; text-align: left; }
.post-content iframe, .post-content video { max-width: 100%; border: 1px solid #333; }

.toc { margin: 22px 0 0; border: 1px solid #444; background: var(--panel); }
.toc summary { cursor: pointer; padding: 12px 16px; font: 700 11px/1 var(--mono); letter-spacing: .2em; color: #fff; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: "▸ "; color: var(--alert); } .toc[open] summary::before { content: "▾ "; }
.toc ol { margin: 0; padding: 4px 16px 14px 38px; font-size: 14px; }
.toc li { margin: 4px 0; } .toc li.sub { margin-left: 16px; list-style: circle; }
.toc a { color: var(--txt); border: 0; } .toc a:hover { color: var(--alert); }

.post-tags { margin: 30px 0 0; padding-top: 18px; border-top: 1px dashed #444; font: 400 12px/2.3 var(--mono); color: var(--dim); letter-spacing: .1em; }
.post-tags a { display: inline-block; margin: 0 6px 0 0; padding: 0 10px; border: 1px solid #555; color: var(--txt); }
.post-tags a:hover { border-color: var(--alert); color: var(--alert); }

/* ---------- comments / guestbook ---------- */
.comments, .guest, .tag-page { margin-top: 52px; }
.sec-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .16em; }
.sec-title em { font-style: normal; color: var(--dim); }
.cmt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmt-list.re { margin: 12px 0 0 14px; padding-left: 14px; border-left: 1px dashed #555; }
.cmt { padding: 14px 18px; background: var(--panel); border: 1px solid #333; border-left: 3px solid #fff; }
.cmt-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cmt-head strong { color: #fff; font-size: 14px; }
.cmt-head span { font: 400 10px var(--mono); color: var(--dim); letter-spacing: .1em; }
.cmt-body { margin-top: 8px; font-size: 14px; line-height: 1.75; }
.cmt-act { margin-top: 8px; display: flex; gap: 14px; font: 400 10px var(--mono); letter-spacing: .16em; }
.cmt-act a { color: var(--dim); } .cmt-act a:hover { color: var(--alert); }

.cmt-form { margin-top: 20px; display: grid; gap: 10px; }
.cmt-guest { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmt-form input[type=text], .cmt-form input[type=password], .cmt-form textarea, .prot-form input {
  width: 100%; background: #000; border: 1px solid #555; color: #fff; padding: 12px 14px; font: 400 13px/1.6 var(--mono); outline: 0; resize: vertical; border-radius: 0; }
.cmt-form input:focus, .cmt-form textarea:focus, .prot-form input:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.cmt-submit { display: flex; justify-content: space-between; align-items: center; font: 400 11px var(--mono); color: var(--dim); letter-spacing: .14em; }
.cmt-submit label { cursor: pointer; } .cmt-submit input { accent-color: var(--alert); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 7px 12px; border: 1px solid #555; color: var(--txt); font: 400 12px var(--mono); letter-spacing: .08em; }
.tag-cloud a:hover { border-color: var(--alert); color: var(--alert); }
.tag-cloud .cloud1 { font-size: 15px; color: #fff; border-color: #fff; }
.tag-cloud .cloud2 { font-size: 14px; }
.prot-desc { margin: 24px 0 14px; font: 400 12px var(--mono); letter-spacing: .12em; color: var(--alert); }
.prot-form { display: flex; gap: 10px; max-width: 480px; }

/* ---------- pagination ---------- */
.pagination { margin-top: 36px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 12px/1 var(--mono); letter-spacing: .12em; }
.pg-nums { display: inline-flex; gap: 6px; }
.pg-nums a, .pg-btn { display: inline-block; min-width: 38px; padding: 10px 12px; border: 1px solid #555; color: #fff; text-align: center; }
.pg-nums a:hover, .pg-btn:hover { border-color: #fff; background: #fff; color: #000; }
.pg-nums a.selected, .pg-nums a.current, .pg-nums a.on, .pg-nums a.active,
.pg-nums .selected, .pg-nums .current, .pg-nums .on, .pg-nums .active { background: var(--alert); border-color: var(--alert); color: #000; font-weight: 700; }
.pg-btn.no-more-prev, .pg-btn.no-more-next { opacity: .25; pointer-events: none; }

/* ---------- side panels ---------- */
.panel { --c: 12px; }
.panel:hover { --hl: #aaa; }
.panel-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px 9px 14px; border-bottom: 1px solid var(--line); font: 700 10px/1 var(--mono); letter-spacing: .2em; color: #fff; }
.wb { display: inline-flex; gap: 4px; font-style: normal; }
.wb b { width: 15px; height: 15px; border: 1px solid #666; display: grid; place-items: center; font: 400 9px/1 var(--mono); color: #aaa; }

.search { display: flex; align-items: center; margin: 12px; border: 1px solid #555; background: #000; }
.search:focus-within { border-color: #fff; }
.search .prompt { padding: 0 6px 0 12px; color: var(--alert); font-family: var(--mono); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 400 12px var(--mono); padding: 11px 0; letter-spacing: .06em; }
.search input::placeholder { color: var(--dim); }
.search button { background: none; border: 0; color: var(--dim); padding: 0 12px; cursor: pointer; } .search button:hover { color: var(--alert); }

.category { padding: 8px 14px 12px; }
.category ul { list-style: none; margin: 0; padding: 0; }
.category a { display: block; padding: 6px 8px; margin: 0 -8px; font: 400 12.5px/1.4 var(--mono); color: var(--txt); letter-spacing: .03em; border-left: 2px solid transparent; }
.category a:hover { color: #fff; background: rgba(255,255,255,.06); border-left-color: var(--alert); }
.category .c_cnt { color: var(--dim); font-size: 11px; margin-left: 4px; }
.category .link_tit { color: #fff; font-weight: 700; }
.category .link_tit::before { content: "▣ "; }
.category .category_list { padding-left: 12px; margin: 2px 0 0 4px; border-left: 1px dashed #444; }
.category .sub_category_list { padding-left: 12px; }
.category .link_item::before { content: "▫ "; color: var(--dim); }
.category .link_sub_item::before { content: "· "; color: var(--dim); }

.log-list { list-style: none; margin: 0; padding: 12px 14px 14px; }
.log-list li { border-bottom: 1px dashed #2c2c2c; }
.log-list li:last-child { border: 0; }
.log-list a { display: block; padding: 7px 0 7px 14px; position: relative; font: 400 12px/1.5 var(--mono); color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-list a::before { content: ">"; position: absolute; left: 0; color: var(--alert); }
.log-list a:hover { color: #fff; }

.info { margin: 0; padding: 10px 14px 12px; display: grid; grid-template-columns: 1fr auto; font: 400 11px/2.1 var(--mono); letter-spacing: .12em; }
.info dt { color: var(--dim); } .info dd { margin: 0; text-align: right; color: #fff; }
.info-hatch { height: 14px; margin: 0 14px 14px; border: 1px solid #666; opacity: .9; }
.admin-link { justify-self: end; font: 400 10px/1 var(--mono); letter-spacing: .18em; color: var(--dim); padding: 2px 2px 0; }

/* ---------- footer ---------- */
.footer { margin-top: 20px; padding: 26px 0 36px; border-top: 1px solid var(--line); }
.signal { display: flex; align-items: center; gap: 16px; font: 400 10px/1 var(--mono); letter-spacing: .2em; color: var(--dim); }
.signal i { position: relative; flex: 0 1 380px; height: 12px; }
.signal i::before { content: ""; position: absolute; inset: 0 18% 0 0; background: repeating-linear-gradient(90deg, #cfcfcf 0 2px, transparent 2px 6px); }
.signal i::after { content: ""; position: absolute; inset: 0 0 0 82%; background: repeating-linear-gradient(90deg, var(--alert) 0 2px, transparent 2px 6px); }
.foot-meta { margin-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 400 10px/1.6 var(--mono); letter-spacing: .14em; color: var(--dim); }
.foot-meta a { color: var(--dim); } .foot-meta a:hover { color: var(--alert); }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 9995; background: var(--alert); }
.to-top { position: fixed; right: 30px; bottom: 30px; z-index: 70; width: 42px; height: 42px; background: #000; border: 1px solid #fff; color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: .25s; font-size: 11px; }
.to-top.show { opacity: 1; pointer-events: auto; } .to-top:hover { background: #fff; color: #000; }
.scrim { display: none; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.7); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- intro ---------- */
.boot { position: fixed; inset: 0; z-index: 9999; background: #000; display: none; align-items: center; justify-content: center; padding: 24px; transition: opacity .6s ease, visibility .6s; }
.boot.on { display: flex; } .boot.done { opacity: 0; visibility: hidden; }
.boot-inner { --c: 18px; width: min(540px, 100%); padding: 26px 28px 22px; font-family: var(--mono); }
.boot-title { margin: 18px 0 16px; font: 900 clamp(24px, 6vw, 40px)/1.1 var(--disp); color: #fff; letter-spacing: .04em; word-break: break-word; text-transform: uppercase; }
.boot-lines { min-height: 118px; font-size: 12px; line-height: 1.95; color: var(--dim); letter-spacing: .1em; }
.boot-lines .w { color: #fff; } .boot-lines .r { color: var(--alert); }
.boot-meter { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.boot-meter .bar { flex: 1; width: auto; }
.boot-meter u { text-decoration: none; font-size: 11px; color: #fff; letter-spacing: .14em; }
.boot-skip { margin-top: 20px; text-align: center; font-size: 10px; letter-spacing: .22em; color: var(--dim); animation: blink 1.6s infinite; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .shell { padding: 0 22px; }
  .layout { grid-template-columns: 1fr; }
  .gnb { display: none; }
  .menu-btn { display: flex; }
  .side { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(340px, 88vw); max-height: none; padding: 22px 16px; background: #000; border-left: 1px solid #fff; transform: translateX(100%); transition: transform .3s ease; }
  body.menu-open .side { transform: none; } body.menu-open .scrim { display: block; }
  .hero { height: auto; padding-bottom: 8px; }
  .hero-tab { display: none; }
  .hero-copy { position: static; max-width: none; padding-top: 28px; }
  .globe-wrap { position: relative; left: auto; top: auto; transform: none; width: min(460px, 100%); margin: 14px auto 0; }
  .hero-lines { display: none; }
  .call { position: relative; right: auto; top: auto; display: inline-flex; width: calc(50% - 5px); margin-top: 6px; }
  .hero-hud { position: static; margin-top: 12px; width: max-content; }
  .side-quick { display: grid; }
}
@media (max-width: 640px) {
  .shell { padding: 0 16px; }
  .frame { inset: 6px; }
  .call { padding: 12px; gap: 10px; } .call .no { font-size: 22px; } .call .tx b { letter-spacing: .12em; }
  .card-main { flex-direction: column; }
  .card-thumb { width: 100%; min-height: 0; height: 170px; border-right: 0; border-bottom: 1px solid var(--line); }
  .card-body { padding: 16px 18px; }
  .cmt-guest { grid-template-columns: 1fr; }
  .post-content { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 카테고리: 거의 안 보이게 접어 둠 ---------- */
.cat-fold { justify-self: end; opacity: .28; transition: opacity .2s; }
.cat-fold:hover, .cat-fold[open] { opacity: 1; }
.cat-fold summary { list-style: none; cursor: pointer; text-align: right; font: 400 14px/1 var(--mono); letter-spacing: .3em; color: var(--dim); padding: 4px 2px; }
.cat-fold summary::-webkit-details-marker { display: none; }
.cat-fold .category { margin-top: 6px; padding: 8px 14px 12px; border: 1px solid #222; min-width: 220px; background: #000; }

.side-quick { display: none; gap: 8px; grid-template-columns: 1fr 1fr; }
.side-quick .btn { padding: 12px 8px; text-align: center; }

/* ---------- 모달 (01 성향글 / 02 프로필) ---------- */
.modal { position: fixed; inset: 0; z-index: 9996; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(3px); }
.modal-box { --c: 18px; position: relative; width: min(720px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: pop .25s ease; }
.modal-box.is-profile { width: min(1000px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.modal-title { display: flex; align-items: center; gap: 12px; font: 700 11px/1 var(--mono); letter-spacing: .24em; color: #fff; }
.modal-title b { padding: 4px 8px; background: var(--alert); color: #000; font-weight: 700; }
.modal-x { width: 30px; height: 30px; background: none; border: 1px solid #666; color: #fff; cursor: pointer; font-size: 13px; }
.modal-x:hover { background: #fff; color: #000; }
.modal-body { overflow-y: auto; padding: 24px 24px 28px; }
body.modal-open { overflow: hidden; }
.sheet[hidden] { display: none; }

.sheet-head small, .pf-head small { display: block; font: 400 10px/1 var(--mono); letter-spacing: .24em; color: var(--dim); }
.sheet-head h2 { margin: 10px 0 0; font: 900 30px/1.2 var(--sans); color: #fff; }
.lead { margin: 18px 0 22px; padding-left: 14px; border-left: 3px solid var(--alert); color: #e2e2e2; font-size: 15px; line-height: 1.9; }
.tend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tend { --c: 10px; padding: 14px 16px 16px; }
.tend h3 { margin: 0 0 10px; font: 700 11px/1 var(--mono); letter-spacing: .22em; color: #fff; }
.tend h3 span { color: var(--alert); margin-right: 6px; }
.tend ul { margin: 0; padding-left: 1.1em; font-size: 13.5px; line-height: 1.8; color: var(--txt); }
.tend li::marker { color: var(--dim); }
.tend-no h3 span { color: var(--alert); }
.tend-note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #444; }
.tend-note h3 { margin: 0 0 8px; font: 700 11px/1 var(--mono); letter-spacing: .22em; color: var(--dim); }
.tend-note p { margin: 0; font-size: 14px; line-height: 1.9; }

/* 프로필 시트 */
.pf { display: grid; gap: 12px; }
.pf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid #fff; }
.pf-head h2 { margin: 8px 0 0; font: 900 24px/1.1 var(--disp); letter-spacing: .04em; color: #fff; }
.pf-no { text-align: right; font: 400 10px/1.6 var(--mono); letter-spacing: .16em; color: var(--dim); }
.pf-no em { display: block; font-style: normal; color: var(--alert); }
.pf-box { --c: 10px; padding: 0 0 14px; }
.pf-box h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; padding: 8px 14px; background: #fff; color: #000; font: 700 11px/1 var(--mono); letter-spacing: .22em; }
.pf-box h3 i { font-style: normal; opacity: .6; }
.pf-box > :not(h3) { margin-left: 14px; margin-right: 14px; }
.pf-agent { display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.pf-photo { margin: 0 !important; position: relative; border: 1px solid #555; background: #111; }
.pf-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pf-photo figcaption { display: flex; justify-content: space-between; padding: 4px 6px; font: 400 9px/1 var(--mono); letter-spacing: .12em; color: var(--dim); border-top: 1px solid #333; }
.pf-kv { margin-bottom: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 14px; align-content: start; font-size: 13.5px; }
.pf-kv dt { padding: 7px 0; border-bottom: 1px dashed #333; font: 400 10px/1.9 var(--mono); letter-spacing: .14em; color: var(--dim); }
.pf-kv dd { margin: 0; padding: 7px 0; border-bottom: 1px dashed #333; color: #fff; }
.pf-list { margin-bottom: 0; padding-left: 1.2em; font-size: 13.5px; line-height: 1.8; }
.pf-list li::marker { color: var(--alert); }
.pf-ab { padding: 8px 0; border-bottom: 1px dashed #333; }
.pf-ab:last-child { border: 0; }
.pf-ab h4 { margin: 0 0 4px; font-size: 14px; color: #fff; }
.pf-ab h4 em { margin-left: 8px; padding: 1px 6px; border: 1px solid var(--alert); color: var(--alert); font: 400 9px/1.4 var(--mono); letter-spacing: .14em; font-style: normal; }
.pf-ab p, .pf-text { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--txt); }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-stat { list-style: none; padding: 0; margin-bottom: 0; display: grid; gap: 8px; }
.pf-stat li { display: grid; grid-template-columns: 1fr 70px 24px; align-items: center; gap: 8px; font: 400 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--dim); }
.pf-stat .bar { width: 100%; height: 8px; }
.pf-stat u { text-decoration: none; color: #fff; text-align: right; }
.pf-warn { --hl: var(--alert); }
.pf-warn h3 { background: var(--alert); }
.pf-warn .pf-text { color: #ff9a9a; }

@media (max-width: 640px) {
  .modal { padding: 10px; }
  .modal-body { padding: 18px 16px 22px; }
  .tend-grid, .pf-two { grid-template-columns: 1fr; }
  .pf-agent { grid-template-columns: 110px 1fr; gap: 12px; }
}

/* ---------- 02 프로필: 2명 동시 ---------- */
.pf-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.pf-duo .pf-agent { grid-template-columns: 120px 1fr; gap: 12px; }
.pf-duo .pf-photo img { aspect-ratio: 3 / 4; }
.pf-duo .pf-kv dt { font-size: 9px; }
.pf-duo .pf-kv { font-size: 12.5px; }
.pf-text strong { color: #fff; }
@media (max-width: 800px) { .pf-duo { grid-template-columns: 1fr; gap: 34px; } }
.pf-duo .pf-photo { align-self: start; }
.pf-duo .pf-kv.slim { grid-template-columns: 1fr; } .pf-duo .pf-kv.slim dt { border: 0; padding-bottom: 0; } .pf-duo .pf-kv.slim dd { padding-top: 0; }

/* ---------- 홈 화면은 히어로만 (목록 · 사이드바 · 푸터 숨김) ---------- */
body#tt-body-index .layout,
body#tt-body-index .signal,
body#tt-body-index .menu-btn,
body#tt-body-index .to-top { display: none !important; }
body#tt-body-index .hero { height: calc(100vh - 120px); min-height: 560px; max-height: 860px; }
body#tt-body-index .footer { margin-top: 0; padding: 8px 0 18px; border: 0; }
body#tt-body-index .foot-meta { margin: 0; justify-content: center; opacity: .4; }
@media (max-width: 1000px) { body#tt-body-index .hero { height: auto; max-height: none; } }

/* ---------- 03 아카이브 ---------- */
.arc-search { margin: 18px 0 16px; }
.arc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.arc-box { --c: 10px; padding-bottom: 8px; min-height: 160px; }
.arc-box h3 { margin: 0 0 6px; padding: 8px 14px; background: #fff; color: #000; font: 700 11px/1 var(--mono); letter-spacing: .22em; }
.arc-box .category, .arc-box .log-list { max-height: 300px; overflow-y: auto; }
.arc-links { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #444; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 11px/1 var(--mono); letter-spacing: .16em; }
@media (max-width: 640px) { .arc-grid { grid-template-columns: 1fr; } }

/* ---------- 01 NOTICE·NG / 04 LIST : 체크 리스트 ---------- */
.ck-block + .ck-block { margin-top: 26px; padding-top: 22px; border-top: 1px dashed #333; }
.ck-tab { display: inline-block; margin: 0 0 12px; padding: 6px 16px; background: #fff; color: #000; font: 700 11px/1 var(--mono); letter-spacing: .24em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.ck { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ck li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.8; color: var(--txt); }
.ck li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--alert); font-size: 12px; }
.ck strong { color: #fff; }

.head-main { justify-content: flex-end; }
