#game-screen {
    display: grid;
    /* Kolom soal lebih besar (1.5), kolom visual (1.0) */
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr; 
    width: 100vw;
    height: 100vh;
    background: linear-gradient(#87CEEB, #E0F7FA); /* Langit cerah */
    overflow: hidden;
}

/* Background Menu Utama */
.panjat-pinang-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/bg-menu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #87CEEB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
}

.game-title {
    font-size: 2.8rem; 
    color: #f1c40f;
    text-shadow: 4px 4px 0px #c0392b;
    margin-bottom: 25px;
    text-align: center;
}

/* Container Utama Setup */
.main-setup-container {
    display: flex; 
    gap: 30px; 
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
}

/* Box Player */
.player-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px; 
    border-radius: 20px;
    width: 260px; 
    color: #333;
    box-shadow: 0 10px 0px rgba(0,0,0,0.2);
    text-align: center;
    box-sizing: border-box;
}

.badge-p1 { color: #e74c3c; margin-bottom: 5px; font-size: 1.2rem; }
.badge-p2 { color: #3498db; margin-bottom: 5px; font-size: 1.2rem; }

/* Grid Karakter */
.char-selection-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; 
    margin-top: 12px;
}

.char-item {
    cursor: pointer; 
    border: 3px solid transparent;
    padding: 5px; 
    border-radius: 10px; 
    transition: all 0.2s ease;
    background: #fff;
}

.char-item img { width: 100%; height: auto; display: block; }
.char-item span { font-size: 11px; display: block; margin-top: 4px; font-weight: bold; }

/* Status Terpilih */
.p1-box .char-item.active { border-color: #e74c3c; background: #ffedeb; transform: scale(1.05); }
.p2-box .char-item.active { border-color: #3498db; background: #ebf5ff; transform: scale(1.05); }

/* Area Tengah (Class Picker & Tombol-tombol Navigasi) */
.center-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 200px;
}

.class-picker {
    width: 100%;
    text-align: center;
}

.class-picker label {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.styled-select {
    padding: 10px 15px; 
    width: 100%; 
    border-radius: 10px;
    font-size: 1rem; 
    font-weight: bold; 
    border: none;
    outline: none;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.input-name {
    width: 100%; 
    padding: 8px 12px; 
    border-radius: 10px;
    border: 2px solid #ddd; 
    margin-top: 5px;
    box-sizing: border-box;
    font-size: 0.9rem;
}

/* Tombol Mulai Game */
.btn-start {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.2rem; 
    font-weight: bold;
    background: #2ecc71;
    color: white; 
    border: none; 
    border-radius: 50px;
    cursor: pointer; 
    box-shadow: 0 5px 0 #27ae60;
    transition: 0.2s;
    text-align: center;
}

.btn-start:hover { background: #27ae60; }
.btn-start:active { transform: translateY(3px); box-shadow: 0 2px 0 #27ae60; }

/* Tombol Menu Utama / Kembali (Respon untuk penambahan elemen a.btn-secondary) */
.btn-secondary {
    display: block;
    width: 100%;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    background: #e67e22;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 5px 0 #d35400;
    transition: 0.2s;
    box-sizing: border-box;
}

.btn-secondary:hover { background: #d35400; }
.btn-secondary:active { transform: translateY(3px); box-shadow: 0 2px 0 #d35400; }

/* Area Permainan (Game Screen) */
.column-soal {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.column-visual {
    background: #87CEEB;
    position: relative;
    border: none;
}

.column-visual::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: #228B22;
    z-index: 1;
}

.step-counter {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: inline-block;
    padding: 2px 8px;
}

.tiang-p1, .tiang-p2 {
    position: absolute;
    bottom: 50px;
    width: 160px; 
    height: 80vh;
    background-image: url('assets/tiang.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    z-index: 2;
}

.tiang-p1 { right: 0; }
.tiang-p2 { left: 0; }

.char-sprite {
    position: absolute;
    width: 105px;
    z-index: 3;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.char-p1 { right: 55px; bottom: 50px; } 
.char-p2 { left: 0; bottom: 50px; }

.player-info {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}
.p1-color { background: #e74c3c; color: white; }
.p2-color { background: #3498db; color: white; }

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    margin-top: 5px;
}
.progress-bar div {
    height: 100%;
    background: #f1c40f;
    transition: width 0.3s;
}

.question-container {
    background: white;
    color: #333;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-height: 80vh;
    overflow-y: auto;
}

#q1-text, #q2-text {
    font-size: 1.0rem;
    font-weight: bold;
    margin-bottom: 7px;
    line-height: 1.2;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 10px;
}

.btn-option {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.btn-option:hover { background: #eee; }

/* Media Query untuk Landscape Mobile / Layar Pendek */
@media screen and (max-height: 600px) {
    .game-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .main-setup-container {
        gap: 15px;
        transform: scale(0.9);
    }

    .player-box {
        width: 210px;
        padding: 10px;
    }

    .player-box h2 {
        font-size: 0.95rem;
    }

    .char-selection-grid {
        gap: 4px;
    }

    .char-item span {
        display: none; /* Sembunyikan nama agar muat */
    }

    .center-settings {
        min-width: 140px;
        gap: 8px;
    }

    .btn-start, .btn-secondary {
        padding: 8px 15px;
        font-size: 0.95rem;
    }

    .tiang-p1, .tiang-p2 {
        height: 70vh;
    }
}