@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Rajdhani:wght@400;600;700&display=swap');

:root {
    --bg-color: #050505;
    --accent-color: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.5);
    --text-primary: #e0e0e0;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 210, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    backdrop-filter: none;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

header:hover {
    opacity: 1;
}

.title {
    font-family: 'Michroma', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-glow);
}

.controls {
    display: flex;
    gap: 20px;
}

.control-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-item:hover {
    filter: drop-shadow(0 0 8px var(--accent-color));
}

.game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    background: #000;
}

canvas {
    width: 100vw;
    height: 100vh;
    object-fit: contain; /* Mantiene la relación de aspecto sin deformar */
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.fullscreen-img {
    width: 30px;
    height: 30px;
}

/* Animations */
@keyframes glowPulse {
    0% { box-shadow: 0 0 15px var(--accent-glow); }
    50% { box-shadow: 0 0 25px var(--accent-glow); }
    100% { box-shadow: 0 0 15px var(--accent-glow); }
}

canvas {
    animation: glowPulse 4s infinite ease-in-out;
}

/* Mobile */
@media (max-width: 600px) {
    .title { font-size: 0.9rem; }
    .game-container { padding: 5px; }
}
