:root {
  --bg-black: #080606;
  --bg-black-2: #0d0709;
  --burgundy: #200a0c;

  --ink: #e6c9a3;        /* 본문 텍스트 — 따뜻한 아이보리, 빨강 아님 */
  --ink-dim: #c2a878;    /* 일반 정보 — 브론즈지만 확실히 읽히는 밝기로 */

  --gold: #d9a94a;       /* aged gold — Rules 페이지 톤에 맞춰 밝기 올림 */
  --gold-dim: #a3853f;

  --red: #b8232f;        /* REC / LED 표시용, 아주 절제해서만 사용 */
  --red-accent: #7a1c2b; /* Episode 왼쪽 얇은 accent line 전용 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg-black-2);
  color: var(--ink);
  font-family: 'Noto Serif KR', 'Cormorant Garamond', serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  word-break: keep-all;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-black);
  overflow: hidden;
  padding-bottom: 60px;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../image/wood.jpg") center center / cover no-repeat;
  filter: grayscale(1) brightness(0.09) contrast(1.1);
  z-index: 0;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 45% at 50% 8%, rgba(120, 20, 24, 0.16), transparent 60%),
    radial-gradient(ellipse 80% 35% at 50% 100%, rgba(90, 14, 18, 0.1), transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 50;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 49;
}

/* ---------- Header ---------- */

.profile-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 60px 24px 24px;
}

.ep-channel {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--red);
  margin-bottom: 8px;
}

.profile-eyebrow {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.profile-title {
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--gold);
}

.profile-rule {
  width: 60px;
  height: 1px;
  margin: 16px auto 12px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.archive-summary {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-dim);
  line-height: 2;
}

.archive-summary .online {
  color: var(--ink);
}

.archive-summary .online .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  animation: led-blink 2.2s infinite ease-in-out;
}

@keyframes led-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ================================================
   Archive Document — 카드 없이 하나의 기록 문서
   ================================================ */

.archive-list {
  position: relative;
  z-index: 10;
  padding: 0 20px;
  margin-bottom: 20px;
}

.archive-document {
  border: 1px solid rgba(125, 104, 57, 0.6);
  background: rgba(10, 6, 6, 0.35);
}

/* ---------- 한 항목(Episode) ---------- */

.archive-entry {
  padding: 17px 22px;
  border-bottom: 1px solid rgba(168, 134, 63, 0.16);
  border-left: 2px solid var(--red-accent);
}

.archive-entry:last-child {
  border-bottom: none;
}

.entry-row1 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.entry-ep {
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 3px;
  color: var(--ink-dim);
}

.entry-date {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--ink-dim);
  flex-shrink: 0;
}

.entry-title {
  display: block;
  font-family: 'Noto Serif KR', 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--gold);
  text-decoration: none;
  margin-top: 6px;
  line-height: 1.4;
  transition: color 0.15s;
}

.entry-title:hover {
  color: #c9a75a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-rule {
  height: 1px;
  background: rgba(168, 134, 63, 0.12);
  margin-top: 11px;
}

.entry-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.entry-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Courier New', monospace;
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--ink-dim);
}

.entry-status .led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: led-blink 2.2s infinite ease-in-out;
}

/* ---------- 더 보기 (Episode 3개 이상일 때) ---------- */

.entry-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  cursor: pointer;
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 3px;
  color: var(--ink-dim);
  transition: color 0.2s;
}

.entry-more:hover {
  color: var(--gold);
}

.entry-more .entry-more-arrow {
  font-size: 10px;
  transition: transform 0.25s ease;
}

.entry-more.expanded .entry-more-arrow {
  transform: rotate(180deg);
}

/* ---------- Nav ---------- */

.stage nav {
  position: relative;
  width: 100%;
  z-index: 25;
  margin-top: 36px;
  padding: 0 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 2px;
  text-decoration: none;
  color: var(--gold-dim);
  font-family: 'Cormorant SC', serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-kr {
  margin-top: 2px;
  font-family: 'Noto Serif KR', serif;
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #d9c4a4;
  opacity: 0.8;
}

nav a.active {
  padding: 8px 20px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--gold);
}

nav a:not(.active):hover {
  color: var(--gold);
}

nav .sep {
  color: var(--gold-dim);
  opacity: 0.5;
  font-size: 12px;
}

.floor-glow {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  width: 450px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(90, 14, 18, 0.12), transparent 70%);
  filter: blur(6px);
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 360px) {
  .profile-title { font-size: 26px; }
  .entry-title { font-size: 17px; }
}