:root {
    --gold: #d4af37;
    --soul-purple: #4b0082;
    --soul-blue: #1a2a6c;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
    color: white;
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

/* Background Star Animation */
.stars, .twinkling {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; display: block;
}

.stars {
    background: #000 url(/lightcode-compass/img/stars.png) repeat top center;
    z-index: 0;
}

.twinkling {
    background: transparent url(/lightcode-compass/img/twinkling.png) repeat top center;
    z-index: 1;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

.portal-container {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 20px;
}

.glow-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    letter-spacing: 5px;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    margin-bottom: 40px;
}

.video-frame {
    border: 1px solid var(--gold);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 1);
    border-radius: 15px;
    margin-bottom: 40px;
}

.activation-video {
    width: 100%;
    border-radius: 10px;
}

.manifesto {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 60px;
    font-style: italic;
}

/* Portal Button Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.portal-card {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px 5px; /* Mystical Shape */
    text-decoration: none;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    overflow: hidden;
    transition: all 0.5s ease;
    background: rgba(75, 0, 130, 0.2);
}

.portal-card:hover {
    transform: scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

.inner-glow {
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portal-card:hover .inner-glow {
    opacity: 1;
}