/* continuum.css — Continuum Style (Original Cosmic Design) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    --bg-deep: #0a0a1a;
    --bg-surface: rgba(18, 18, 40, 0.7);
    --bg-card: rgba(12, 12, 28, 0.75);
    --border-glow: rgba(120, 100, 220, 0.4);
    --primary-lavender: #c3b8ff;
    --accent-cyan: #88ccff;
    --text-light: #f0f0fc;
    --text-dim: #b9b9e6;
}

body {
    background: var(--bg-deep);
    color: var(--text-light);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.5;
    font-weight: 400;
    scroll-behavior: smooth;
}

h1, h2, h3, .hero-sub, .stat-number, .unif-card strong, .prize-card strong, .quote, nav a {
    font-family: 'Manrope', 'DM Sans', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, #ffffff, #c3b8ff, #88ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 800;
}

.hero-sub {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

h2 {
    font-size: 2.5rem;
    margin: 2rem 0 1.2rem;
    border-left: 5px solid var(--accent-cyan);
    padding-left: 1.2rem;
    font-weight: 700;
}

.canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 30% 10%, #12102a, #03030f);
}

canvas.animated-lattice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ── NAV ───────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    background: rgba(8, 8, 20, 0.85);
    border-bottom: 1px solid var(--border-glow);
    z-index: 100;
    padding: 0.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-weight: 600;
}

.nav-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

nav a {
    color: var(--primary-lavender);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
    color: white;
    border-bottom-color: var(--accent-cyan);
    text-shadow: 0 0 6px rgba(136,204,255,0.6);
}

.nav-label { display: none; }

.crt-toggle {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem !important;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    border-left: 14px solid rgba(195, 184, 255, 0.5);
    padding-left: 1.2rem;
    border-bottom: none !important;
    margin-left: 1rem;
	right:2em
}

.flex-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 2rem 0; }

.unif-card, .prize-card, .problem-mini-card {
    background: rgba(8, 8, 22, 0.65); backdrop-filter: blur(8px); border-radius: 18px;
    padding: 1.2rem 1rem; text-align: center; transition: all 0.2s ease;
    border: 1px solid rgba(130, 110, 240, 0.2); min-width: 140px;
}
.unif-card:hover, .prize-card:hover, .problem-mini-card:hover {
    border-color: var(--accent-cyan); transform: translateY(-4px); background: rgba(30, 30, 60, 0.75);
}

.check-green { color: #5fe0a0; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.85rem; }

.stat-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin: 3rem 0; }
.stat-card {
    background: rgba(8, 8, 22, 0.65); backdrop-filter: blur(8px); padding: 1.6rem 1.8rem;
    border-radius: 18px; border: 1px solid rgba(130, 110, 240, 0.2); text-align: center; min-width: 190px;
}
.stat-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stat-card-link:hover .stat-card {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    background: rgba(30, 30, 60, 0.75);
}
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--accent-cyan); }

.data-table {
    width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5rem 0;
    background: rgba(8, 8, 22, 0.65); border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(130, 110, 240, 0.2);
}
.data-table th, .data-table td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid rgba(100, 90, 200, 0.12); }
.data-table th { background: rgba(24, 20, 54, 0.9); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-cyan); }
.data-table td { font-size: 0.9rem; color: var(--text-dim); }
.data-table th:first-child, .data-table td:first-child { text-align: center; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(100, 90, 200, 0.07); }
.status-solved { color: #5fe0a0; font-weight: 600; }
.problem-link { color: var(--accent-cyan); text-decoration: none; border-bottom: 1px dotted rgba(136, 204, 255, 0.4); transition: 0.1s; }
.problem-link:hover { color: white; border-bottom-color: var(--accent-cyan); }

.derivations-table {
    width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5rem 0;
    background: rgba(8, 8, 22, 0.65); border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(130, 110, 240, 0.2);
}
.derivations-table th, .derivations-table td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid rgba(100, 90, 200, 0.12); }
.derivations-table th { background: rgba(24, 20, 54, 0.9); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-cyan); }
.derivations-table td { font-size: 0.9rem; color: var(--text-dim); }
.derivations-table th:first-child, .derivations-table td:first-child { width: 5%; text-align: center; white-space: nowrap; }
.derivations-table th:nth-child(2), .derivations-table td:nth-child(2) { width: 78%; }
.derivations-table th:nth-child(3), .derivations-table td:nth-child(3) { width: 17%; text-align: center; white-space: nowrap; }
.derivations-table tr:last-child td { border-bottom: none; }
.derivations-table tr:hover td { background: rgba(100, 90, 200, 0.07); }
.derivation-link { color: var(--accent-cyan); text-decoration: none; border-bottom: 1px dotted rgba(136, 204, 255, 0.4); transition: 0.1s; font-weight: 500; }
.derivation-link:hover { color: white; border-bottom-color: var(--accent-cyan); }
.derivation-status { color: #5fe0a0; font-weight: 600; white-space: nowrap; }

.comparison-scroll { overflow-x: auto; margin: 1.5rem 0; }
.comparison-table {
    width: 100%; border-collapse: collapse; background: rgba(8, 8, 22, 0.65);
    border-radius: 18px; overflow: hidden; font-size: 0.85rem;
}
.comparison-table th, .comparison-table td { padding: 0.9rem 0.8rem; text-align: center; border-bottom: 1px solid rgba(136, 200, 255, 0.15); vertical-align: middle; }
.comparison-table th { background: rgba(24, 20, 54, 0.9); font-weight: 700; color: var(--accent-cyan); font-family: 'Manrope', sans-serif; }
.comparison-table th:first-child { text-align: left; }
.comparison-table td:first-child { text-align: left; font-weight: 600; background: rgba(20, 20, 50, 0.5); }
.check-mark { color: #5fe0a0; font-weight: 700; font-size: 1.1rem; }
.cross-mark { color: #ff6b6b; font-weight: 700; font-size: 1rem; }
.question-mark { color: #ffaa44; font-weight: 600; }
.fraction-text { font-size: 0.9rem; font-weight: 500; }

.predictions-table th:nth-child(1), .predictions-table td:nth-child(1) { width: 4%; text-align: center; white-space: nowrap; }
.predictions-table th:nth-child(2), .predictions-table td:nth-child(2) { width: 30%; }
.predictions-table th:nth-child(3), .predictions-table td:nth-child(3) { width: 24%; }
.predictions-table th:nth-child(4), .predictions-table td:nth-child(4) { width: 24%; }
.predictions-table th:nth-child(5), .predictions-table td:nth-child(5) { width: 18%; }
.undiscovered-text { color: #b8a0ff; font-weight: 600; font-style: italic; }
.prediction-highlight { color: #5fe0a0; font-weight: 500; }

.equation-fullwidth {
    width: 100%; background: rgba(8, 8, 22, 0.65); padding: 2rem 1rem; border-radius: 18px;
    backdrop-filter: blur(6px); border: 1px solid rgba(136, 204, 255, 0.6); margin: 1.5rem 0; text-align: center; overflow-x: auto;
}
.core-equation {
    background: rgba(8, 8, 22, 0.65); padding: 1.2rem 1rem; border-radius: 18px;
    border: 1px solid rgba(136, 204, 255, 0.4); margin: 1rem 0; text-align: center; font-size: 1.2rem;
}

.volume-block {
    background: rgba(8, 8, 22, 0.65); border-radius: 18px; padding: 1.6rem 2rem;
    margin: 2rem 0; border: 1px solid rgba(130, 110, 240, 0.2);
}

.simulation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.simulation-grid .volume-block {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.simulation-grid .volume-block p {
    flex: 1;
}

.paper-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.paper-link { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; font-weight: 500; transition: 0.1s; border-bottom: 1px dotted transparent; }
.paper-link:hover { color: white; border-bottom-color: var(--accent-cyan); }

.footer { margin-top: 5rem; padding: 2rem 0; border-top: 1px solid rgba(136,204,255,0.2); text-align: center; font-size: 0.85rem; }
.footer-discreet { display: none; }

.back-to-top { position: fixed; bottom: 2rem; right: 2rem; background: rgba(60, 50, 130, 0.8); backdrop-filter: blur(8px); padding: 0.7rem 1.1rem; border-radius: 60px; color: white; text-decoration: none; font-size: 0.8rem; border: 1px solid var(--accent-cyan); font-weight: 600; }
.quote { font-style: normal; font-size: 1.2rem; border-left: 4px solid var(--accent-cyan); padding: 1rem 1.8rem; margin: 1.5rem 0; background: rgba(0,0,0,0.3); border-radius: 32px; font-weight: 500; }

@media (max-width: 900px) { .series-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px) { .container { padding: 0 1.2rem; } h1 { font-size: 2.4rem; } .paper-list { grid-template-columns: 1fr; } .data-table td:first-child { white-space: normal; word-break: break-word; hyphens: auto;}}