body {
    margin: 0;
    overflow: hidden;
    background: #000;
    font-family: 'Orbitron', sans-serif;
}

#telescopeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #FF0000;
    text-decoration: none;
    font-size: 16px;
    z-index: 1000;
    padding: 10px 20px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #FF0000;
    transform: scale(1.05);
}

.telescope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.telescope-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 0, 0, 0.3);
}

.telescope-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.crosshair::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.crosshair::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.zoom-info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: #FF0000;
    font-size: 14px;
    z-index: 1000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.controls-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #FF0000;
    font-size: 14px;
    text-align: right;
    z-index: 1000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    line-height: 1.5;
}

#info-panel.planet-info {
    position: fixed;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border: 2px solid #FF0000;
    border-radius: 10px;
    color: #FF0000;
    z-index: 9999;
    pointer-events: auto;
    min-width: 300px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    display: none;
}

.planet-info h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    text-align: center;
    color: #ff0000;
}

.planet-info p {
    margin: 12px 0;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    letter-spacing: 1px;
}

.log-button {
    margin-top: 20px;
    padding: 12px 20px;
    background: #FF0000;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.log-button:hover:not(:disabled) {
    background: #FF1111;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.log-button:disabled {
    background: #333;
    cursor: not-allowed;
    opacity: 0.7;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-content {
    text-align: center;
}

.loading-text {
    color: #FF0000;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

.discovery-message {
    color: #FF0000;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Vignette effect */
.telescope-overlay::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 30%,
        rgba(0, 0, 0, 0.6) 80%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
    z-index: 3;
}
