* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0c0c2e 0%, #1a1a3e 50%, #2d1b69 100%);
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Estrellas de fondo */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star:hover {
    transform: scale(2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                0 0 40px rgba(135, 206, 250, 0.6),
                0 0 60px rgba(173, 216, 230, 0.4);
    background: radial-gradient(circle, #ffffff 0%, #87ceeb 100%);
}

.star.small {
    width: 2px;
    height: 2px;
}

.star.medium {
    width: 3px;
    height: 3px;
}

.star.large {
    width: 4px;
    height: 4px;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Partículas flotantes */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateX(-100px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100vw) rotate(360deg); opacity: 0; }
}

/* Container principal */
#unity-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Contenedor del título con imágenes */
.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Imágenes laterales del título */
.title-image {
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    /* Placeholder para las imágenes */
    cursor: pointer;
}

.title-image:hover {
    transform: scale(1.1);
    
}

.title-image:active {
    transform: scale(0.95);
    
}

/* Imagen izquierda - CAMBIA ESTA URL */
.title-image-left {
    background-image: url('TrekkyLogo.png');
}

/* Imagen derecha - CAMBIA ESTA URL */
.title-image-right {
    background-image: url('TrekkyLogo.png');
}

/* Título del juego */
.game-title {
    color: #87ceeb;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 10px rgba(135, 206, 250, 0.5);
    margin: 0;


    


}

/* Canvas del juego */
#unity-canvas {
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(135, 206, 250, 0.3),
                0 0 100px rgba(135, 206, 250, 0.1);
    border: 2px solid rgba(135, 206, 250, 0.3);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Barra de carga */
#unity-loading-bar {
    width: 100%;
    max-width: 960px;
    margin: 20px 0;
    text-align: center;
}

#unity-logo {
    width: 154px;
    height: 130px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTU0IiBoZWlnaHQ9IjEzMCIgdmlld0JveD0iMCAwIDE1NCAxMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIxNTQiIGhlaWdodD0iMTMwIiBmaWxsPSIjMDAwMDAwIiBmaWxsLW9wYWNpdHk9IjAuMSIvPgo8dGV4dCB4PSI3NyIgeT0iNzAiIGZpbGw9IiNmZmZmZmYiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIyMCIgdGV4dC1hbmNob3I9Im1pZGRsZSI+VU5JVFk8L3RleHQ+Cjwvc3ZnPgo=') no-repeat center;
    background-size: contain;
    margin: 0 auto 20px;
}

#unity-progress-bar-empty {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(135, 206, 250, 0.3);
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4169e1, #87ceeb, #ffffff);
    border-radius: 12px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(135, 206, 250, 0.6);
    animation: progress-glow 2s ease-in-out infinite alternate;
}

@keyframes progress-glow {
    from { box-shadow: 0 0 20px rgba(135, 206, 250, 0.4); }
    to { box-shadow: 0 0 30px rgba(135, 206, 250, 0.8); }
}

/* Mensajes de advertencia */
#unity-warning {
    margin: 20px 0;
    text-align: center;
}

#unity-warning div {
    border-radius: 10px;
    margin: 10px 0;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
#unity-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

#unity-build-title {
    color: #87ceeb;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(135, 206, 250, 0.5);
}

#unity-fullscreen-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4169e1, #87ceeb);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    position: relative;
    overflow: hidden;
}

#unity-fullscreen-button:before {
    content: "⛶";
    color: white;
    font-size: 20px;
    font-weight: bold;
}

#unity-fullscreen-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(65, 105, 225, 0.5);
    background: linear-gradient(135deg, #5577ff, #99ddff);
}

/* Responsive Design */
.unity-mobile #unity-canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100vw;
    max-height: 70vh;
}

@media (max-width: 768px) {
    .title-container {
        gap: 20px;
    }
    
    /* Ocultar imagen derecha en móvil */
    .title-image-right {
        display: none;
    }
    
    .title-image {
        width: 60px;
        height: 60px;
    }
    
    .game-title {
        font-size: 2rem;
    }

    #unity-container {
        padding: 10px;
    }

    #unity-canvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }
}

/* Efectos adicionales */
.cosmic-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(135, 206, 250, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: cosmic-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes cosmic-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.1; }
}
