body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: Arial, sans-serif;
    color: white;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#ui-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to canvas unless on a button */
}

#ui-overlay button {
    pointer-events: auto;
}

.top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    text-align: right;
}

.stat {
    font-size: 14px;
    text-shadow: 1px 1px 2px black;
}

.bottom-right-grid {
    position: absolute;
    bottom: 120px;
    right: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.1s;
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn::before {
    content: '';
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    background-size: contain;
    background-repeat: no-repeat;
}

#btn-hi::before { content: '👋'; font-size: 20px; }
#btn-summon::before { content: '🌀'; font-size: 20px; }
#btn-crouch::before { content: '🧎'; font-size: 20px; }
#btn-map::before { content: '🗺️'; font-size: 20px; }
#btn-task::before { content: '📋'; font-size: 20px; }
#btn-release::before { content: '✨'; font-size: 20px; }

.hand-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.hand-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
}

.joystick-container {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: auto;
}

#joystick {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bottom-left {
    position: absolute;
    bottom: 20px;
    left: 160px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.dress-up-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    padding: 20px;
    border-radius: 10px;
    pointer-events: auto;
}

