.hyperspace-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background-color: #000;
    image-rendering: pixelated;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2vh;
    box-sizing: border-box;
}

.modal-content {
    background: #222;
    border: 4px solid #fff;
    padding: clamp(15px, 3vh, 30px);
    text-align: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 4px 4px 0px #555;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.modal-content h2 {
    font-size: clamp(14px, 4vw, 22px);
    margin: 0;
    line-height: 1.4;
}

.modal-content h3 {
    font-size: clamp(12px, 3.5vw, 18px);
    margin: 0;
}

.modal-content p {
    font-size: clamp(10px, 2.5vw, 14px);
    margin: 0;
    line-height: 1.6;
}

.text-small {
    font-size: clamp(8px, 2vw, 11px) !important;
    color: #aaa;
}

.text-success { color: #4CAF50; }
.text-danger { color: #f44336; }
.text-warning { color: #FFEB3B; }

.bg-success { background-color: #4CAF50 !important; }
.bg-danger { background-color: #f44336 !important; }
.bg-warning { background-color: #FF9800 !important; }
.bg-dark { background-color: #333 !important; }

.btn-group-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.btn-group-row .btn-option {
    flex: 1 1 auto;
    white-space: nowrap;
    padding: 15px 10px;
    font-size: clamp(10px, 2.5vw, 14px);
}

.btn-option.selected {
    background-color: #4CAF50 !important;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}
