:root {
  --bg: #080b15;
  --alt: #0d1222;
  --surface: #131a30;
  --ink: #f4efe6;
  --muted: #9da6c0;
  --line: rgba(226, 190, 120, 0.22);
  --line-strong: rgba(226, 190, 120, 0.52);
  --gold: #a88ff0;
  --gold-rgb: 168, 143, 240;
  --star: #e6b85c;
  --accent: #a88ff0;
  --f-cinzel: "Cinzel", "Noto Serif KR", Georgia, serif;
  --f-serif: "Noto Serif KR", Georgia, serif;
  --f-sans: "Pretendard", -apple-system, BlinkMacSystemFont, 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; }
.eo-wrap { width: min(1160px, 100% - 48px); margin: 0 auto; position: relative; z-index: 2; }
.eo-narrow { width: min(820px, 100% - 48px); }

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

/* Buttons */
.eo-btn-ivory {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; background: #f4efe6; color: #0b0f1d;
  border: 1px solid #f4efe6; text-decoration: none; cursor: pointer;
  font-family: var(--f-serif); font-size: 14px; font-weight: 700;
  transition: background .18s, transform .18s;
}
.eo-btn-ivory:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-1px); }
.eo-btn-sm { padding: 8px 16px; font-size: 13px; }
.eo-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; background: rgba(13, 18, 34, 0.56); 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;
}
.eo-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Hero */
.eo-hero {
  position: relative; min-height: 600px; display: grid; place-items: center;
  padding: 88px 0 92px; border-bottom: 1px solid var(--line); overflow: hidden;
}
.eo-hero-bg { position: absolute; inset: 0; }
.eo-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.eo-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(226, 190, 120, 0.14), rgba(8, 11, 21, 0.92) 76%);
}
.eo-hero-inner { text-align: center; display: grid; gap: 20px; justify-items: center; max-width: 780px; }
.eo-cinzel { font-family: var(--f-cinzel); font-size: 14px; letter-spacing: 0.28em; color: var(--gold); text-transform: uppercase; }
.eo-cinzel-sm { font-family: var(--f-cinzel); font-size: 12px; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }
.eo-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.18; color: #ffffff; text-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.eo-quote-row { display: flex; align-items: center; gap: 18px; width: min(640px, 100%); }
.eo-rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.eo-quote-row p { font-family: var(--f-serif); font-size: 16px; color: var(--gold); font-style: italic; }
.eo-sub { color: #cbd2e6; font-size: 15.5px; max-width: 600px; }
.eo-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding-top: 8px; }

/* Sections */
.eo-sec { padding: 80px 0; }
.eo-sec-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eo-head { text-align: center; display: grid; gap: 8px; justify-items: center; margin-bottom: 40px; }
.eo-head h2 { font-size: clamp(28px, 3vw, 38px); }
.eo-head p { color: var(--muted); max-width: 620px; }
.eo-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.eo-head-row h2 { font-size: 30px; }
.eo-head-row p { color: var(--muted); margin-top: 4px; }

/* World Pillars */
.eo-world-prose { max-width: 760px; margin: 0 auto 44px; text-align: center; display: grid; gap: 14px; color: var(--muted); }
.eo-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.eo-pillar { padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.eo-pillar-num { font-family: var(--f-cinzel); font-size: 20px; color: var(--gold); }
.eo-pillar h3 { font-size: 18px; }
.eo-pillar p { color: var(--muted); font-size: 14px; }

/* Cast */
.eo-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.eo-pill { padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.eo-pill.is-active, .eo-pill:hover { border-color: var(--gold); color: var(--gold); background: rgba(var(--gold-rgb), 0.1); }
.eo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.eo-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 .18s, transform .18s;
}
.eo-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.eo-card[hidden] { display: none; }
.eo-card-img { position: relative; }
.eo-card-img img { width: 100%; aspect-ratio: 3 / 3.9; object-fit: cover; object-position: top center; }
.eo-badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px;
  background: rgba(8, 11, 21, 0.86); border: 1px solid var(--line-strong);
  color: var(--gold); font-size: 11.5px; font-family: var(--f-serif);
}
.eo-card-info { padding: 16px 18px 20px; display: grid; gap: 4px; }
.eo-eng-sm { font-family: var(--f-cinzel); font-size: 11.5px; letter-spacing: 0.14em; color: var(--gold); }
.eo-card-info h3 { font-size: 21px; }
.eo-role { color: var(--muted); font-size: 13px; }
.eo-line { color: #d5d9e8; font-size: 13.5px; margin-top: 4px; }

/* Interactive Oracle Quiz */
.eo-oracle-sec {
  background: radial-gradient(circle at 50% 20%, rgba(138, 162, 248, 0.12), transparent 60%), var(--bg);
}
.eo-oracle-box {
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 8px rgba(8,11,21,0.5), 0 24px 60px rgba(0,0,0,0.45);
  padding: 40px 38px;
}
.eo-quiz-progress { font-family: var(--f-cinzel); font-size: 12.5px; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 14px; text-align: center; }
.eo-q-prompt { font-size: 23px; text-align: center; margin-bottom: 26px; line-height: 1.5; }
.eo-q-options { display: grid; gap: 12px; }
.eo-q-opt {
  text-align: left; padding: 16px 20px; background: var(--alt); border: 1px solid var(--line);
  color: var(--ink); font: inherit; font-size: 15px; cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s;
}
.eo-q-opt:hover { border-color: var(--gold); background: rgba(var(--gold-rgb), 0.12); transform: translateX(4px); }
.eo-quiz-result { text-align: center; display: grid; gap: 14px; justify-items: center; }
.eo-quiz-result h3 { font-size: 30px; color: var(--gold); }
.eo-quiz-result p { color: var(--muted); max-width: 560px; font-size: 15.5px; }
.eo-res-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }

/* Chronicle */
.eo-chron-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.eo-chron-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.eo-chron-card time { font-family: var(--f-cinzel); font-size: 12.5px; color: var(--gold); letter-spacing: 0.1em; }
.eo-chron-card h4 { font-size: 17.5px; }
.eo-chron-card p { color: var(--muted); font-size: 13.8px; }

/* Places */
.eo-place-stage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 22px; background: var(--surface); border: 1px solid var(--line); }
.eo-place-img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.eo-place-body { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.eo-place-body h3 { font-size: 25px; }
.eo-place-body p { color: var(--muted); font-size: 14.5px; }
.eo-place-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.eo-place-btn { padding: 7px 14px; background: var(--alt); border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.eo-place-btn.is-active, .eo-place-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Start & Commands */
.eo-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.eo-start-card { background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.eo-start-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.eo-start-body { padding: 18px; display: grid; gap: 6px; }
.eo-start-body h3 { font-size: 18px; }
.eo-start-body p { color: var(--muted); font-size: 14px; }
.eo-cmd-list { display: grid; gap: 10px; }
.eo-cmd-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); }
.eo-cmd-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eo-cmd-top code { padding: 2px 8px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--gold); font-family: monospace; font-size: 13px; }
.eo-cmd-row p { color: var(--muted); font-size: 13.8px; margin-top: 3px; }
.eo-copy { padding: 6px 12px; background: var(--alt); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; flex-shrink: 0; }
.eo-copy:hover { border-color: var(--gold); color: var(--gold); }

/* Footer */
.eo-footer { padding: 48px 0 60px; border-top: 1px solid var(--line); }
.eo-footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.eo-pen { display: block; font-family: var(--f-serif); font-size: 19px; margin-top: 4px; }
.eo-bio { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 440px; }
.eo-legal { color: var(--muted); font-size: 12.5px; }

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

@media (max-width: 900px) {
  .eo-place-stage, .eo-start-grid, .eo-modal-box { grid-template-columns: 1fr; }
  .eo-oracle-box { padding: 26px 20px; }
  .eo-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;
}

