@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Rubik:wght@300;400;500;600&display=swap');

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

:root {
  --crimson: #8B0000;
  --crimson-dark: #520000;
  --gold: #DAA520;
  --gold-light: #F5D576;
  --parchment: #FFF8E8;
  --text-light: #F0E6D0;
  --text-muted: #B8A890;
  --dark-bg: #2A1010;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Rubik', sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.75;
  overflow-x: hidden;
}

/* CLASSIC NAV */
.regal-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(42, 16, 16, 0.97);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  border-bottom: 3px solid var(--gold);
}

.myth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.myth-brand svg { width: 36px; height: 36px; }

.myth-name {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--gold);
}

.regal-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.regal-links a {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.regal-links a:hover { color: var(--gold); }

.crown-btn {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
}

.crown-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin: 4px 0;
  transition: all 0.3s;
}

.crown-btn.active span:first-child { transform: rotate(45deg) translate(4px, 4px); }
.crown-btn.active span:nth-child(2) { opacity: 0; }
.crown-btn.active span:last-child { transform: rotate(-45deg) translate(4px, -4px); }

.throne-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  background: var(--dark-bg);
  border-bottom: 3px solid var(--gold);
  list-style: none;
  padding: 1rem 0;
}

.throne-menu.revealed { display: block; }

.throne-menu li { text-align: center; padding: 0.7rem; }

.throne-menu a {
  font-family: 'Merriweather', serif;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.throne-menu a:hover { color: var(--gold); }

/* CLASSIC HERO */
.classic-hero {
  margin-top: 68px;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--crimson-dark), var(--crimson), var(--dark-bg));
  text-align: center;
  position: relative;
}

.classic-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.classic-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 1.5rem;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(218, 165, 32, 0.2);
}

.classic-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.crown-badges {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cbadge {
  background: rgba(218, 165, 32, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-family: 'Merriweather', serif;
  font-size: 0.75rem;
  font-weight: 700;
}

/* GAME */
.throne-room {
  padding: 3rem 2rem;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.throne-room h2 {
  font-family: 'Merriweather', serif;
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.crown-frame {
  width: 100%;
  aspect-ratio: 4/3;
  border: 3px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(218, 165, 32, 0.1);
}

.crown-frame iframe { width: 100%; height: 100%; border: none; }

/* TRADITIONAL CARDS */
.trad-section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.trad-section h2 {
  font-family: 'Merriweather', serif;
  color: var(--gold);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.trad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.trad-card {
  background: linear-gradient(180deg, var(--crimson-dark), var(--crimson));
  border: 1px solid rgba(218, 165, 32, 0.2);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.trad-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.trad-card .ticon { font-size: 2.5rem; margin-bottom: 1rem; }

.trad-card h3 {
  font-family: 'Merriweather', serif;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.trad-card p { color: var(--text-muted); font-size: 0.93rem; }

/* GOLD BAND */
.gold-band {
  background: linear-gradient(90deg, var(--gold), #E8C040);
  padding: 3rem 2rem;
  text-align: center;
}

.gold-band h2 {
  font-family: 'Merriweather', serif;
  color: var(--crimson-dark);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.gold-band p {
  color: var(--crimson);
  max-width: 760px;
  margin: 0 auto;
  font-weight: 500;
}

/* DECREE */
.decree {
  max-width: 850px;
  margin: 3rem auto;
  padding: 2rem;
  border: 2px solid var(--gold);
  background: var(--crimson-dark);
}

.decree h3 {
  font-family: 'Merriweather', serif;
  color: var(--gold);
  margin-bottom: 1rem;
}

.decree ul { list-style: none; }

.decree li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  color: var(--text-muted);
}

.decree li::before {
  content: '♛';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

/* TEXT PAGES */
.scroll-page {
  margin-top: 68px;
  padding: 4rem 2rem;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-page h1 {
  font-family: 'Merriweather', serif;
  color: var(--gold);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
}

.scroll-page h2 {
  font-family: 'Merriweather', serif;
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.scroll-page p { margin-bottom: 1rem; color: var(--text-muted); }
.scroll-page ul { margin: 0.5rem 0 1.5rem 1.5rem; }
.scroll-page li { margin-bottom: 0.5rem; color: var(--text-muted); }

/* PLAY */
.play-throne {
  margin-top: 68px;
  padding: 3rem 2rem;
  text-align: center;
}

.play-throne h1 {
  font-family: 'Merriweather', serif;
  color: var(--gold);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.play-throne > p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.royal-note {
  max-width: 700px;
  margin: 2rem auto;
  background: var(--crimson-dark);
  border-left: 4px solid var(--gold);
  padding: 1.2rem 1.5rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FOOTER */
.regal-footer {
  background: var(--dark-bg);
  border-top: 3px solid var(--gold);
  padding: 2.5rem 2rem;
  text-align: center;
}

.regal-footer .rf-brand {
  font-family: 'Merriweather', serif;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.rf-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.rf-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.3s;
}

.rf-links a:hover { color: var(--gold); }

.rg-regal {
  border-top: 1px solid rgba(218, 165, 32, 0.15);
  padding-top: 1rem;
  margin-top: 1rem;
}

.rg-regal p { font-size: 0.75rem; color: var(--text-muted); opacity: 0.5; margin-bottom: 0.4rem; }

.rg-regal a { color: var(--gold); text-decoration: none; font-size: 0.75rem; margin: 0 0.5rem; }

.rg-regal a:hover { text-decoration: underline; }

/* AGE */
.age-throne {
  position: fixed;
  inset: 0;
  background: rgba(42, 16, 16, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-throne.dismissed { display: none; }

.age-scroll {
  background: var(--crimson);
  border: 3px solid var(--gold);
  padding: 3rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
}

.age-scroll h2 {
  font-family: 'Merriweather', serif;
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.age-scroll p { color: var(--text-light); margin-bottom: 2rem; }

.royal-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.rb-yes, .rb-no {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 2rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.rb-yes { background: var(--gold); color: var(--crimson-dark); }

.rb-no { background: transparent; border: 2px solid var(--gold); color: var(--gold); }

.rb-yes:hover, .rb-no:hover { transform: scale(1.05); }

.banished-msg {
  display: none;
  color: #FF4444;
  margin-top: 1rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .regal-links { display: none; }
  .crown-btn { display: block; }

  .classic-hero h1 { font-size: 2rem; }
  .classic-hero { padding: 4rem 1.5rem; }

  .trad-grid { grid-template-columns: 1fr; }

  .scroll-page h1, .play-throne h1 { font-size: 1.7rem; }

  .rf-links { flex-direction: column; gap: 0.5rem; }

  .regal-nav { padding: 0 1.5rem; }
}
