/* Zodiverse — global theme.
   Dark cosmos backdrop, gold/violet accents, serif headings (Cinzel-feel). */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; }

body {
    background: radial-gradient(ellipse at top, #1a0f30 0%, #07050f 60%, #000000 100%);
    color: #f4e9c1;
    font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
    letter-spacing: 0.05em;
    overflow: hidden;
}

/* ─── Star backdrop (shared) ─────────────────────────────────────── */
.splash-stars, .map-stars {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 100%),
        radial-gradient(1px 1px at 28% 72%, #ffe9b3 50%, transparent 100%),
        radial-gradient(1px 1px at 47% 22%, #fff 50%, transparent 100%),
        radial-gradient(2px 2px at 56% 88%, #d6b8ff 50%, transparent 100%),
        radial-gradient(1px 1px at 71% 41%, #fff 50%, transparent 100%),
        radial-gradient(1px 1px at 82% 67%, #ffe9b3 50%, transparent 100%),
        radial-gradient(1px 1px at 91% 14%, #fff 50%, transparent 100%),
        radial-gradient(2px 2px at 19% 52%, #d6b8ff 50%, transparent 100%),
        radial-gradient(1px 1px at 38% 95%, #fff 50%, transparent 100%),
        radial-gradient(1px 1px at 64% 9%, #ffe9b3 50%, transparent 100%);
    background-size: 100% 100%;
    pointer-events: none;
    animation: drift 80s linear infinite;
    opacity: 0.85;
}
@keyframes drift {
    0% { transform: translate3d(0,0,0); }
    100% { transform: translate3d(-3%, -2%, 0); }
}

/* ─── Splash ─────────────────────────────────────────────────────── */
.splash-body { overflow: hidden; }
.splash-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4vh;
    z-index: 1;
}
.splash-wordmark {
    text-align: center;
    animation: fadeUp 1.2s ease-out both;
}
.splash-wordmark h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.25em;
    background: linear-gradient(180deg, #fff5d6 0%, #daa520 60%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(218, 165, 32, 0.4);
}
.splash-wordmark p {
    margin-top: 0.5em;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    color: #b8a080;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}
.splash-loader {
    width: min(280px, 60vw);
    height: 2px;
    background: rgba(218, 165, 32, 0.15);
    border-radius: 1px;
    overflow: hidden;
}
.splash-loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, #daa520, transparent);
    animation: fill 2.2s ease-out forwards;
}
@keyframes fill { from { width: 0%; } to { width: 100%; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Map (home) ─────────────────────────────────────────────────── */
.map-body { overflow-y: auto; }
.map-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    background: linear-gradient(180deg, rgba(7,5,15,0.85) 0%, transparent 100%);
}
.map-stardust {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    color: #daa520;
}
.stardust-glyph { font-size: 1.4rem; color: #fff5d6; text-shadow: 0 0 8px #daa520; }
.map-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, #2b1a4d 0%, #0a0518 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #daa520;
    font-size: 1.4rem;
    border: 1px solid rgba(218,165,32,0.4);
    cursor: pointer;
}

.map-grid {
    position: relative;
    z-index: 1;
    min-height: 100%;
    padding: 7rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 920px;
    margin: 0 auto;
    align-content: center;
}

.map-node {
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, rgba(43,26,77,0.6) 0%, rgba(10,5,24,0.85) 100%);
    border: 1px solid rgba(218,165,32,0.35);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(2px);
}
.map-node:hover {
    transform: translateY(-3px);
    border-color: #daa520;
    box-shadow: 0 10px 30px rgba(218,165,32,0.18);
}
.node-glyph {
    font-size: 3rem;
    color: #daa520;
    text-shadow: 0 0 14px rgba(218,165,32,0.6);
    margin-bottom: 0.5rem;
}
.node-label {
    font-size: 1.05rem;
    color: #f4e9c1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.node-sub {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #8a7558;
    letter-spacing: 0.1em;
}

.map-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 0.8rem;
    text-align: center;
    font-size: 0.7rem;
    color: #5a4a30;
    letter-spacing: 0.2em;
    z-index: 5;
}
