/* --- Controls --- */
.controls-area {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
}

/* D-Pad */
.d-pad {
    position: relative;
    width: 100px;
    height: 100px;
}

.d-center,
.d-up,
.d-down,
.d-left,
.d-right {
    background: var(--btn-dpad);
    position: absolute;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.d-center {
    width: 34px;
    height: 34px;
    top: 33px;
    left: 33px;
    z-index: 2;
    box-shadow: none;
}

.d-up {
    width: 34px;
    height: 34px;
    top: 0;
    left: 33px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
}

.d-down {
    width: 34px;
    height: 34px;
    bottom: 0;
    left: 33px;
    border-radius: 0 0 4px 4px;
    cursor: pointer;
}

.d-left {
    width: 34px;
    height: 34px;
    left: 0;
    top: 33px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
}

.d-right {
    width: 34px;
    height: 34px;
    right: 0;
    top: 33px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.d-up:active,
.d-down:active,
.d-left:active,
.d-right:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* Big Red Button */
.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.big-btn {
    width: 80px;
    height: 80px;
    background: var(--btn-action);
    border-radius: 50%;
    border: none;
    box-shadow:
        inset -5px -5px 10px rgba(0, 0, 0, 0.2),
        inset 5px 5px 10px rgba(255, 255, 255, 0.2),
        0 5px 0 #8a2020,
        0 10px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.1s;
}

.big-btn:active {
    transform: translateY(4px);
    box-shadow:
        inset -5px -5px 10px rgba(0, 0, 0, 0.2),
        inset 5px 5px 10px rgba(255, 255, 255, 0.2),
        0 1px 0 #8a2020,
        0 2px 5px rgba(0, 0, 0, 0.3);
}

.label {
    margin-top: 10px;
    font-size: 1rem;
    color: #444;
    font-weight: bold;
    opacity: 0.6;
}

/* Disabled Button State */
.big-btn.disabled {
    background: #8a3030;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow:
        inset -5px -5px 10px rgba(0, 0, 0, 0.3),
        inset 5px 5px 10px rgba(255, 255, 255, 0.1),
        0 2px 0 #5a1010,
        0 5px 5px rgba(0, 0, 0, 0.2);
}

.big-btn.disabled:active {
    transform: none;
    box-shadow:
        inset -5px -5px 10px rgba(0, 0, 0, 0.3),
        inset 5px 5px 10px rgba(255, 255, 255, 0.1),
        0 2px 0 #444,
        0 5px 5px rgba(0, 0, 0, 0.2);
}

/* Reset/Start Slots (Bottom) */
.bottom-slots {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.slot-btn {
    width: 60px;
    height: 10px;
    background: #444;
    border-radius: 5px;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
}

.slot-btn:active {
    background: #333;
}