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

body {
    background: #000;
    color: #fff;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

.universe-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#starfield {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0a0a2e 0%, #000 100%);
}

.portal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    animation: rotatePortal 30s linear infinite;
}

@keyframes rotatePortal {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.portal-svg {
    width: 100%;
    height: 100%;
}

.segments path {
    fill: url(#stars);
    stroke: #00ff88;
    stroke-width: 1;
    opacity: 0.8;
    filter: drop-shadow(0 0 3px #00ff88);
}

.content-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-section {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.timer {
    font-size: 3rem;
    color: #00ff88;
    font-weight: bold;
    text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88;
    margin-bottom: 20px;
}

.glitch-text {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.3s infinite;
    color: #00ff88;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.3s infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(20% 0 30% 0); transform: translate(0); }
    20% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(-1px, 1px); }
    80% { clip-path: inset(5% 0 70% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(65% 0 5% 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(5% 0 85% 0); transform: translate(1px, -1px); }
    80% { clip-path: inset(80% 0 10% 0); transform: translate(-1px, 1px); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-orb {
    position: absolute;
    opacity: 0.7;
}

.orb-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation: float-1 20s infinite ease-in-out;
}

.orb-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    animation: float-2 25s infinite ease-in-out;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(50px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 20px) rotate(240deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -60px) scale(1.1); }
}

.code-fragment {
    position: absolute;
    padding: 10px 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    opacity: 0;
    animation: code-flicker 5s infinite;
    pointer-events: all;
}

.code-fragment a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.code-fragment a:hover {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
}

.fragment-1 {
    top: 30%;
    right: 15%;
}

.fragment-2 {
    bottom: 35%;
    left: 12%;
}

@keyframes code-flicker {
    0%, 100% { opacity: 0; }
    10%, 30% { opacity: 0.8; }
    35% { opacity: 0.3; }
    40%, 60% { opacity: 0.9; }
    65% { opacity: 0.2; }
    70%, 90% { opacity: 0.7; }
}

.central-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: all;
}

.core-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.energy-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 30px #00ff88, inset 0 0 30px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.core-text {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 5px;
    text-shadow: 0 0 20px #00ff88;
    animation: core-glow 3s infinite alternate;
}

@keyframes core-glow {
    from { text-shadow: 0 0 20px #00ff88; }
    to { text-shadow: 0 0 40px #00ff88, 0 0 60px #00ff88; }
}

.bottom-interface {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
}

.live-link {
    text-align: center;
    margin-top: 20px;
}

.live-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    animation: live-pulse 2s infinite;
}

.live-link a:hover {
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 20px #ff0000, inset 0 0 20px rgba(255, 0, 0, 0.3);
    transform: scale(1.05);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    animation: live-blink 1s infinite;
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.5); }
}

@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-bar {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    backdrop-filter: blur(10px);
}

.status-item {
    font-size: 0.9rem;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: status-blink 3s infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .portal-ring {
        width: 400px;
        height: 400px;
    }
    
    .glitch-text {
        font-size: 1.8rem;
    }
    
    .timer {
        font-size: 2rem;
    }
    
    .orb-1, .orb-2 {
        width: 60px;
        height: 60px;
    }
}