* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* =========================================================
                      MAIN BODY
   ========================================================= */
body {
  background-color: #0b0907;
  color: #dfd0bc;
  font-family: 'Courier Prime', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
  padding: 1.5rem 1rem;
    line-height: 2;
}

/* Burnt Edges Vignette & Paper Grain Layer */
.parchment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  /* Heavy burned vignette edges */
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.95), inset 0 0 40px rgba(0, 0, 0, 0.8);
  /* Subtle scanlines for retro web feel */
  background: linear-gradient(rgba(18, 14, 10, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  opacity: 0.75;
}

/* Dynamic Parchment Texture Gradients */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: 
    /* Radial ambient blue fire glow from top corners */
    radial-gradient(circle at 10% 10%, rgba(0, 210, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(0, 210, 255, 0.15) 0%, transparent 45%),
    /* Aged paper center glow with dark weathered edges */
    radial-gradient(ellipse at 50% 30%, #1a140f 0%, #120e0a 50%, #070504 100%);
}

.lobby-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Aged Parchment Rule / Divider */
.parchment-hr {
  width: 100%;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d2ff 20%, #8c7355 50%, #00d2ff 80%, transparent);
  margin: 1.5rem 0;
  opacity: 0.7;
}

/* =========================================================
                    GOBLETS & FLAMES
   ========================================================= */
.goblet {
  position: absolute;
  top: 15px;
  width: 85px;
  height: 125px;
  z-index: 20;
  filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.6));
}

.goblet-left { left: 15px; }
.goblet-right { right: 15px; transform: scaleX(-1); }
.goblet.stopped {
  position: absolute;
  top: 1px; 
}
.blue-flame {
  transform-origin: center bottom;
  animation: flameFlicker 0.15s infinite alternate ease-in-out, flamePulse 2.5s infinite ease-in-out;
}

@keyframes flameFlicker {
  0% { transform: scale(1) skewX(-1.5deg); opacity: 0.9; }
  100% { transform: scale(1.05, 0.96) skewX(2deg); opacity: 1; }
}

@keyframes flamePulse {
  0%, 100% { filter: drop-shadow(0 0 10px #00d2ff) drop-shadow(0 0 25px rgba(0, 150, 255, 0.8)); }
  50% { filter: drop-shadow(0 0 18px #00f0ff) drop-shadow(0 0 35px rgba(0, 210, 255, 0.95)); }
}

/* =========================================================
                    HEADER & TITLE SECTION
   ========================================================= */
header {
  text-align: center;
  margin-top: 0rem;
  margin-bottom: 0rem;
}

.site-title {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 10%, #e0d0b0 50%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.4), 3px 3px 0px #000;
  margin-bottom: 0.3rem;
}

.site-subtitle {
  font-family: 'VT323', monospace;
  color: #00d2ff;
  font-size: 1.3rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: rgba(12, 9, 6, 0.9);
  padding: 3px 14px;
  border: 1px solid #8c7355;
  outline: 1px solid #00d2ff;
  display: inline-block;
  box-shadow: 3px 3px 0px #000;
}

/* =========================================================
                        BOXES
   ========================================================= */
.anchor-box {
  background: rgba(18, 14, 10, 0.85);
  border: 2px double #8c7355;
  outline: 1px solid rgba(0, 210, 255, 0.3);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 5px 5px 0px #000, inset 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
}

.anchor-box header {
  font-family: 'VT323', monospace;
  text-align: left;
  margin: 0 0 0.75rem 0;
  color: #00d2ff;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  border-bottom: 1px dotted #8c7355;
  padding-bottom: 0.35rem;
}

.anchor-box p {
  line-height: 1.6;
  font-size: 0.92rem;
  color: #e5d8c5;
}

/* DISCLAIMER BOX */
.disclaimer-box {
  background: rgba(10, 8, 6, 0.85);
  border: 1px dashed #8c7355;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 3px 3px 0px #000;
  width: 100%;
  text-align: center;
}

.disclaimer-title {
  font-family: 'VT323', monospace;
  color: #00d2ff;
  font-size: 2rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.25rem;
  text-align: center;
}

.disclaimer-box p {
  font-size: 0.75rem;
  color: #a89a85;
  line-height: 1.4;
  text-align: center;
}
/* Regular text */
.reading-content p {
  line-height: 2;
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}
/* =========================================================
                          CHAPTERS
   ========================================================= */
.era-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.era-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 12, 8, 0.9);
  border: 1px solid #4a3b2c;
  outline: 1px solid rgba(0, 0, 0, 0.8);
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-in-out;
  box-shadow: 3px 3px 0px #000;
}

.era-card:hover {
  background: rgba(24, 18, 12, 0.95);
  border-color: #00d2ff;
  outline-color: #00d2ff;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #00d2ff;
}

.era-card:hover .era-title {
  color: #00d2ff;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.era-info {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.era-tag {
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  padding: 0.15rem 0.6rem;
  letter-spacing: 0.1em;
  min-width: 80px;
  text-align: center;
  box-shadow: 2px 2px 0px #000;
}

/* Era Specific Tag Colors */
.tag-cyan { background: #002d3a; border: 1px solid #00d2ff; color: #00d2ff; }
.tag-green { background: #092a18; border: 1px solid #10b981; color: #a7f3d0; }
.tag-purple { background: #2d054d; border: 1px solid #a855f7; color: #e9d5ff; }
.tag-magenta { background: #3b082e; border: 1px solid #e02696; color: #f5d0fe; }
.tag-brown { background: #3b0a0a; border: 1px solid #ff4444; color: #ff9999; }
.tag-blue { background: #221d17; border: 1px solid #8c7355; color: #d5c3aa; }
.tag-gray { background: #1c1c1c; border: 1px solid #555555; color: #aaaaaa; }

.era-title {
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: #f0e2cf;
  transition: color 0.2s ease;
}

.era-status {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: #8c7355;
  letter-spacing: 0.1em;
}

/* Gray Button Variant */
.era-card.is-gray {
  background: rgba(14, 14, 14, 0.85);
  border: 1px solid #3a3a3a;
  outline: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow: 3px 3px 0px #000;
  opacity: 0.75;
}

.era-card.is-gray .era-title {
  color: #888888;
}

.era-card.is-gray .era-status {
  color: #555555;
}

.era-card.is-gray:hover {
  background: rgba(22, 22, 22, 0.95);
  border-color: #777777;
  outline-color: #777777;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #555555;
}

.era-card.is-gray:hover .era-title {
  color: #cccccc;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* =========================================================
                      FOOTER & BADGES
   ========================================================= */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  font-size: 0.75rem;
  color: #8c7355;
  margin-top: auto;
  padding-top: 1.5rem;
  width: 100%;
}
a {
  color: #b87333;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #00f3ff;
  text-decoration: underline;
}

a:visited {
  color: #00f3ff;
}

a:active {
  color: #ffffff;
}

/* =========================================================
                      MOBILE
   ========================================================= */
@media (max-width: 768px) {
  body {
    padding: 1.5rem 40px;
  }

  .goblet {
    top: 10px;
    width: 45px;
    height: auto;
  }

  .goblet-left { left: 1px; }
  .goblet-right { right: 1px; }

  .era-card { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 0.5rem; 
  }
}