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

body {
    font-family: 'Orbitron', sans-serif;
    background-color: #0a0a14;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    background-image: 
        linear-gradient(0deg, rgba(10, 10, 20, 0.8) 0%, rgba(10, 10, 20, 0.5) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="1" fill="%23ff00ff" opacity="0.1" y="20"/><rect width="100" height="1" fill="%2300ffff" opacity="0.1" y="40"/><rect width="100" height="1" fill="%23ff00ff" opacity="0.1" y="60"/><rect width="100" height="1" fill="%2300ffff" opacity="0.1" y="80"/></svg>');
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: linear-gradient(0deg, rgba(255, 0, 255, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 0, 255, 0.03) 0px,
        rgba(255, 0, 255, 0.03) 1px,
        transparent 1px,
        transparent 20px
    );
    pointer-events: none;
    z-index: 1;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

h1 {
    text-align: center;
    padding: 20px;
    color: #fff;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        0 0 10px rgba(255, 0, 255, 0.7),
        0 0 20px rgba(255, 0, 255, 0.5),
        0 0 30px rgba(255, 0, 255, 0.3);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
}

h1::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    color: #ff00ff;
    opacity: 0.5;
    filter: blur(8px);
}

#xd-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.xd {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor;
    transition: transform 0.2s ease, color 0.2s ease;
    filter: drop-shadow(0 0 5px currentColor);
    z-index: 10;
}

.xd:hover {
    transform: scale(1.2) rotate(0deg) !important;
    color: #ff00ff !important;
    text-shadow: 
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 30px #ff00ff;
    z-index: 100;
}

.xd.dragging {
    cursor: grabbing;
    opacity: 0.8;
}

/* Imagen central */
.central-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 81.25vh;
    height: 81.25vh;
    z-index: 0;
    pointer-events: none;
    animation: glow 3s infinite alternate;
}

.central-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.7)) 
            drop-shadow(0 0 20px rgba(255, 0, 255, 0.5));
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.7));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.7));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.7));
    }
}

/* Añadir una cuadrícula de fondo estilo retro */
.grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background-image: linear-gradient(
        0deg,
        rgba(255, 0, 255, 0.5) 0%,
        rgba(0, 255, 255, 0.2) 100%
    ),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23ff00ff" stroke-width="0.5"/><line x1="0" y1="20" x2="100" y2="20" stroke="%23ff00ff" stroke-width="0.2"/><line x1="0" y1="40" x2="100" y2="40" stroke="%23ff00ff" stroke-width="0.2"/><line x1="0" y1="60" x2="100" y2="60" stroke="%23ff00ff" stroke-width="0.2"/><line x1="0" y1="80" x2="100" y2="80" stroke="%23ff00ff" stroke-width="0.2"/><line x1="20" y1="0" x2="20" y2="100" stroke="%23ff00ff" stroke-width="0.2"/><line x1="40" y1="0" x2="40" y2="100" stroke="%23ff00ff" stroke-width="0.2"/><line x1="60" y1="0" x2="60" y2="100" stroke="%23ff00ff" stroke-width="0.2"/><line x1="80" y1="0" x2="80" y2="100" stroke="%23ff00ff" stroke-width="0.2"/></svg>');
    background-size: 100px 100px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

/* Caracteres japoneses decorativos */
.japanese-chars {
    position: absolute;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 8rem;
    color: rgba(255, 0, 255, 0.2);
    z-index: 0;
    pointer-events: none;
}

.japanese-chars.left {
    top: 10vh;
    left: 5vw;
}

.japanese-chars.right {
    bottom: 10vh;
    right: 5vw;
} 