/* Moongate Legacy: night sky, moongate blue, parchment gold. */
:root {
  --night: #070a17;
  --night-2: #0d1328;
  --panel: #121a35;
  --line: #24305a;
  --text: #e7e2d4;
  --muted: #a7a6b5;
  --gate: #5aa8ff;
  --gate-glow: #8fd0ff;
  --gold: #e3c27a;
  --red: #e0675a;
  --radius: 14px;
  --serif: "IM Fell English", Georgia, "Times New Roman", serif;
  --parch: #e9dcbc;
  --parch-dark: #cdb98d;
  --ink: #2b1d0e;
  --bronze: #8a6a35;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 19px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gate-glow); }
code {
  font: 0.85em ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: rgba(143, 208, 255, 0.1);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); text-align: center; }
h3 { font-size: 1.2rem; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(7, 10, 23, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.05rem var(--display); }
.brand-icon { width: 32px; height: 32px; }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); flex-wrap: wrap; justify-content: flex-end; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--night); background: var(--gold); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.nav .nav-cta:hover { color: var(--night); filter: brightness(1.08); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 900px);
  display: grid; place-items: center;
  padding: 96px 16px 72px;
  text-align: center;
}
.hero-art {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 23, 0.35) 0%, rgba(7, 10, 23, 0.55) 55%, var(--night) 100%),
    url("assets/hero.jpg") center / cover no-repeat,
    radial-gradient(1200px 600px at 50% 30%, #1b2a5c 0%, var(--night) 70%);
}
/* Stars: two layers of dots, drawn rather than shipped. */
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; inset: 0; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 99%, transparent),
    radial-gradient(1px 1px at 28% 68%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, #cfe6ff 99%, transparent),
    radial-gradient(1px 1px at 63% 36%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 81% 18%, #fff 99%, transparent),
    radial-gradient(1px 1px at 92% 58%, #cfe6ff 99%, transparent),
    radial-gradient(1px 1px at 6% 82%, #fff 99%, transparent),
    radial-gradient(1px 1px at 74% 82%, #fff 99%, transparent);
}
.hero-art::after { transform: translate(37px, 51px) scale(1.3); opacity: 0.3; }
.gate {
  position: absolute; left: 50%; top: 46%;
  width: min(62vw, 520px); aspect-ratio: 1 / 1.35;
  transform: translate(-50%, -50%);
  border-radius: 50% / 42%;
  background: radial-gradient(ellipse at center, rgba(143, 208, 255, 0.55) 0%, rgba(90, 168, 255, 0.28) 38%, rgba(90, 168, 255, 0.06) 62%, transparent 72%);
  filter: blur(6px);
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .gate { animation: none; } html { scroll-behavior: auto; } }
.hero-inner { position: relative; max-width: 760px; }
.logo { width: min(90vw, 620px); height: auto; filter: drop-shadow(0 6px 28px rgba(90, 168, 255, 0.45)); }
.logo-text {
  font-size: clamp(2.6rem, 9vw, 5.2rem); line-height: 1.05; margin: 0 0 0.2em;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold) 70%, #b8914a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(90, 168, 255, 0.35);
}
.tagline { font: 600 clamp(1.25rem, 3vw, 1.6rem) var(--serif); margin: 0.2em 0 0.6em; }
.tagline em { color: var(--gate-glow); }
.lede { color: var(--muted); font-size: 1.1rem; margin: 0 auto 1.6em; max-width: 620px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.status { margin-top: 1.8em; color: var(--muted); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gate); box-shadow: 0 0 10px var(--gate); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font: 600 1rem var(--serif); text-decoration: none; letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #74b8ff, var(--gate)); color: #061026; box-shadow: 0 6px 24px rgba(90, 168, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(90, 168, 255, 0.55); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: rgba(18, 26, 53, 0.6); }
.btn-ghost:hover { border-color: var(--gate); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }
.section-alt { max-width: none; background: linear-gradient(180deg, var(--night-2), var(--night)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt > * { max-width: 1084px; margin-left: auto; margin-right: auto; }
.section-lede { text-align: center; color: var(--muted); margin: 0 auto 2.2em; max-width: 640px; }

/* Shard cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card.live { border-color: rgba(90, 168, 255, 0.6); box-shadow: 0 0 0 1px rgba(90, 168, 255, 0.25), 0 12px 40px rgba(90, 168, 255, 0.12); }
.card-art {
  aspect-ratio: 16 / 10;
  background: var(--art, none) center / cover no-repeat, radial-gradient(circle at 50% 60%, #22356f, var(--night-2) 70%);
}
.card-body { padding: 20px 22px 24px; }
.card-body p { margin: 0 0 0.6em; color: var(--muted); }
.card .era { color: var(--gold); font-style: italic; }
.badge { display: inline-block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-bottom: 10px; }
.badge-live { color: #061026; background: var(--gate); border-color: var(--gate); font-weight: 600; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.steps li::before {
  content: counter(step);
  font: 700 1.1rem var(--display); color: var(--night);
  background: var(--gold); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0 0 1em; }
.steps .fine { font-size: 0.9rem; margin-top: 1em; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 2em; }
.feature { padding: 22px; border-left: 2px solid var(--gate); background: linear-gradient(90deg, rgba(90, 168, 255, 0.08), transparent); border-radius: 0 var(--radius) var(--radius) 0; }
.feature p { margin: 0; color: var(--muted); }

/* Rules */
.rules { list-style: none; padding: 0; max-width: 760px !important; margin-top: 1.6em !important; }
.rules li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.rules strong { color: var(--text); }

/* Footer */
.footer { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 40px 16px 56px; }
.footer p { max-width: 760px; margin: 0.4em auto; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 80vh; padding-top: 72px; }
}

/* Classic-era panels: parchment framed in bronze, like the game's own gumps. */
.gump {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 250, 230, 0.55), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(120, 90, 40, 0.18), transparent 55%),
    linear-gradient(180deg, var(--parch), var(--parch-dark));
  color: var(--ink);
  border: 3px solid var(--bronze);
  outline: 1px solid #3b2a12;
  outline-offset: 3px;
  border-radius: 6px;
  padding: 28px clamp(18px, 3vw, 34px) 26px;
  box-shadow: 0 0 0 7px #1b1408, 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 0 40px rgba(110, 80, 30, 0.35);
}
.gump-title {
  font: 1.45rem "IM Fell English SC", var(--display);
  text-align: center; color: #3a240b;
  border-bottom: 1px solid rgba(58, 36, 11, 0.35);
  padding-bottom: 8px; margin-bottom: 14px;
}
.gump p, .gump li { color: #3d2c17; }
.gump a.btn-ghost { color: var(--ink); border-color: var(--bronze); background: rgba(255, 248, 225, 0.5); }
.gump-note { text-align: center; font-style: italic; margin: 0 0 16px; }

.shardlist { max-width: 760px; margin: 0 auto 48px; }
.shardlist table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.shardlist th { text-align: left; font: 1rem "IM Fell English SC", serif; color: #5a3d16; border-bottom: 1px solid rgba(58, 36, 11, 0.4); padding: 6px 8px; }
.shardlist td { padding: 9px 8px; border-bottom: 1px dotted rgba(58, 36, 11, 0.3); color: var(--ink); }
.shardlist tbody tr:hover td { background: rgba(255, 248, 225, 0.45); }
.shardlist .st { font-style: italic; white-space: nowrap; }
.gem { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.35); }
.gem-live { background: #3fae4f; }
.gem-soon { background: #d9a33b; }
.gem-later { background: #8d8a80; }

.crier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: start; }
.news { margin-bottom: 18px; }
.news h3 { font-family: var(--display); color: #3a240b; margin-bottom: 4px; }
.news p { margin: 0; }
.news-date { font-style: italic; color: #7a5a2a !important; font-size: 0.95rem; }
.remember ul { margin: 0; padding-left: 1.1em; }
.remember li { margin: 0 0 8px; font-style: italic; }
.remember-cta { text-align: center; font: 1.15rem "IM Fell English SC", serif; margin: 16px 0 0; color: #3a240b; }

/* The guide page: gump panels stacked, tables in the parchment's ink. */
.guide .gump { max-width: 860px; margin: 0 auto 32px; }
.guide .gump p, .guide .gump li { font-size: 1.05rem; }
.guide .gump a { color: #1e4f9a; }
.guide-table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 1rem; }
.guide-table th { text-align: left; font: 1rem "IM Fell English SC", serif; color: #5a3d16; border-bottom: 1px solid rgba(58, 36, 11, 0.4); padding: 6px 8px; }
.guide-table td { padding: 7px 8px; border-bottom: 1px dotted rgba(58, 36, 11, 0.3); color: var(--ink); vertical-align: top; }
ol.rules { padding-left: 1.4em; }
ol.rules li { padding: 12px 0 12px 4px; }
@media (max-width: 720px) { .guide-table { font-size: 0.92rem; } }

/* The "classic, not cluttered" pitch under the hero. */
.classic { padding-bottom: 0; }
.classic-pitch { max-width: 980px; margin: 0 auto; }
.classic-pitch .gump-title { font-size: clamp(1.3rem, 3vw, 1.75rem); }
.classic-lede { text-align: center; font-size: 1.2rem; max-width: 720px; margin: 0 auto 22px; }
.classic-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.classic-cols h3 { font-family: var(--display); color: #3a240b; margin-bottom: 6px; }
.classic-cols p { margin: 0; }
.classic-cta { text-align: center; font: 1.2rem "IM Fell English SC", serif; color: #3a240b !important; margin: 24px 0 0; }

/* About: the founder's letter on parchment. */
.about-story { max-width: 820px; margin: 0 auto; }
.about-story p { font-size: 1.1rem; line-height: 1.7; }
.about-lede { font-size: 1.25rem !important; text-align: center; }
.about-sign { text-align: right; font: italic 1.2rem "IM Fell English", serif; color: #5a3d16 !important; margin-top: 18px; }

/* Fair-play promise inside the classic pitch, and a two-step "How to play". */
.promise { margin-top: 26px; padding: 20px 22px; border: 1px solid rgba(138, 106, 53, 0.55); border-radius: 6px; background: rgba(255, 248, 225, 0.45); }
.promise h3 { font-family: var(--display); color: #3a240b; text-align: center; margin-bottom: 8px; }
.promise p { margin: 0 0 10px; }
.promise ul { margin: 0; padding-left: 1.2em; }
.promise li { margin: 0 0 8px; }
.steps-two { max-width: 900px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
