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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: linear-gradient(180deg, #1e40af 0%, #0369a1 100%);
}

#scene-container {
    width: 100vw;
    height: 100vh;
}

#hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.hud-panel {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #22c55e;
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-size: 16px;
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.top-left {
    top: 20px;
    left: 20px;
}

.bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.controls-help {
    top: 20px;
    right: 20px;
    max-width: 250px;
}

.controls-help h3 {
    color: #22c55e;
    margin-bottom: 10px;
    text-align: center;
}

.stat-line, .control-row {
    margin-bottom: 5px;
    color: #e5e7eb;
}

.game-btn {
    background: linear-gradient(145deg, #22c55e, #16a34a);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-btn:hover {
    background: linear-gradient(145deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.game-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    border: 2px solid #22c55e;
    border-radius: 10px;
    padding: 15px 20px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 200;
    animation: tooltipPop 0.3s ease-out;
}

@keyframes tooltipPop {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.tooltip-content .file-name {
    font-size: 20px;
    margin-bottom: 5px;
    color: #f0fdf4;
}

.tooltip-content .file-size {
    font-size: 16px;
    color: #bbf7d0;
}

.hidden {
    display: none !important;
}

.footer {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 150;
    opacity: 0.7;
}

.footer a {
    color: #22c55e;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hud-panel {
        font-size: 14px;
        padding: 10px;
    }
    
    .top-left {
        top: 10px;
        left: 10px;
    }
    
    .controls-help {
        top: 10px;
        right: 10px;
        max-width: 200px;
    }
    
    .bottom-center {
        bottom: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .game-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .tooltip {
        font-size: 16px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .controls-help {
        display: none;
    }
    
    .hud-panel {
        font-size: 12px;
        padding: 8px;
    }
    
    .tooltip {
        font-size: 14px;
        padding: 10px 14px;
    }
}