@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Text:wght@400;600;700&display=swap');

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

:root {
  --crimson: #8b1a1a;
  --crimson-bright: #c0392b;
  --gold: #c9a84c;
  --gold-dim: #a07e32;
  --bg-dark: #120808;
  --bg-panel: #1e0f0f;
  --text-cream: #e8dcc8;
  --text-dim: #9a8b77;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Crimson Text', serif;
  background: var(--bg-dark);
  color: var(--text-cream);
  min-height: 100vh;
  line-height: 1.8;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Cinzel', serif; }
a { color: var(--gold); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--crimson-bright); }

/* NAV */
.topnav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(18, 8, 8, 0.95);
  border-bottom: 2px solid var(--crimson);
}
.topnav-wrap {
  max-width: 1300px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1.5rem;
}
.logo-mark { display: flex; align-items: center; gap: 0.7rem; }
.logo-mark svg { width: 36px; height: 36px; }
.logo-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.15rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }
.links-row { display: flex; gap: 1.8rem; list-style: none; }
.links-row a { color: var(--text-dim); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.links-row a:hover, .links-row a.lit { color: var(--gold); }

.hb-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hb-btn span { display: block; width: 24px; height: 2px; background: var(--gold); transition: all 0.3s; }
.hb-btn.act span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.hb-btn.act span:nth-child(2) { opacity: 0; }
.hb-btn.act span:last-child { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .hb-btn { display: flex; }
  .links-row {
    position: fixed; top: 58px; left: 0; right: 0;
    flex-direction: column; background: rgba(18, 8, 8, 0.98);
    padding: 1.5rem; gap: 1rem;
    border-bottom: 2px solid var(--crimson);
    transform: translateY(-120%); transition: transform 0.3s;
  }
  .links-row.exp { transform: translateY(0); }
}

/* HERO */
.myth-hero {
  padding: 9rem 1.5rem 5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(139,26,26,0.15), transparent 70%);
}
.myth-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--gold);
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 1.2rem; line-height: 1.15;
}
.myth-hero p {
  font-size: 1.15rem; color: var(--text-dim);
  max-width: 700px; margin: 0 auto 2.5rem;
}
.myth-btn {
  display: inline-block; padding: 0.85rem 2.5rem;
  background: var(--crimson); color: var(--text-cream);
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 0.95rem; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 2px;
  transition: all 0.3s; border: 1px solid var(--crimson-bright);
}
.myth-btn:hover { background: var(--crimson-bright); box-shadow: 0 4px 20px rgba(192, 57, 43, 0.3); color: var(--text-cream); }

/* CREED PANELS */
.creed-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; max-width: 1300px; margin: 0 auto;
}
@media (max-width: 768px) { .creed-row { grid-template-columns: 1fr; } }
.creed-cell {
  padding: 2.5rem; text-align: center;
  border: 1px solid rgba(139, 26, 26, 0.2);
  background: var(--bg-panel);
}
.creed-cell .ci { font-size: 2.5rem; margin-bottom: 0.8rem; }
.creed-cell h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.creed-cell p { color: var(--text-dim); font-size: 1rem; }

/* GAME */
.arena { max-width: 1300px; margin: 3rem auto; padding: 0 1.5rem; }
.arena h2 { text-align: center; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }
.arena-frame {
  max-width: 960px; margin: 0 auto;
  border: 2px solid var(--crimson);
  background: #000; box-shadow: 0 0 30px rgba(139, 26, 26, 0.2);
}
.arena-frame iframe { display: block; width: 100%; height: 600px; border: none; }
@media (max-width: 768px) { .arena-frame iframe { height: 380px; } }

/* LORE BLOCKS */
.lore-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1300px; margin: 3rem auto; padding: 0 1.5rem;
}
.lore-tile {
  background: var(--bg-panel); padding: 1.5rem;
  border-left: 3px solid var(--gold);
}
.lore-tile h4 { font-size: 1rem; color: var(--gold); text-transform: uppercase; margin-bottom: 0.4rem; }
.lore-tile p { color: var(--text-dim); font-size: 0.95rem; }

/* CHRONICLE */
.chronicle {
  max-width: 1300px; margin: 3rem auto; padding: 3rem 1.5rem;
  border-top: 1px solid rgba(139, 26, 26, 0.2);
  text-align: center;
}
.chronicle h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.2rem; }
.chronicle p { color: var(--text-dim); max-width: 850px; margin: 0 auto 1rem; font-size: 1.05rem; }

/* CONTENT PAGE */
.scroll-page { max-width: 900px; margin: 0 auto; padding: 7rem 1.5rem 3rem; }
.scroll-page h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }
.scroll-page h2 { font-size: 1.25rem; color: var(--crimson-bright); text-transform: uppercase; letter-spacing: 1px; margin: 2rem 0 0.8rem; }
.scroll-page p, .scroll-page li { color: var(--text-dim); margin-bottom: 0.8rem; font-size: 1rem; }
.scroll-page ul, .scroll-page ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* PLAY */
.play-chamber { max-width: 1300px; margin: 0 auto; padding: 7rem 1.5rem 3rem; }
.play-chamber h1 { text-align: center; font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.play-chamber .guide { text-align: center; color: var(--text-dim); max-width: 700px; margin: 0 auto 2rem; }

/* FOOTER */
.myth-footer {
  background: var(--bg-panel); border-top: 2px solid var(--crimson);
  padding: 3rem 1.5rem; margin-top: 4rem;
}
.mf-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.mf-col p { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.4rem; }
.mf-col h4 { font-family: 'Cinzel', serif; font-size: 0.9rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.8rem; }
.mf-col ul { list-style: none; }
.mf-col li { margin-bottom: 0.35rem; }
.mf-col a { color: var(--text-dim); font-size: 0.9rem; }
.mf-col a:hover { color: var(--gold); }
.mf-copy { text-align: center; color: var(--text-dim); font-size: 0.85rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(139, 26, 26, 0.15); }

/* AGE GATE */
.age-veil {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(18, 8, 8, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.age-veil.lifted { display: none; }
.age-scroll {
  background: var(--bg-panel); border: 2px solid var(--crimson);
  padding: 3rem 2.5rem; text-align: center;
  max-width: 450px; width: 92%;
}
.age-scroll .age-emblem { font-size: 3.5rem; margin-bottom: 1rem; }
.age-scroll h2 { font-size: 1.3rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.8rem; }
.age-scroll p { color: var(--text-dim); margin-bottom: 1.5rem; }
.age-pair { display: flex; gap: 1rem; justify-content: center; }
.age-enter {
  padding: 0.7rem 2rem; background: var(--crimson); color: var(--text-cream);
  border: none; font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 0.9rem; cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
  transition: background 0.2s;
}
.age-enter:hover { background: var(--crimson-bright); }
.age-leave {
  padding: 0.7rem 2rem; background: transparent; color: var(--text-dim);
  border: 1px solid var(--text-dim); font-family: 'Cinzel', serif;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s;
}
.age-leave:hover { border-color: var(--crimson-bright); color: var(--crimson-bright); }
