* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    touch-action: none;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.8s ease-out;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: pulse 1s ease-in-out infinite;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: #111;
    margin-top: 20px;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    transition: width 0.3s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

#gyro-permission {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ffff;
    padding: 30px;
    text-align: center;
    z-index: 200;
    display: none;
    font-family: 'Courier New', monospace;
}

#gyro-permission p {
    color: #fff;
    margin-bottom: 20px;
    font-size: 14px;
}

#gyro-permission button {
    background: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 12px 30px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#gyro-permission button:hover {
    background: #00ffff;
    color: #000;
}

.info-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
    pointer-events: none;
}