/* ═══════════ STUDY//MUSEUM — Holographic HUD ═══════════ */
:root {
  --bg: #03070d;
  --bg-2: #07111c;
  --glass: rgba(10, 28, 44, 0.55);
  --glass-2: rgba(14, 40, 62, 0.7);
  --line: rgba(56, 225, 255, 0.16);
  --line-2: rgba(56, 225, 255, 0.35);
  --cyan: #38e1ff;
  --cyan-2: #8ff0ff;
  --cyan-dim: #2a8aa3;
  --text: #d6f2fb;
  --text-dim: #7fa6b5;
  --text-faint: #476878;
  --warn: #ffb547;
  --accent: var(--cyan);
  --glow: 0 0 12px rgba(56, 225, 255, 0.45), 0 0 32px rgba(56, 225, 255, 0.18);
  --display: "Orbitron", "Noto Sans KR", sans-serif;
  --mono: "JetBrains Mono", "Noto Sans KR", monospace;
  --sans: "Noto Sans KR", system-ui, sans-serif;
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(56, 225, 255, 0.13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(80, 120, 255, 0.08), transparent 70%),
    var(--bg);
  color: var(--text); font-family: var(--sans); font-weight: 400; line-height: 1.7;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(56, 225, 255, 0.35); color: #fff; }
a { color: inherit; text-decoration: none; }
main { flex: 1; position: relative; z-index: 2; padding-bottom: 56px; }
kbd {
  font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--line-2); color: var(--cyan-2); background: rgba(56, 225, 255, 0.06);
}

/* 배경 */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body::before { /* 홀로그램 그리드 */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 225, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 225, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
}
.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: var(--glow); transition: width .1s linear; }

/* ── 부팅 시퀀스 ── */
.boot {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 28px;
  transition: opacity .6s ease, visibility .6s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-core { position: relative; width: 180px; height: 180px; }
.boot-rings { width: 100%; height: 100%; overflow: visible; }
.boot-rings circle { fill: none; stroke: var(--cyan); transform-origin: 100px 100px; filter: drop-shadow(0 0 6px var(--cyan)); }
.boot-rings .r1 { stroke-width: 1; stroke-dasharray: 4 8; opacity: .6; animation: spin 8s linear infinite; }
.boot-rings .r2 { stroke-width: 3; stroke-dasharray: 120 40 20 40; animation: spin 3s linear infinite reverse; }
.boot-rings .r3 { stroke-width: 1.5; stroke-dasharray: 2 4; opacity: .8; animation: spin 5s linear infinite; }
.boot-rings .r4 { stroke-width: 6; opacity: .9; stroke-dasharray: 160 30; animation: spin 1.6s linear infinite; }
.boot-pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 22px; color: var(--cyan-2); text-shadow: var(--glow);
}
.boot-log {
  margin: 0; width: min(520px, calc(100vw - 32px)); height: 150px; overflow: hidden;
  font-family: var(--mono); font-size: 12px; line-height: 1.75; color: var(--text-dim);
}
.boot-log .ok { color: var(--cyan); }
.boot-skip { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: var(--text-faint); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 상단바 ── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(rgba(3, 7, 13, 0.92), rgba(3, 7, 13, 0.6));
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%; position: relative;
  border: 1.5px solid var(--cyan); box-shadow: var(--glow), inset 0 0 10px rgba(56, 225, 255, .4);
}
.logo-mark::before, .logo-mark i {
  content: ""; position: absolute; border-radius: 50%; inset: 5px;
  border: 2px solid transparent; border-top-color: var(--cyan-2); border-bottom-color: var(--cyan-2);
  animation: spin 4s linear infinite;
}
.logo-mark i { inset: 10px; background: var(--cyan-2); border: none; box-shadow: 0 0 10px var(--cyan); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.8); } }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .2em; }
.logo-text b { color: var(--cyan); text-shadow: var(--glow); margin: 0 2px; }
.topnav { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 28px); font-family: var(--display); font-size: 11.5px; letter-spacing: .2em; }
.topnav a { color: var(--text-dim); position: relative; padding: 4px 0; transition: color .2s; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--cyan); box-shadow: var(--glow); transition: right .3s; }
.topnav a:hover, .topnav a.active { color: var(--cyan-2); }
.topnav a.active::after { right: 0; }
.cmdk-btn {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font: 500 12px var(--sans); letter-spacing: 0; color: var(--text-dim);
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 14px;
  transition: .2s;
}
.cmdk-btn:hover { border-color: var(--line-2); color: var(--text); box-shadow: var(--glow); }

/* ── 공통: HUD 패널 (코너 브래킷) ── */
.hud {
  position: relative; background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--r); backdrop-filter: blur(10px);
}
.hud::before, .hud::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border: 2px solid var(--accent); filter: drop-shadow(0 0 4px var(--accent));
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r); }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r); }
.label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; }

/* ── 히어로 ── */
.hero {
  max-width: 1240px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px) 40px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero-text .label { display: inline-flex; align-items: center; gap: 10px; }
.hero-text .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow); animation: pulse 1.6s infinite; }
.hero h1 {
  font-family: var(--sans); font-weight: 900; font-size: clamp(38px, 6.4vw, 80px);
  line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 18px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #fff 0%, var(--cyan-2) 40%, var(--cyan) 70%, #5a8bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(56, 225, 255, .35));
}
.hero .greet { font-family: var(--mono); font-size: 14px; color: var(--cyan-2); min-height: 1.7em; }
.hero .greet::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }
.hero p.sub { color: var(--text-dim); font-size: 15.5px; max-width: 520px; margin: 12px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font: 500 13px var(--sans); display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; transition: .25s; border: 1px solid var(--line-2);
  color: var(--text); background: var(--glass);
}
.btn:hover { box-shadow: var(--glow); border-color: var(--cyan); }
.btn.primary { background: linear-gradient(120deg, rgba(56, 225, 255, .9), rgba(90, 139, 255, .9)); color: #021018; border-color: transparent; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.12); }

/* 리액터 코어 */
.reactor { position: relative; aspect-ratio: 1; width: min(100%, 440px); justify-self: center; }
.reactor svg { width: 100%; height: 100%; overflow: visible; }
.reactor .ring { fill: none; stroke: var(--cyan); transform-origin: 200px 200px; }
.reactor .spin-a { animation: spin 40s linear infinite; }
.reactor .spin-b { animation: spin 24s linear infinite reverse; }
.reactor .spin-c { animation: spin 12s linear infinite; }
.reactor .spin-d { animation: spin 70s linear infinite reverse; }
.reactor text { font-family: var(--mono); fill: var(--text-dim); font-size: 9px; letter-spacing: .2em; }
.reactor .core-glow { fill: url(#coreGrad); animation: pulse 3s ease-in-out infinite; transform-origin: 200px 200px; }
.reactor-center {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none;
}
.reactor-center b { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 68px); line-height: 1; color: #fff; text-shadow: var(--glow); }
.reactor-center span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: var(--cyan); margin-top: 6px; }

/* 스탯 바 */
.stats {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat { padding: 16px 18px; }
.stat b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; color: #fff; }
.stat small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--text-dim); }
.stat .bar { height: 3px; border-radius: 3px; background: rgba(56, 225, 255, .1); margin-top: 10px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); width: 0; transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }

/* ── 필터 ── */
.controls {
  max-width: 1240px; margin: 56px auto 0; padding: 0 clamp(16px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.halls { display: flex; flex-wrap: wrap; gap: 8px; }
.hall-btn {
  font: 500 12px var(--mono); letter-spacing: .06em; cursor: pointer;
  color: var(--text-dim); background: var(--glass); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 8px; transition: .2s; display: inline-flex; align-items: center; gap: 8px;
}
.hall-btn i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--cyan)); box-shadow: 0 0 8px var(--c, var(--cyan)); }
.hall-btn:hover { color: var(--text); border-color: var(--line-2); }
.hall-btn.active { color: #fff; border-color: var(--c, var(--cyan)); box-shadow: 0 0 0 1px var(--c, var(--cyan)) inset, 0 0 18px -4px var(--c, var(--cyan)); }
.hall-btn em { font-style: normal; color: var(--text-faint); }
.search {
  display: flex; align-items: center; gap: 10px; min-width: min(320px, 100%);
  background: var(--glass); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; transition: .2s;
}
.search:focus-within { border-color: var(--cyan); box-shadow: var(--glow); }
.search span { font-family: var(--mono); color: var(--cyan); }
.search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font: 14px var(--sans); padding: 10px 0; min-width: 0; }
.search input::placeholder { color: var(--text-faint); }

/* ── 섹션 / 그리드 ── */
.section { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.hall-head { display: flex; align-items: flex-end; gap: 18px; margin: 64px 0 22px; }
.hall-head .idx { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--accent); opacity: .7; }
.hall-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3vw, 28px); letter-spacing: .06em; }
.hall-head p { margin: 2px 0 0; color: var(--text-dim); font-size: 13.5px; }
.hall-head .rule { flex: 1; height: 1px; align-self: center; background: linear-gradient(90deg, var(--accent), transparent); opacity: .5; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }

/* 카드 */
.card {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--accent) 45%, transparent); }
.card .spot { /* 마우스 따라오는 빛 */
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
}
.card:hover .spot { opacity: 1; }
.card .holo { position: relative; height: 170px; border-bottom: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.card .holo svg { width: 100%; height: 100%; display: block; }
.card .holo .id { position: absolute; top: 12px; left: 14px; }
.card .holo .min { position: absolute; top: 12px; right: 14px; font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .date { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.card .go { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; transition: transform .25s; }
.card:hover .go { transform: translateX(4px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); border: 1px solid var(--line); padding: 1px 8px; border-radius: 6px; }

/* 홀로그램 애니메이션 */
.holo .rot { transform-box: fill-box; transform-origin: center; animation: spin 9s linear infinite; }
.holo .rot-r { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite reverse; }
.holo .blink { animation: pulse 2s ease-in-out infinite; }
.holo .eq { transform-box: fill-box; transform-origin: bottom; animation: eq 1.6s ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.holo .flow { stroke-dasharray: 4 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }

.empty { text-align: center; color: var(--text-dim); padding: 80px 16px; font-family: var(--mono); }

/* 입장 애니메이션 */
.reveal { opacity: 0; transform: translateY(22px); filter: blur(4px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s; }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ── 상세 페이지 ── */
.room { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 40px; }
.back { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--text-dim); display: inline-flex; gap: 8px; transition: color .2s; }
.back:hover { color: var(--cyan); }
.room-head { margin: 22px 0 24px; padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: center; overflow: hidden; }
.room-head h1 { font-weight: 900; font-size: clamp(26px, 4.4vw, 46px); line-height: 1.2; letter-spacing: -.02em; margin: 12px 0 14px; }
.room-head .summary { color: var(--text-dim); margin: 0 0 18px; }
.meta-grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px 28px; }
.meta-grid div { font-family: var(--mono); font-size: 12px; color: var(--text); }
.meta-grid small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--text-faint); }
.room-head .holo { height: 200px; border-radius: 10px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 110%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%); overflow: hidden; }
.room-head .holo svg { width: 100%; height: 100%; display: block; }

.room-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.side .hud { padding: 18px; }
.toc a { display: block; font-size: 13px; color: var(--text-faint); padding: 5px 0 5px 12px; border-left: 1px solid var(--line); line-height: 1.5; transition: .2s; }
.toc a.h3 { padding-left: 24px; font-size: 12.5px; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--cyan-2); border-left-color: var(--cyan); box-shadow: -1px 0 0 var(--cyan); text-shadow: 0 0 10px rgba(56, 225, 255, .5); }
.side .label { display: block; margin-bottom: 12px; }

/* 본문 */
.doc { padding: clamp(22px, 4.5vw, 56px); font-size: 16px; line-height: 1.9; min-width: 0; }
.doc > :first-child { margin-top: 0; }
.doc h1, .doc h2, .doc h3, .doc h4 { color: #fff; line-height: 1.4; scroll-margin-top: 90px; letter-spacing: -.01em; }
.doc h2 { font-size: 23px; margin: 2.2em 0 .8em; padding-left: 14px; position: relative; }
.doc h2::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.doc h3 { font-size: 18.5px; margin-top: 1.8em; color: var(--cyan-2); }
.doc a { color: var(--cyan); border-bottom: 1px dashed var(--line-2); }
.doc a:hover { text-shadow: var(--glow); }
.doc strong { color: #fff; }
.doc em { color: var(--cyan-2); }
.doc blockquote {
  margin: 1.6em 0; padding: 14px 18px; border-radius: 10px;
  background: rgba(56, 225, 255, .06); border: 1px solid var(--line); border-left: 3px solid var(--cyan); color: var(--text);
}
.doc blockquote p { margin: 0; }
.doc :not(pre) > code { font-family: var(--mono); font-size: .85em; color: var(--cyan-2); background: rgba(56, 225, 255, .08); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.codebox { margin: 1.6em 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #050c14; }
.codebox .bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; border-bottom: 1px solid var(--line); background: rgba(56, 225, 255, .04); }
.codebox .bar .dots { display: flex; gap: 6px; }
.codebox .bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-faint); opacity: .5; }
.codebox .bar .dots i:first-child { background: var(--cyan); opacity: .9; box-shadow: 0 0 6px var(--cyan); }
.codebox .lang { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); letter-spacing: .15em; text-transform: uppercase; }
.codebox .copy { font: 500 10.5px var(--mono); color: var(--text-dim); background: none; border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; cursor: pointer; transition: .2s; }
.codebox .copy:hover { color: var(--cyan); border-color: var(--cyan); }
.codebox pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; }
.codebox pre code { font-family: var(--mono); background: none !important; padding: 0 !important; }
.doc img { max-width: 100%; display: block; margin: 1.6em auto; border-radius: 10px; border: 1px solid var(--line); }
.doc table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14px; display: block; overflow-x: auto; }
.doc th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--cyan); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); background: rgba(56, 225, 255, .05); white-space: nowrap; }
.doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc tr:hover td { background: rgba(56, 225, 255, .03); }
.doc hr { border: none; height: 1px; margin: 2.4em 0; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .5; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li::marker { color: var(--cyan); }
.doc li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.4em; }
.doc input[type="checkbox"] { accent-color: var(--cyan); margin-right: 8px; transform: translateY(1px); }

.neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.neighbors a { padding: 18px 20px; transition: .25s; }
.neighbors a:hover { border-color: var(--line-2); box-shadow: var(--glow); }
.neighbors div { margin-top: 6px; font-weight: 500; }
.neighbors .next { text-align: right; grid-column: 2; }

/* ── 아카이브 (터미널 로그) ── */
.archive { max-width: 980px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 40px; }
.archive h1 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5vw, 48px); letter-spacing: .08em; margin: 10px 0 28px; }
.term { padding: 8px 0; overflow: hidden; }
.term .tbar { display: flex; gap: 8px; align-items: center; padding: 8px 18px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.term .year { font-family: var(--mono); color: var(--cyan); padding: 18px 18px 6px; font-size: 13px; }
.row {
  display: grid; grid-template-columns: 70px 120px 1fr auto; gap: 14px; align-items: baseline;
  padding: 10px 18px; font-family: var(--mono); font-size: 13px; transition: background .15s;
}
.row:hover { background: rgba(56, 225, 255, .06); }
.row:hover .t { color: #fff; }
.row time { color: var(--text-faint); }
.row .c { color: var(--accent); font-size: 11.5px; }
.row .t { font-family: var(--sans); color: var(--text); }
.row .arrow { color: var(--text-faint); }

/* ── 커맨드 팔레트 ── */
.cmdk { position: fixed; inset: 0; z-index: 90; background: rgba(1, 4, 8, .7); backdrop-filter: blur(6px); display: grid; place-items: start center; padding: 12vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk-panel {
  width: min(640px, 100%); background: rgba(6, 18, 30, .92); border: 1px solid var(--line-2);
  border-radius: 14px; box-shadow: 0 30px 80px -20px #000, var(--glow); overflow: hidden;
  animation: pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk-input .prompt { font-family: var(--mono); color: var(--cyan); font-size: 18px; }
.cmdk-input input { flex: 1; background: none; border: none; outline: none; color: #fff; font: 16px var(--sans); min-width: 0; }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.cmdk-list li a { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; }
.cmdk-list li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.cmdk-list li span { font-size: 14px; }
.cmdk-list li small { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.cmdk-list li.sel a { background: rgba(56, 225, 255, .1); box-shadow: inset 2px 0 0 var(--cyan); }
.cmdk-list .none { padding: 24px; text-align: center; color: var(--text-faint); font-family: var(--mono); font-size: 13px; }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-faint); }
.cmdk-foot kbd { margin-right: 3px; }

/* ── 상태바 ── */
.statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 7px clamp(16px, 4vw, 48px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--text-faint); white-space: nowrap;
  background: rgba(3, 7, 13, .85); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.statusbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #3dffa8; box-shadow: 0 0 8px #3dffa8; animation: pulse 2s infinite; }
.statusbar .grow { flex: 1; }
.statusbar .sep { opacity: .4; }
#sb-clock { color: var(--cyan); }

/* ── 반응형 ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .reactor { width: min(80vw, 340px); order: -1; }
  .room-head { grid-template-columns: 1fr; }
  .room-head .holo { display: none; }
  .room-body { grid-template-columns: 1fr; }
  .side { position: static; order: -1; }
  .side .toc-box { display: none; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .topnav a { display: none; }
  .logo-text { font-size: 13px; letter-spacing: .14em; }
  .meta-grid { grid-template-columns: repeat(2, auto); }
  .row { grid-template-columns: 56px 1fr; gap: 2px 12px; }
  .row .c { grid-column: 2; grid-row: 2; }
  .row .arrow { display: none; }
  .neighbors { grid-template-columns: 1fr; }
  .neighbors .next { grid-column: 1; }
  .statusbar .hide-sm, .statusbar .sep, #sb-count { display: none; }
  .controls { flex-direction: column; align-items: stretch; }
  .hall-head { gap: 12px; }
  .hall-head .idx { font-size: 30px; align-self: flex-start; }
  .hall-head .rule { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
