:root {
  --bg: #050508;
  --bg2: #10101a;
  --panel: rgba(18, 18, 28, 0.9);
  --panel-strong: rgba(33, 15, 22, 0.94);
  --panel-border: rgba(216, 169, 74, 0.34);
  --panel-border-strong: rgba(216, 169, 74, 0.62);
  --text: #f6ecdb;
  --muted: #c0b29d;
  --dim: #8e8374;
  --gold: #d8a94a;
  --gold-soft: rgba(216, 169, 74, 0.16);
  --shadow: rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 169, 74, 0.12), transparent 28rem),
    radial-gradient(circle at 18% 18%, rgba(141, 31, 45, 0.28), transparent 30rem),
    linear-gradient(135deg, var(--bg) 0%, var(--bg2) 52%, var(--bg) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 78%);
}

.page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 22px;
  padding: 12px;
  border: 1px solid rgba(216, 169, 74, 0.22);
  border-radius: 999px;
  background: rgba(5, 5, 8, 0.42);
  box-shadow: 0 14px 38px var(--shadow);
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}

.top-nav a:hover,
.top-nav a:focus,
.top-nav a.active {
  color: var(--text);
  background: rgba(216, 169, 74, 0.12);
}

.hero {
  text-align: center;
  padding: 68px 24px 48px;
}

.hero.compact { padding: 44px 24px 32px; }

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 8px 0 14px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  text-shadow: 0 0 26px rgba(216, 169, 74, 0.28), 0 18px 48px rgba(0, 0, 0, 0.7);
}

h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  line-height: 1.05;
}

h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.24rem;
}

.subtitle {
  color: var(--gold);
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  margin: 0 0 18px;
}

.intro {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

a { color: inherit; }

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--panel-border-strong);
  background: linear-gradient(145deg, rgba(216,169,74,0.24), rgba(141,31,45,0.2));
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 14px 38px var(--shadow);
}

.button:hover,
.button:focus { border-color: rgba(246, 236, 219, 0.72); }

.button.ghost {
  background: rgba(18, 18, 28, 0.62);
  color: var(--muted);
}

.inline-button { margin-top: 16px; }
.small-button { margin-top: 18px; padding: 10px 15px; font-size: 0.95rem; }

.image-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin: 0 0 18px;
}

.image-slot {
  min-height: 210px;
  border: 1px solid rgba(216, 169, 74, 0.28);
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(216, 169, 74, 0.14), transparent 65%),
    linear-gradient(145deg, rgba(33, 15, 22, 0.78), rgba(5, 5, 8, 0.72));
  box-shadow: 0 18px 56px var(--shadow);
}

.image-slot span { display: block; color: var(--gold); font-size: 1.45rem; margin-bottom: 8px; }
.image-slot small { color: var(--dim); }

.section,
.card,
.notice,
.boss-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 56px var(--shadow);
}

.section { margin: 18px 0; }
.story-preview, .story, .story-section { border-color: rgba(216, 169, 74, 0.44); }

.section p,
.card p,
.notice p,
.boss-panel p,
.board p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 12px;
}

.section p:last-child,
.card p:last-child,
.notice p:last-child,
.boss-panel p:last-child,
.board p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { position: relative; overflow: hidden; }

.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 169, 74, 0.13), transparent 68%);
}

.sigil {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
}

.large-sigil {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
  font-size: 2.5rem;
}

.race { min-height: 300px; }

.race-feature {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
}

.boss-panel {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(145deg, rgba(52, 11, 20, 0.92), rgba(18, 18, 28, 0.9)), var(--panel-strong);
  border-color: var(--panel-border-strong);
}

.boss-status {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px;
  background: rgba(5, 5, 8, 0.38);
}

.boss-status span,
.boss-status small { display: block; color: var(--dim); }

.boss-status strong {
  display: block;
  color: var(--gold);
  font-size: 1.65rem;
  margin: 8px 0;
}

.board-grid,
.toc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.board,
.toc-grid a {
  border: 1px solid rgba(216, 169, 74, 0.24);
  border-radius: 18px;
  padding: 18px;
  background: rgba(5, 5, 8, 0.32);
  box-shadow: 0 18px 56px var(--shadow);
}

.toc-grid a {
  color: var(--muted);
  text-decoration: none;
}

.toc-grid a:hover,
.toc-grid a:focus { color: var(--gold); }

.notice {
  margin-top: 18px;
  text-align: center;
  border-color: rgba(216, 169, 74, 0.48);
}

@media (max-width: 920px) {
  .grid.three, .grid.four, .grid.two, .boss-panel, .board-grid, .toc-grid, .image-band, .race-feature {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 42px; }
  .top-nav { border-radius: 22px; }
  .page { padding-top: 20px; }
}

.board-frame-section {
  padding: 14px;
}

.public-board-frame {
  display: block;
  width: 100%;
  height: min(760px, 78vh);
  border: 1px solid rgba(216, 169, 74, 0.34);
  border-radius: 22px;
  background: #05070d;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.48);
}

.card h2,
.board h3,
.button,
.top-nav a,
.boss-status strong {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.muted-card {
  opacity: 0.76;
}

.disabled-button {
  cursor: default;
  opacity: 0.72;
}

.top-nav {
  max-width: 100%;
}

.top-nav a {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .top-nav a {
    white-space: normal;
  }
}

/* ECLIPSE_REIGN_VISUAL_GLORY_V1 */

:root {
  --display-font: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body {
  font-family: var(--body-font);
}

h1,
h2,
h3,
.eyebrow,
.section-kicker,
.top-nav a,
.button,
.boss-status strong,
.image-slot span {
  font-family: var(--display-font);
}

h1 {
  letter-spacing: 0.075em;
}

h2,
h3 {
  letter-spacing: 0.035em;
}

.card h2,
.board h3,
.glory-card h2 {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 1.08;
}

.glory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 22px;
  margin: 18px 0;
}

.glory-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  min-height: 230px;
  overflow: visible;
}

.glory-card::after {
  opacity: 0.72;
}

.glory-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  margin-bottom: 12px;
}

.glory-card p {
  max-width: 56rem;
}

.glory-card .small-button {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .glory-grid {
    grid-template-columns: 1fr;
  }

  .glory-card {
    grid-template-columns: 1fr;
  }
}

/* ECLIPSE_REIGN_TYPOGRAPHY_V3_START */
:root {
  --title-font: "Trajan Pro", "Cinzel", "Cinzel Decorative", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --display-font: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body-font: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body {
  font-family: var(--body-font);
  font-size: 1.03rem;
}

h1 {
  font-family: var(--title-font);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.115em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(3.35rem, 8.6vw, 7.4rem);
}

h2,
h3,
.eyebrow,
.section-kicker,
.top-nav a,
.button,
.boss-status strong,
.image-slot span,
.sigil,
.subtitle {
  font-family: var(--display-font);
}

h2 {
  letter-spacing: 0.055em;
  font-weight: 600;
}

h3 {
  letter-spacing: 0.04em;
  font-weight: 600;
}

.subtitle {
  letter-spacing: 0.035em;
}

.section p,
.card p,
.notice p,
.boss-panel p,
.board p,
.intro {
  font-family: var(--body-font);
}

.top-nav a,
.button {
  letter-spacing: 0.04em;
}

.card h2,
.board h3,
.glory-card h2 {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

  h1 {
    letter-spacing: 0.075em;
  }
}
/* ECLIPSE_REIGN_TYPOGRAPHY_V3_END */

/* ECLIPSE_REIGN_FOOTER_AND_PUBLIC_CLEANUP_V1 */
.site-footer {
  margin-top: 32px;
  padding: 24px 18px;
  border-top: 1px solid rgba(216, 169, 74, 0.28);
  color: var(--dim);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer p {
  margin: 6px auto;
  max-width: 980px;
}

.image-slot {
  min-height: 230px;
}

.image-slot span {
  margin-bottom: 0;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.72);
}
