#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: auto 100%;
	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;
}

.game-title {
    font-size: 3rem; color: #f1c40f;
    text-shadow: 4px 4px 0px #c0392b;
    margin-bottom: 30px;
}

/* Container Utama */
.main-setup-container {
    display: flex; gap: 40px; align-items: center;
}

/* Box Player */
.player-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px; border-radius: 20px;
    width: 280px; color: #333;
    box-shadow: 0 10px 0px rgba(0,0,0,0.2);
    text-align: center;
}

.badge-p1 { color: #e74c3c; }
.badge-p2 { color: #3498db; }

/* Grid Karakter */
.char-selection-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-top: 15px;
}

.char-item {
    cursor: pointer; border: 3px solid transparent;
    padding: 5px; border-radius: 10px; transition: 0.3s;
}

.char-item img { width: 100%; height: auto; }
.char-item span { font-size: 10px; display: block; margin-top: 5px; }

/* 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); }

/* Input & Tombol */
.input-name {
    width: 90%; padding: 10px; border-radius: 10px;
    border: 2px solid #ddd; margin-top: 10px;
}

.styled-select {
    padding: 15px; width: 100%; border-radius: 10px;
    font-size: 1.1rem; font-weight: bold; border: none;
}

.btn-start {
    margin-top: 20px; padding: 15px 40px;
    font-size: 1.5rem; background: #2ecc71;
    color: white; border: none; border-radius: 50px;
    cursor: pointer; box-shadow: 0 6px 0 #27ae60;
    transition: 0.2s;
}

.btn-start:active { transform: translateY(4px); box-shadow: 0 2px 0 #27ae60; }

.column-soal {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.column-visual {
    /* Hapus background individual agar tidak pecah antar kolom */
    background: #87CEEB; /* Langit menyatu */
    position: relative;
    /* Hilangkan border-left dashed agar tiang terlihat menyatu di tengah */
    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; /* Menempel di atas tanah rumput */
    width: 160px;  /* Sesuaikan lebar tiang agar tidak terlalu gemuk/kurus */
    height: 80vh; /* Menggunakan 75% dari tinggi layar agar tidak mentok ke atas */
    background-image: url('assets/tiang.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%; /* Memaksa gambar fit ke dalam kotak height 75vh */
    z-index: 2;
}

.tiang-p1 {
    right: 0;
}

.tiang-p2 {
    left: 0;
}

/* Karakter Sprite */
.char-sprite {
    position: absolute;
    width: 105px; /* Ukuran disesuaikan */
    z-index: 3; /* Di depan tiang */
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* P1 Memeluk Tiang dari Kiri */
.char-p1 { 
    right: 55px; /* Sedikit overlap dengan tiang */
    bottom: 50px;
} 

/* P2 Memeluk Tiang dari Kanan */
.char-p2 { 
    left: 0; /* Sedikit overlap dengan tiang */
    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;
}

/* --- Perbaikan Container Soal agar tidak meluap --- */
.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; /* Jika soal sangat panjang */
}

#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 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    
    .game-title {
        font-size: 1.8rem; /* Mengecilkan judul */
        margin-bottom: 10px;
        margin-top: 5px;
    }

    .main-setup-container {
        gap: 15px; /* Mempersempit jarak antar komponen */
        transform: scale(0.9); /* Sedikit mengecilkan seluruh konten agar pas */
    }

    /* Membuat Box Player lebih ramping */
    .player-box {
        width: 220px;
        padding: 10px;
        border-radius: 15px;
    }

    .player-box h2 {
        font-size: 1rem;
        margin: 5px 0;
    }

    /* Mengatur grid karakter agar lebih kecil */
    .char-selection-grid {
        gap: 5px;
        margin-top: 5px;
    }

    .char-item {
        padding: 2px;
    }

    .char-item span {
        display: none; /* Sembunyikan nama karakter (Simba, dkk) untuk hemat ruang */
    }

    /* Input nama dibuat lebih pendek */
    .input-name {
        padding: 6px;
        font-size: 0.8rem;
    }

    /* Area Tengah */
    .center-settings {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 150px;
    }

    .class-picker label {
        font-size: 0.8rem;
    }

    .styled-select {
        padding: 8px;
        font-size: 0.9rem;
    }

    .btn-start {
        margin-top: 10px;
        padding: 10px 20px;
        font-size: 1.1rem;
    }
	
	.tiang-p1, .tiang-p2 {
        height: 70vh; /* Sedikit lebih pendek di mobile landscape */
    }
}