:root {
  --bg: #11090c;
  --deep: #180d12;
  --surface: #211218;
  --ink: #f5ede4;
  --muted: #b8a3a8;
  --line: rgba(214, 180, 124, 0.22);
  --line-strong: rgba(214, 180, 124, 0.5);
  --gold: #d6b47c;
  --gold-rgb: 214, 180, 124;
  --crimson: #8e1f30;
  --accent: #d6b47c;
  --f-display: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --f-serif: "Noto Serif KR", Georgia, serif;
  --f-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 15px; line-height: 1.78;
  word-break: keep-all; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-serif); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.vs-wrap { width: min(1160px, 100% - 48px); margin: 0 auto; }
.vs-narrow { width: min(880px, 100% - 48px); }

/* Header */
.vs-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(17, 9, 12, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.vs-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.vs-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-serif); font-size: 16.5px; font-weight: 700; }
.vs-mark { color: var(--gold); }
.vs-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.vs-links a { text-decoration: none; transition: color .18s; }
.vs-links a:hover { color: var(--gold); }

/* Buttons */
.vs-btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; background: var(--gold); color: #170b0f;
  border: 1px solid var(--gold); text-decoration: none; cursor: pointer;
  font-family: var(--f-serif); font-size: 14px; font-weight: 700;
  transition: background .18s, transform .18s;
}
.vs-btn-gold:hover { background: #e6c894; transform: translateY(-1px); }
.vs-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); text-decoration: none; cursor: pointer;
  font-family: var(--f-serif); font-size: 14px; font-weight: 600;
  transition: border-color .18s, color .18s, background .18s;
}
.vs-btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(var(--gold-rgb), 0.08); }
.vs-btn-xs { padding: 8px 15px; font-size: 13px; }

/* Split Haute-Couture Hero */
.vs-hero { border-bottom: 1px solid var(--line); }
.vs-hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  min-height: 600px;
}
.vs-hero-left {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 64px 52px 64px 32px;
  background: radial-gradient(circle at 20% 25%, rgba(142, 31, 48, 0.28), transparent 62%), var(--bg);
}
.vs-hero-inner { width: min(500px, 100%); display: grid; gap: 20px; }
.vs-eng {
  font-family: var(--f-display); font-style: italic; font-size: 15px;
  letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase;
}
.vs-title { font-size: clamp(34px, 4vw, 52px); line-height: 1.2; color: var(--ink); }
.vs-sub { color: var(--muted); font-size: 15.5px; }
.vs-hero-quote {
  margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--f-serif); font-size: 16px; color: var(--gold);
}
.vs-kv-row { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; }
.vs-kv dt { font-size: 12px; color: var(--muted); }
.vs-kv dd { margin: 3px 0 0; font-family: var(--f-serif); font-size: 14.5px; color: var(--ink); }
.vs-cta-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.vs-hero-right { position: relative; min-height: 460px; overflow: hidden; background: #0c0608; }
.vs-hero-right img { width: 100%; height: 100%; object-fit: cover; }
.vs-hero-frame {
  position: absolute; inset: 18px; border: 1px solid rgba(var(--gold-rgb), 0.36); pointer-events: none;
}

/* Sections */
.vs-sec { padding: 80px 0; }
.vs-sec-deep { background: var(--deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vs-head { display: grid; gap: 8px; margin-bottom: 36px; }
.vs-head h2 { font-size: clamp(26px, 2.8vw, 34px); }
.vs-head p { color: var(--muted); max-width: 620px; }
.vs-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.vs-gold-label { font-size: 12.5px; color: var(--gold); font-family: var(--f-serif); letter-spacing: 0.04em; display: inline-block; }

/* World */
.vs-world-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.vs-world-lead { display: grid; gap: 16px; }
.vs-world-lead h2 { font-size: clamp(26px, 2.8vw, 34px); }
.vs-lead { font-family: var(--f-serif); font-size: 19px; line-height: 1.7; color: var(--gold); }
.vs-prose { display: grid; gap: 16px; color: var(--muted); font-size: 15.5px; }
.vs-anchors {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 44px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.vs-anchor { padding: 20px 18px; border-right: 1px solid var(--line); }
.vs-anchor:last-child { border-right: none; }
.vs-anchor dt { font-size: 12.5px; color: var(--gold); margin-bottom: 6px; }
.vs-anchor dd { margin: 0; font-size: 14.5px; color: var(--ink); }

/* Crimson Wax Deed */
.vs-deed {
  background: linear-gradient(180deg, #24131a 0%, #190d12 100%);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 8px #150a0e, inset 0 0 0 9px var(--line), 0 24px 64px rgba(0,0,0,0.45);
  padding: 46px 48px; display: grid; gap: 20px;
}
.vs-deed-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.vs-deed-head h3 { font-size: 28px; margin-top: 6px; }
.vs-deed-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.vs-deed-code { font-family: var(--f-display); font-size: 14px; letter-spacing: 0.14em; color: var(--muted); }
.vs-deed-sal { font-family: var(--f-serif); color: var(--gold); font-size: 15.5px; }
.vs-deed-body { display: grid; gap: 14px; color: var(--ink); font-size: 15.5px; }
.vs-clauses { margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.vs-clause { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.vs-clause dt { color: var(--gold); font-family: var(--f-serif); font-size: 14px; }
.vs-clause dd { margin: 0; color: var(--muted); font-size: 14.5px; }
.vs-deed-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.vs-sign-block { display: grid; gap: 10px; }
.vs-sign-line { width: 220px; height: 1px; background: var(--line-strong); display: block; }
.vs-sign-block p { font-family: var(--f-serif); font-size: 14.5px; color: var(--ink); }
.vs-wax { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vs-wax span { font-size: 12px; color: var(--gold); font-family: var(--f-serif); }

/* Faction Salon */
.vs-factions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.vs-faction-col {
  padding: 32px 28px; border-right: 1px solid var(--line);
  display: grid; gap: 10px; align-content: start;
}
.vs-faction-col:last-child { border-right: none; }
.vs-roman { font-family: var(--f-display); font-size: 32px; color: var(--gold); line-height: 1; }
.vs-faction-col h3 { font-size: 21px; }
.vs-faction-tag { color: var(--muted); font-size: 14.5px; }
.vs-faction-col ul { margin: 8px 0 0; padding: 12px 0 0 18px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; display: grid; gap: 6px; }

/* Portrait Gallery */
.vs-portrait-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.vs-portrait-card {
  text-align: left; padding: 0; background: var(--surface); border: 1px solid var(--line);
  color: inherit; font: inherit; cursor: pointer; overflow: hidden;
  transition: border-color .22s, transform .22s;
}
.vs-portrait-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.vs-portrait-frame { position: relative; overflow: hidden; }
.vs-portrait-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; transition: transform .35s; }
.vs-portrait-card:hover .vs-portrait-frame img { transform: scale(1.03); }
.vs-tier-chip {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 10px; background: rgba(17, 9, 12, 0.84); border: 1px solid var(--line-strong);
  color: var(--gold); font-size: 12px; font-family: var(--f-serif);
}
.vs-portrait-info { padding: 20px 22px 24px; display: grid; gap: 6px; }
.vs-eng-sm { font-family: var(--f-display); font-size: 13px; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; }
.vs-portrait-info h3 { font-size: 24px; }
.vs-role { color: var(--muted); font-size: 13.5px; }
.vs-quote-sm { color: var(--ink); font-family: var(--f-serif); font-size: 14px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Relations */
.vs-rel-block { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--line); }
.vs-rel-head { display: grid; gap: 6px; margin-bottom: 24px; }
.vs-rel-head h3 { font-size: 22px; }
.vs-rel-head p { color: var(--muted); font-size: 14px; }
.vs-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vs-rel-item { padding: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.vs-rel-names { display: flex; align-items: center; gap: 8px; }
.vs-rel-btn {
  padding: 4px 10px; background: transparent; border: 1px solid var(--line-strong);
  color: var(--gold); font-family: var(--f-serif); font-size: 13px; cursor: pointer;
}
.vs-rel-btn:hover { background: rgba(var(--gold-rgb), 0.12); }
.vs-rel-sep { color: var(--muted); font-size: 13px; }
.vs-rel-item h4 { font-size: 16.5px; }
.vs-rel-item p { color: var(--muted); font-size: 14px; }

/* Places */
.vs-place-stage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 24px; align-items: stretch; }
.vs-place-main { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.vs-place-img-wrap img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vs-place-cap { padding: 24px 26px; display: grid; gap: 6px; }
.vs-place-cap h3 { font-size: 22px; }
.vs-place-cap p { color: var(--muted); font-size: 14.5px; }
.vs-place-rail { display: grid; gap: 10px; align-content: start; }
.vs-place-btn {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line);
  color: inherit; font: inherit; cursor: pointer; transition: border-color .16s, background .16s;
}
.vs-place-btn.is-active, .vs-place-btn:hover { border-color: var(--gold); background: rgba(var(--gold-rgb), 0.09); }
.vs-place-num { font-family: var(--f-display); font-size: 22px; color: var(--gold); min-width: 28px; }
.vs-place-btn b { display: block; font-family: var(--f-serif); font-size: 15px; }
.vs-place-btn em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Start & commands */
.vs-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.vs-start-card { background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.vs-start-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.vs-start-body { padding: 18px 20px; display: grid; gap: 6px; }
.vs-start-body h3 { font-size: 18px; }
.vs-start-body p { color: var(--muted); font-size: 14px; }
.vs-cmd-list { display: grid; gap: 10px; }
.vs-cmd-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--line);
}
.vs-cmd-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vs-cmd-top code { padding: 2px 8px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--gold); font-family: monospace; font-size: 13.5px; }
.vs-cmd-row p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* Footer */
.vs-footer { padding: 56px 0 68px; border-top: 1px solid var(--line); }
.vs-footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: start; }
.vs-pen { display: block; font-family: var(--f-serif); font-size: 21px; margin-top: 4px; }
.vs-bio { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 440px; }
.vs-legal { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.vs-others { display: grid; gap: 10px; }
.vs-other {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none;
}
.vs-other:hover { border-color: var(--gold); }
.vs-other b { display: block; font-family: var(--f-serif); font-size: 15px; }
.vs-other span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.vs-other em { font-style: normal; font-size: 12.5px; color: var(--gold); white-space: nowrap; }

/* Modal */
.vs-modal[hidden] { display: none !important; }
.vs-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.vs-modal-bg { position: fixed; inset: 0; background: rgba(7, 3, 5, 0.84); backdrop-filter: blur(5px); }
.vs-modal-shell {
  position: relative; z-index: 1; width: min(940px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--deep); border: 1px solid var(--line-strong); padding: 28px;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px;
}
.vs-modal-portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; border: 1px solid var(--line); }
.vs-expr-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vs-expr-btn {
  padding: 6px 12px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; cursor: pointer;
}
.vs-expr-btn.is-active, .vs-expr-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(var(--gold-rgb), 0.12); }
.vs-modal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vs-modal-nav { display: flex; gap: 6px; }
.vs-modal-right { display: grid; gap: 14px; align-content: start; }
.vs-modal-right h3 { font-size: 30px; }
.vs-modal-bio { color: var(--ink); font-size: 14.8px; }
.vs-modal-traits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.vs-modal-traits dt { font-size: 12px; color: var(--gold); }
.vs-modal-traits dd { margin: 3px 0 0; font-size: 14px; color: var(--ink); }
.vs-secret { border: 1px dashed var(--line-strong); padding: 12px 16px; background: var(--surface); }
.vs-secret summary { cursor: pointer; color: var(--gold); font-family: var(--f-serif); font-size: 14px; }
.vs-secret p { margin-top: 10px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .vs-hero-grid, .vs-world-grid, .vs-factions, .vs-portrait-grid, .vs-rel-grid, .vs-place-stage, .vs-start-grid, .vs-footer-grid, .vs-modal-shell {
    grid-template-columns: 1fr;
  }
  .vs-hero-left { justify-content: flex-start; padding: 40px 24px; }
  .vs-anchors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-anchor:nth-child(2) { border-right: none; }
  .vs-faction-col { border-right: none; border-bottom: 1px solid var(--line); }
  .vs-faction-col:last-child { border-bottom: none; }
  .vs-deed { padding: 28px 22px; }
  .vs-clause { grid-template-columns: 1fr; gap: 4px; }
  .vs-links { display: none; }
}

.wt-modal[hidden] { display: none !important; }
.wt-modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 20px;
}
.wt-backdrop {
  position: fixed; inset: 0; background: rgba(8, 8, 10, 0.84);
  backdrop-filter: blur(4px);
}
.wt-shell {
  position: relative; z-index: 1; width: min(740px, 100%); max-height: 92vh;
  background: #101114; color: #f4f2ec; display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 28px 80px rgba(0,0,0,0.65);
}
.wt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.wt-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.wt-head p { margin: 3px 0 0; font-size: 12.5px; color: rgba(244,242,236,0.66); }
.wt-close {
  background: transparent; color: #f4f2ec; border: 1px solid rgba(255,255,255,0.28);
  padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer;
}
.wt-close:hover { background: rgba(255,255,255,0.12); }
.wt-strip {
  overflow-y: auto; padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 10px;
}
.wt-cut { margin: 0; }
.wt-cut img { width: 100%; display: block; }
.wt-cut figcaption {
  padding: 8px 4px 0; font-size: 12.5px; color: rgba(244,242,236,0.72); text-align: center;
}
.wt-foot {
  padding: 14px 22px; border-top: 1px solid rgba(255,255,255,0.12); text-align: right;
}
.wt-play-cta {
  display: inline-block; padding: 10px 18px; background: var(--accent, #c83228); color: #fff;
  text-decoration: none; font-size: 13.5px; font-weight: 700;
}

