/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: #000;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Game Container */
#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

#game-container canvas {
    display: block;
}

/* Game UI - Minimal */
#game-ui {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: none;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ui-row {
    display: none;
}

.health-bar-container {
    display: none;
}

.stats {
    display: none;
}

.controls-hint {
    font-size: 10px;
    opacity: 0.3;
    letter-spacing: 1px;
    text-align: center;
}

/* Menu Button */
#menu-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 100;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    cursor: pointer;
    padding: 10px 15px;
    transition: opacity 0.2s ease;
}

#menu-btn:hover {
    opacity: 0.7;
}

#menu-btn.hidden {
    display: none;
}

/* Menu Overlay */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.75);
    z-index: 200;
    display: none;
    cursor: pointer;
}

#menu-overlay.active {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 80px;
    padding-top: 80px;
}

.menu-content {
    text-align: left;
    cursor: default;
}

.menu-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 6vw, 72px);
    color: #000;
    letter-spacing: 8px;
    margin-bottom: 60px;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

.menu-link {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: #000;
    text-decoration: none;
    letter-spacing: 4px;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.menu-link:hover {
    opacity: 0.5;
}

/* Dropdown */
.menu-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dropdown-trigger {
    display: inline-block;
}

.dropdown-trigger::after {
    content: ' ▾';
    font-size: 10px;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.dropdown-trigger.open::after {
    content: ' ▴';
}

.dropdown-content {
    display: none;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    padding: 20px 30px;
    background: #f5f5f5;
}

.dropdown-content.open {
    display: flex;
}

.dropdown-item {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 400;
    color: #333;
    text-decoration: none;
    letter-spacing: 2px;
    transition: opacity 0.2s ease;
}

.dropdown-item:hover {
    opacity: 0.5;
}

.menu-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #999;
    letter-spacing: 2px;
}

/* ============================================
   MOBILE CONTROLS - Hidden on Desktop
   ============================================ */

#mobile-controls {
    display: none;
}

/* Show only on touch devices */
@media (pointer: coarse) {
    #mobile-controls {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 80;
        pointer-events: none;
    }

    /* Hide desktop controls hint on mobile */
    #game-ui .controls-hint {
        display: none;
    }

    /* Joystick Zone (left half of screen) */
    #joystick-zone {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50%;
        height: 50%;
        pointer-events: auto;
    }

    #joystick-base {
        position: absolute;
        left: 60px;
        bottom: 60px;
        width: 120px;
        height: 120px;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #joystick-stick {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        transition: transform 0.05s ease-out;
    }

    /* Mobile Buttons (right side) */
    #mobile-buttons {
        position: absolute;
        right: 20px;
        bottom: 40px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        pointer-events: auto;
    }

    .mobile-btn {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        transition: background 0.1s ease, transform 0.1s ease;
    }

    .mobile-btn:active {
        background: rgba(255, 255, 255, 0.35);
        transform: scale(0.95);
    }

    .mobile-btn#btn-jump {
        background: rgba(0, 200, 255, 0.2);
        border-color: rgba(0, 200, 255, 0.4);
    }

    .mobile-btn#btn-attack {
        background: rgba(255, 100, 100, 0.2);
        border-color: rgba(255, 100, 100, 0.4);
    }
}

