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

body {
    background: #0a0e27;
    overflow: auto;
}

#gw {
    background: #111;
    font-family: 'Courier New', monospace;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 250px;
}

#hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 10px;
    color: #f5c542;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 2px;
}

#hud .title {
    color: #f5c542;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 10px #f5c54244;
}

#stars-hud {
    color: #f43f5e;
    font-size: 12px;
    letter-spacing: 2px;
}

#mission-info {
    position: fixed;
    top: 70px;
    left: 12px;
    background: rgba(0, 0, 0, 0.9);
    color: #f5c542;
    padding: 8px 12px;
    border: 1px solid #f5c542;
    border-radius: 2px;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    z-index: 40;
    box-shadow: 0 0 10px #f5c54244;
}

#mission-progress {
    color: #f43f5e;
    font-weight: bold;
}

#wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 8px 0;
    flex: 1;
}

#gc {
    display: block;
    border: 2px solid #f5c542;
    background: #1a1a1a;
    cursor: crosshair;
    image-rendering: pixelated;
    box-shadow: 0 0 20px #f5c54422;
}

#minimap {
    position: absolute;
    bottom: 8px;
    right: 8px;
    border: 2px solid #f5c542;
    background: #111;
    border-radius: 2px;
    box-shadow: 0 0 10px #f5c54422;
    image-rendering: pixelated;
}

#overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 3px;
    backdrop-filter: blur(4px);
    z-index: 100;
}

#overlay h2 {
    color: #f5c542;
    font-size: 24px;
    letter-spacing: 3px;
    text-shadow: 0 0 20px #f5c54244;
}

#overlay p {
    color: #aaa;
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
    max-width: 400px;
}

#obtn {
    background: transparent;
    border: 1px solid #f5c542;
    color: #f5c542;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 10px 32px;
    cursor: pointer;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: all 0.2s;
    text-transform: uppercase;
    font-weight: bold;
}

#obtn:hover {
    background: #f5c54222;
    box-shadow: 0 0 10px #f5c54244;
}

#obtn:active {
    transform: scale(0.98);
}

#ctrl {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
    padding: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 2px;
    font-size: 9px;
}

.kb {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 2px;
    padding: 3px 8px;
    color: #f5c542;
    font-size: 8px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #f5c542;
    padding: 10px 20px;
    border: 1px solid #f5c542;
    border-radius: 2px;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.3s;
    max-width: 300px;
    text-align: center;
}

#notification.show {
    opacity: 1;
}

/* MOBILE RESPONSIVE - FIXED FOR VISIBILITY */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    #gw {
        min-height: auto;
        padding: 10px;
        padding-bottom: 280px;
    }

    #gc {
        width: 100%;
        height: 300px;
        max-width: 100vw;
    }

    #hud {
        font-size: 8px;
        gap: 4px;
        padding: 4px;
    }

    #ctrl {
        font-size: 7px;
        gap: 6px;
        padding: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow-x: auto;
        position: relative;
        background: rgba(0, 0, 0, 0.8);
        border-top: 2px solid #f5c542;
        border-radius: 0;
        z-index: 35;
        margin-top: 10px;
        max-height: none;
        overflow-y: visible;
        width: 100%;
    }

    .kb {
        font-size: 6px;
        padding: 3px 5px;
        white-space: nowrap;
    }

    #mission-info {
        font-size: 7px;
        top: 50px;
        left: 5px;
        padding: 4px 6px;
    }

    #wrap {
        margin: 5px 0;
    }

    #minimap {
        bottom: 150px;
        right: 5px;
        width: 80px;
        height: 80px;
    }
}
