   html, body {
        margin: 0;
        padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
        background: #000;
        font-family: 'Segoe UI', sans-serif;
        color: #f5e7d0;
    }

    /* --- BACKGROUND IMAGE --- */
    #bg {
        position: fixed;
        inset: 0;
        background: url('solar_flares.webp') center/cover no-repeat;
        filter: brightness(0.8);
        opacity: 0;
        animation: fadeIn 3s ease forwards;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* --- CINEMATIC GRADIENT OVERLAY --- */
    #overlay {
        position: fixed;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.75));
        pointer-events: none;
    }

    /* --- CENTER TEXT CONTAINER --- */
#content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(100%, 100%);
    text-align: center;
  width: min(760px, calc(100vw - 2rem));
    animation: riseUp 2.4s ease forwards 1.2s;
    opacity: 0;
padding-bottom: 5rem;
}

    @keyframes riseUp {
        from { transform: translate(-50%, -30%); opacity: 0; }
        to   { transform: translate(-50%, -45%); opacity: 1; }
    }

/* unvisited link */
a:link {
  color: gold;
}

/* visited link */
a:visited {
  color: khaki;
}

/* mouse over link */
a:hover {
  color: orange;
}

/* selected link */
a:active {
  color: gold;
}
    h1 {
        font-size: 3.2rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.4em;
        padding-top: 0.4em;
        font-weight: 300;
        color: #f0d9b4;
        text-shadow: 0 0 25px rgba(255,200,150,0.3);
    }

    /* --- COUNTDOWN TIMER --- */
    #countdown {
        font-size: 1.2rem;
        margin: 0.4rem 0 1.2rem 0;
        color: #ffe3bd;
        text-shadow: 0 0 12px rgba(255,210,160,0.35);
        font-weight: 300;
        letter-spacing: 0.03em;
    }

    /* --- GAME LORE BLOCK --- */
    #lore {
        font-size: 1rem;
        line-height: 1.25em;
        margin: 0 auto 1.5rem auto;
        max-width: 840px;
        background: rgba(0,0,0,0.45);
        padding: 1.2rem 1.4rem;
        border-radius: 12px;
        border: 1px solid rgba(255,220,180,0.25);
        backdrop-filter: blur(4px);
        text-shadow: 0 0 8px rgba(0,0,0,0.4);
    }

    h2 {
        font-weight: 300;
        font-size: 1.3rem;
        margin-bottom: 2rem;
        color: #f5e7d0;
        opacity: 0.9;
    }

h3 {
        font-weight: 300;
        font-size: 1.0rem;
        margin-bottom: 1rem;
        color: #f5e7d0;
        opacity: 0.8;
    }

hr {
        border: none;
        height: 3px; 
        background: linear-gradient(to right, gold, khaki);
width: 50%;
        opacity: 0.2;
    }

    /* --- JSON HIGHLIGHT BOX --- */
    #jsonBox {
        background: rgba(0,0,0,0.45);
        padding: 1.2rem 1.6rem;
        border-radius: 12px;
        border: 1px solid rgba(255,220,180,0.25);
        font-family: Consolas, monospace;
        text-align: left;
        margin: 0 auto 2rem auto;
        max-width: 420px;
        white-space: pre;
        font-size: 0.85rem;
        color: #ffd9a3;
        text-shadow: 0 0 10px rgba(255,180,120,0.3);
        animation: glowPulse 3.5s ease-in-out infinite alternate;
    }

    @keyframes glowPulse {
        from { box-shadow: 0 0 12px rgba(255,200,150,0.15); }
        to   { box-shadow: 0 0 22px rgba(255,200,150,0.35); }
    }

    /* --- CTA BUTTON --- */
    #enterBtn {
        display: inline-block;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        background: rgba(200,150,80,0.2);
        border: 2px solid rgba(255,200,150,0.5);
        color: #ffe7c5;
        text-decoration: none;
        letter-spacing: 0.1em;
        font-size: 1rem;
        margin-top: 1rem;
        transition: all 0.25s ease;
    }

    #enterBtn:hover {
        background: rgba(255,200,150,0.35);
        transform: scale(1.05);
        box-shadow: 0 0 14px rgba(255,200,150,0.5);
    }

    /* FOOTER TAGLINE */
    #footer {
        position: fixed;
        bottom: 1rem;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        opacity: 0.75;
        letter-spacing: 0.05em;
    }

#creatorBlock {
    text-align: left;
    margin: 1.2rem auto;
    max-width: 880px;
    background: rgba(0,0,0,0.35);
    padding: 1.2rem 1.4rem;
    border-radius: 10px;
    border: 1px solid rgba(255,220,180,0.2);
    line-height: 1.4em;
}

#creatorBlock ul {
    padding-left: 1.4rem;
    margin-top: 0.5rem;
}

#creatorBlock li {
    margin-bottom: 0.4rem;
}



/* MODAL PAGE */


body.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.modal-shell[aria-hidden="false"] {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  margin: 1rem auto;
  top: 50%;
  transform: translateY(-50%);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255,200,150, 0.26);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(9, 18, 11, 0.96), rgba(0, 0, 0, 0.96)),
    var(--glass);
  box-shadow:
    0 0 60px rgba(255,200,150, 0.09),
    0 30px 80px rgba(0, 0, 0, 0.8);
}

.modal-card h2 {
  margin: 0 0 1rem;
  color: var(--gold);
  font-weight: normal;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.08em;
}

.modal-card p,
.modal-card li {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.modal-card a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 255, 60, 0.35);
}

.modal-card a:hover {
  border-bottom-color: var(--green);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(183, 255, 60, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.modal-actions a {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(183, 255, 60, 0.28);
  border-radius: 999px;
  background: rgba(183, 255, 60, 0.05);
}

.copy-section {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(183, 255, 60, 0.14);
}

.copy-section h3 {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-weight: normal;
  letter-spacing: 0.08em;
}


.site-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  align-items: center;
  color: rgba(237, 247, 221, 0.42);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.site-links button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.site-links button:hover {
  color: khaki;
}

.site-copyright {
  margin-top: 0.45rem;
  color: rgba(237, 247, 221, 0.34);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}