/* ═══════════════════════════════════════════
   RESET & BASE — inherits space aesthetic
═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent:     #8ecfff;
    --accent-dim: #5aa8e0;
    --text:       #c9e8ff;
    --muted:      #4a6070;
    --bg-card:    rgba(10, 18, 40, 0.65);
    --white:      #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #000005;
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    line-height: 1.75;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════
   FULL-PAGE STAR CANVAS
═══════════════════════════════════════════ */
.stars-canvas-full {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Deep nebula background behind everything */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(30,10,80,0.55) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(8,30,70,0.55) 0%, transparent 65%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(2,5,20,1) 0%, transparent 80%),
        linear-gradient(180deg, #000005 0%, #010210 20%, #020315 50%, #010210 80%, #000005 100%);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 30% at 15% 20%, rgba(80,20,140,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 25% at 85% 45%, rgba(20,60,140,0.20) 0%, transparent 65%),
        radial-gradient(ellipse 50% 20% at 50% 75%, rgba(60,10,100,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 35% 18% at 70% 15%, rgba(0,80,120,0.18) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
    animation: nebula-drift 28s ease-in-out infinite alternate;
}

@keyframes nebula-drift {
    0%   { transform: translate(0px, 0px) scale(1); opacity: 0.8; }
    33%  { transform: translate(30px, -20px) scale(1.04); opacity: 1; }
    66%  { transform: translate(-20px, 15px) scale(0.97); opacity: 0.7; }
    100% { transform: translate(10px, -10px) scale(1.02); opacity: 0.9; }
}

/* ═══════════════════════════════════════════
   PAGE WRAPPER — sits above canvas
═══════════════════════════════════════════ */
.mythos-page-wrap {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 6% 120px;
}

/* ═══════════════════════════════════════════
   TOP SECTION — COVER + TEXT SIDE BY SIDE
═══════════════════════════════════════════ */
.mythos-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 70px;
    align-items: start;
    margin-bottom: 70px;
}

/* Cover image */
.mythos-cover-wrap {
    flex-shrink: 0;
}

.mythos-cover-img {
    width: 420px;
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(142,207,255,0.18);
    box-shadow:
        0 0 40px rgba(142,207,255,0.12),
        0 20px 60px rgba(0,0,0,0.7);
    display: block;
}

/* Right-side text blocks */
.mythos-intro-text {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 8px;
}

.mythos-heading {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(22px, 2.8vw, 36px);
    color: var(--accent);
    margin-bottom: 18px;
    text-shadow: 0 0 30px rgba(142,207,255,0.3);
    line-height: 1.3;
}

.mythos-body {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 300;
    color: var(--text);
    line-height: 1.85;
}

/* ═══════════════════════════════════════════
   EXPLORE BUTTON
═══════════════════════════════════════════ */
.explore-btn-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 130px;
    margin-top: 40px;
}

.explore-btn {
    padding: 22px 52px;
    background: rgba(10,20,60,0.45);
    border: 1px solid rgba(142,207,255,0.35);
    border-radius: 4px;
    color: rgba(255,255,255,0.92);
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow:
        0 0 30px rgba(142,207,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.08);
    transition: letter-spacing 0.4s, border-color 0.4s, color 0.4s,
                box-shadow 0.4s, background 0.4s;
}

.explore-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(10,30,80,0.6);
    letter-spacing: 4px;
    box-shadow:
        0 0 60px rgba(142,207,255,0.22),
        0 0 120px rgba(142,207,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.explore-btn.clicked {
    pointer-events: none;
    color: var(--accent);
    border-color: rgba(142,207,255,0.5);
    letter-spacing: 2px;
}

/* ═══════════════════════════════════════════
   UPDATE LOG SECTION
═══════════════════════════════════════════ */
.update-log-section {
    max-width: 900px;
    margin: 0 auto;
}

/* Access code input */
.log-input-wrap {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.log-input-line {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(142,207,255,0.15);
    padding-bottom: 8px;
    width: fit-content;
}

.log-input-prefix {
    color: var(--accent-dim);
    font-size: 22px;
    line-height: 1;
    user-select: none;
}

#logAccessInput {
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent);
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    caret-color: var(--accent);
    width: 260px;
    letter-spacing: 2px;
    text-align: center;
}

#logAccessInput::placeholder {
    color: rgba(142,207,255,0.25);
    letter-spacing: 3px;
    font-size: 14px;
}

.log-input-response {
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    color: var(--accent-dim);
    min-height: 1.4em;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.log-input-response.visible { opacity: 1; }

/* Update Log title */
.update-log-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(20px, 2.5vw, 32px);
    color: var(--white);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.update-log-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 14px auto 0;
}

/* Log entries */
.update-log-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.log-entry {
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid rgba(142,207,255,0.08);
    border-left: 3px solid var(--accent-dim);
    border-radius: 4px;
    backdrop-filter: blur(6px);
    transition: border-color 0.3s;
}

.log-entry:hover {
    border-color: rgba(142,207,255,0.15);
    border-left-color: var(--accent);
}

.log-date {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-dim);
    margin-bottom: 14px;
}

.log-entry p {
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.9;
    color: var(--text);
}

/* ── LOCKED / BLURRED STATE ── */
.log-entry.locked .log-date,
.log-entry.locked p {
    filter: blur(5px);
    user-select: none;
    transition: filter 0.05s;
}

/* ── GLITCHING STATE (during decode) ── */
.log-entry.glitching .log-date,
.log-entry.glitching p {
    filter: none;
}

/* ── UNLOCKED STATE ── */
.log-entry.unlocked .log-date,
.log-entry.unlocked p {
    filter: none;
    user-select: auto;
    transition: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .mythos-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .mythos-cover-img {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .mythos-page-wrap { padding: 50px 5% 80px; }
    .explore-btn { padding: 18px 28px; letter-spacing: 1px; }
    .log-entry { padding: 20px 18px; }
}