:root {
    --bg: #090910;
    --neon-pink: #ff2a85;
    --neon-cyan: #00f0ff;
    --neon-purple: #8a2be2;
    --text-light: #e0fbfc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text-light);
    font-family: 'Exo 2', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Backgrounds */
.hex-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="60" height="103.923" viewBox="0 0 60 103.923" xmlns="http://www.w3.org/2000/svg"><path d="M30 103.923L0 86.6025V51.9615L30 34.641L60 51.9615V86.6025Z" fill="none" stroke="rgba(0, 240, 255, 0.05)" stroke-width="1"/><path d="M30 51.9615L0 34.641V0L30 -17.3205L60 0V34.641Z" fill="none" stroke="rgba(0, 240, 255, 0.05)" stroke-width="1"/></svg>');
    z-index: -3;
}

.nebula-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw; height: 80vw;
    max-width: 800px; max-height: 800px;
    background: radial-gradient(circle, rgba(138,43,226,0.15) 0%, rgba(255,42,133,0.05) 40%, transparent 70%);
    z-index: -2;
    animation: pulse-glow 8s infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.1); }
}

.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--neon-cyan);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* HUD Overlays */
.interface-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    padding: 30px;
}

.hud-box {
    position: absolute;
    font-size: 14px;
    letter-spacing: 2px;
    border-left: 2px solid var(--neon-cyan);
    padding-left: 10px;
}

.top-left { top: 30px; left: 30px; border-left-color: var(--neon-cyan); }
.top-right { top: 30px; right: 30px; border-left: none; border-right: 2px solid var(--neon-pink); padding-right: 10px; text-align: right; }

.accent { color: var(--neon-cyan); font-weight: bold; }
.top-right .accent { color: var(--neon-pink); }

/* Center Portal */
.center-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 10;
}

.portal-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.outer {
    width: 250px; height: 250px;
    border-top-color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    animation: spin 8s linear infinite;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.middle {
    width: 210px; height: 210px;
    border-left-color: var(--neon-pink);
    border-right-color: var(--neon-pink);
    animation: spin 6s linear infinite reverse;
    box-shadow: 0 0 15px rgba(255, 42, 133, 0.2);
}

.inner {
    width: 170px; height: 170px;
    border: 2px dashed var(--neon-purple);
    animation: spin 12s linear infinite;
}

.portal-core {
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(0, 240, 255, 0) 70%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    transition: all 0.3s ease;
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.portal-container:hover .outer { border-top-color: var(--neon-pink); border-bottom-color: var(--neon-pink); box-shadow: 0 0 30px var(--neon-pink); }
.portal-container:hover .middle { border-left-color: var(--neon-cyan); border-right-color: var(--neon-cyan); box-shadow: 0 0 30px var(--neon-cyan); }
.portal-container:hover .portal-core {
    background: radial-gradient(circle, rgba(255, 42, 133, 0.3) 0%, rgba(0, 240, 255, 0.1) 70%);
    color: #fff;
    text-shadow: 0 0 15px #fff, 0 0 25px var(--neon-pink);
    transform: scale(1.05);
}

.core-text { font-size: 18px; letter-spacing: 2px; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ar-message {
    font-size: 16px;
    letter-spacing: 3px;
    color: rgba(224, 251, 252, 0.7);
    text-align: center;
    max-width: 400px;
    border-top: 1px solid rgba(0, 240, 255, 0.3);
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    padding: 10px 0;
    animation: glitch-opacity 3s infinite;
}

@keyframes glitch-opacity {
    0%, 95%, 100% { opacity: 0.7; }
    96%, 98% { opacity: 0.2; }
    97%, 99% { opacity: 1; }
}

/* Floating Panels */
.floating-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0.5;
}

.left-panel { left: 40px; align-items: flex-start; }
.right-panel { right: 40px; align-items: flex-end; }

.line {
    height: 2px;
    background: var(--neon-cyan);
    width: 100%;
    box-shadow: 0 0 5px var(--neon-cyan);
}
.line.half { width: 50%; }
.right-panel .line { background: var(--neon-pink); box-shadow: 0 0 5px var(--neon-pink); }