* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif; 
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background-color: #2c3e50; /* Warna dasar jika gambar lambat dimuat */
}

/* =========================================
   CONTAINER GAME (FULL SCREEN)
   ========================================= */
#game-container {
    aspect-ratio: 16 / 9;
    height: 100vh;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
    background-color: transparent; 
}

/* Pengaturan Layar (Screens) Dasar */
.screen {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    display: none; /* Sembunyikan layar secara default */
    
    /* Pengaturan Background Global untuk semua layar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    container-type: inline-size;
}

.screen.active {
    display: block;
}

#sub-main-menu {
    background-image: url('../images/background/background1.webp');
}

#play-menu {
    background-image: url('../images/background/background2.webp'); 
}


#play-menu::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

/* Latar belakang gelap saat modal muncul */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999; /* Memastikan selalu di posisi teratas */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* =========================================
            SETTINGS BROWW!
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);       
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    position: relative; /* Wajib agar posisi tombol X tetap di pojok */
    background: #fffdf5; /* Warna latar kartu (sesuaikan dengan kodemu) */
    border: 4px solid #8B4513; /* Bingkai kayu/cokelat */
    border-radius: 20px;
    padding: 30px 25px 25px 25px;
    
    /* Ukuran responsif: Menggunakan clamp agar proporsional di HP & Laptop */
    width: clamp(280px, 50vw, 550px);      /* Lebar minimal 280px, idealnya 50% layar, maksimal 550px */
    max-height: 80vh;                      /* Batasi tinggi maksimal 80% dari tinggi layar HP */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.modal-title {
    font-size: clamp(18px, 2.2vw, 26px);;
    font-weight: 900;
    color: #8d5128;
    text-shadow: 2px 2px 0px #ffe1a8;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-align: center;
}

.modal-scroll-content {
    max-height: 50vh; /* Area teks bisa digulir jika terlalu panjang */
    overflow-y: auto;
    font-size: clamp(12px, 1.2vw, 16px); /* Ukuran teks mengecil otomatis di layar kecil */
    line-height: 1.4;
    text-align: left;
    padding-right: 10px;
}

@keyframes popIn {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.setting-item label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #5c3a21;
}

.slider-box {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.vol-text {
    font-size: 1rem;
    font-weight: bold;
    color: #8d5128;
    min-width: 45px;
    text-align: right;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    background: #e2c097;
    border-radius: 6px;
    outline: none;
    border: 2px solid #a36b3f;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffb703;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.btn-close-settings {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff8c00; /* Warna latar oranye */
    color: white;        /* Warna huruf X putih */
    border: 3px solid #fff; /* Garis tepi putih agar pop */
    border-radius: 50%;  /* Membuat tombol jadi bulat */
    width: 35px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    z-index: 10;
}

.btn-close-settings:hover {
    transform: scale(1.1);
}

.close-btn-cptp {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff8c00; /* Warna latar oranye */
    color: white;        /* Warna huruf X putih */
    border: 3px solid #fff; /* Garis tepi putih agar pop */
    border-radius: 50%;  /* Membuat tombol jadi bulat */
    width: 35px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    z-index: 10;
}

.close-btn-cptp:hover {
    transform: scale(1.1);
}

/* =========================================
            ANIMASI BROWW!
   ========================================= */
@keyframes burungPutihterbangKeDepan {
    0% { left: -20%; }
    100% { left: 120%; }
}

@keyframes burungPutih2terbangKeDepan {
    0% { left: -15%; }
    100% { left: 125%; }
}

@keyframes burungPutih3terbangKeDepan {
    0% { left: -10%; }
    100% { left: 135%; }
}

@keyframes burungPutihkepaksayap {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes anggukBurungDara {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(0) rotate(24deg); }
    50% { transform: translateX(0) rotate(57deg); }
    75% { transform: translateX(0) rotate(24deg); }
}

@keyframes anggukBurungDaraMirror {
    0%, 100% { transform: scaleX(-1) rotate(0deg); }
    25% { transform: scaleX(-1) rotate(24deg); }
    50% { transform: scaleX(-1) rotate(57deg); }
    75% { transform: scaleX(-1) rotate(24deg); }
}

@keyframes karakterNapas {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-8px) scale(1.01);
    }
}

/* =========================================
   LOADING SCREEN...
   ========================================= */
#screen-loading.loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #7f8c8d !important;
    z-index: 99999 !important;
    
    display: grid !important;
    place-items: center !important; 
    
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#screen-loading.loading-overlay:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.loading-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: #ffffff !important;
    gap: 20px !important;
    width: 100% !important;
}

.loading-title-img {
    width: 30vw;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.4));
    display: block;
    margin: 0 auto;
}

/* Kotak Spinner dan Angka */
.loading-status-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.percent-text {
    font-size: 1.5cqw;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hidden-text {
    display: none !important;
}

.blink-text {
    font-size: 2.5cqw;
    font-weight: bold;
    color: #ffb703;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: blinkAnimation 1.2s infinite ease-in-out;
}

@keyframes blinkAnimation {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.95); }
}

.spinner {
    width: 45px;
    height: 45px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
    LAYAR: MENU UTAMA
   ========================================= */
#screen-main {
    background-image: url('../images/background/background1.webp');
}

.title-img {
    position: absolute; 
    top: 2%; 
    left: 52%;
    transform: translateX(-50%); 
    width: 67%; 
    z-index: 2;
}

.start-button {
    position: absolute; 
    top: 50%; 
    left: 52%;
    transform: translateX(-50%); 
    width: 25%; 
    z-index: 2;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out;
}
.start-button:hover { transform: translateX(-50%) scale(1.05); }
.start-button:active { transform: translateX(-50%) scale(0.95); }

.about-button {
    position: absolute; 
    top: 71%; 
    left: 52%;
    transform: translateX(-50%); 
    width: 25%; 
    z-index: 2;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out;
}
.about-button:hover { transform: translateX(-50%) scale(1.05); }
.about-button:active { transform: translateX(-50%) scale(0.95); }

.settings-button {
    position: absolute; 
    top: 2%; 
    right: -1%;
    transform: translateX(-50%); 
    width: 5%; 
    z-index: 2;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out;
    
    /* Tambahan agar gambar & teks tersusun vertikal di tengah */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.settings-button:hover { transform: translateX(-50%) scale(1.05); }
.settings-button:active { transform: translateX(-50%) scale(0.95); }

.home-button {
    position: absolute; 
    top: 2%; 
    right: 5%; /* Disesuaikan agar berada di sebelah kiri tombol Settings */
    transform: translateX(-50%); 
    width: 5%; 
    z-index: 2;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out;
    
    /* Tambahan agar gambar & teks tersusun vertikal di tengah */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.home-button:hover { transform: translateX(-50%) scale(1.05); }
.home-button:active { transform: translateX(-50%) scale(0.95); }

.reset-data-button {
    position: absolute; 
    top: 2%; 
    right: 11.5%;
    transform: translateX(-50%); 
    width: 5%; 
    z-index: 2;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out;
    
    /* Tambahan agar gambar & teks tersusun vertikal di tengah */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.reset-data-button:hover { transform: translateX(-50%) scale(1.05); }
.reset-data-button:active { transform: translateX(-50%) scale(0.95); }

.settings-button img, .home-button img, .reset-data-button img {
    width: 100%; /* Gambar menyesuaikan 6% lebar kontainer utama */
    height: auto;
    margin-bottom: 1%; /* Jarak relatif antara ikon dan teks */
}

.icon-label {
    font-family: 'BubblyFont', sans-serif;
    font-size: 0.9vw; 
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0.15vw 0.15vw 0 rgba(0, 0, 0, 0.4);
    
    /* Wajib ditambahkan agar 2 baris teks sejajar di tengah */
    text-align: center; 
    line-height: 1.1; /* Mengatur jarak atas-bawah antara 'Menu' dan 'Utama' */
}

.char-img {
    position: absolute; 
    bottom: -40%; 
    right: -7%;
    width: 36%;
    z-index: 3;

    animation: karakterNapas 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.deco-cloud {
    position: absolute; 
    top: -23%; 
    right: -8%;
    width: 37%; 
    z-index: 1; 
    opacity: 0.8;
}

.deco-cloud-2 {
    position: absolute; 
    top: -23%; 
    left: -6%;
    width: 37%; 
    z-index: 1; 
    opacity: 0.8;
    transform: scaleX(-1);
}

.deco-bird-white {
    position: absolute; 
    top: 3%; 
    left: 10%;
    width: 5%; 
    z-index: 1;
    
    animation: burungPutihterbangKeDepan 10s linear infinite, 
               burungPutihkepaksayap 0.6s ease-in-out infinite;

    transform-origin: center center;
}

.deco-bird-white-2 {
    position: absolute; 
    top: -3%; 
    left: 10%;
    width: 5%; 
    z-index: 1;
    
    animation: burungPutih2terbangKeDepan 10s linear infinite, 
               burungPutihkepaksayap 0.6s ease-in-out infinite;

    transform-origin: center center;
}

.deco-bird-white-3 {
    position: absolute; 
    top: 3%; 
    left: 10%;
    width: 5%; 
    z-index: 1;

    animation: burungPutih3terbangKeDepan 10s linear infinite, 
               burungPutihkepaksayap 0.6s ease-in-out infinite;

    transform-origin: center center;
}

.deco-leaf {
    position: absolute; 
    top: 16%; 
    right: -1%;
    width: 10%; 
    z-index: 2;
}

.deco-grass {
    position: absolute; 
    bottom: -21%; 
    left: -8%;
    width: 30%; 
    z-index: 2;
}

.deco-bird-ground {
    position: absolute; 
    bottom: 12%; 
    left: 15%;
    width: 8%; 
    z-index: 2;

    animation: anggukBurungDara 3s ease-in-out infinite;
}

.deco-bird-ground-2 {
    position: absolute; 
    bottom: 7%; 
    left: 28%;
    width: 8%; 
    z-index: 2;
    transform: scaleX(-1);
    animation: anggukBurungDaraMirror 3s ease-in-out infinite;
}

/* =========================================
    LAYAR: MENU SUB-MAIN
   ========================================= */
.title-img-2 {
    position: absolute; 
    top: 0%; 
    left: 52%;
    transform: translateX(-50%); 
    width: 58%; 
    z-index: 2;
}

.private-parts-button {
    position: absolute; 
    top: 45%; 
    left: 26%;
    transform: translateX(-50%); 
    width: 25%; 
    z-index: 2;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out;
}
.private-parts-button:hover { transform: translateX(-50%) scale(1.05); }
.private-parts-button:active { transform: translateX(-50%) scale(0.95); }

.play-button {
    position: absolute; 
    top: 45%; 
    left: 50%;
    transform: translateX(-50%); 
    width: 25%; 
    z-index: 2;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out;
}
.play-button:hover { transform: translateX(-50%) scale(1.05); }
.play-button:active { transform: translateX(-50%) scale(0.95); }

.daily-routine-button {
    position: absolute; 
    top: 45%; 
    left: 74%;
    transform: translateX(-50%); 
    width: 25%; 
    z-index: 2;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out;
}
.daily-routine-button:hover { transform: translateX(-50%) scale(1.05); }
.daily-routine-button:active { transform: translateX(-50%) scale(0.95); }

.education-video-button {
    position: absolute; 
    top: 70%; 
    right: 10%;
    transform: translateX(-50%); 
    width: 25%; 
    z-index: 2;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out;
}
.education-video-button:hover { transform: translateX(-50%) scale(1.05); }
.education-video-button:active { transform: translateX(-50%) scale(0.95); }

.music-nona-button {
    position: absolute; 
    top: 70%; 
    left: 38%;
    transform: translateX(-50%); 
    width: 25%; 
    z-index: 2;
    cursor: pointer; 
    transition: transform 0.2s ease-in-out;
}
.music-nona-button:hover { transform: translateX(-50%) scale(1.05); }
.music-nona-button:active { transform: translateX(-50%) scale(0.95); }

.deco-cloud {
    position: absolute; 
    top: -23%; 
    right: -8%;
    width: 37%; 
    z-index: 1; 
    opacity: 0.8;
}

.deco-cloud-2 {
    position: absolute; 
    top: -23%; 
    left: -6%;
    width: 37%; 
    z-index: 1; 
    opacity: 0.8;
    transform: scaleX(-1);
}

.deco-bird-white {
    position: absolute; 
    top: 3%; 
    left: 10%;
    width: 5%; 
    z-index: 1;
    
    /* 10s untuk terbang, 0.3s untuk mengepak sangat cepat */
    animation: burungPutihterbangKeDepan 10s linear infinite, 
               burungPutihkepaksayap 0.6s ease-in-out infinite;

    transform-origin: center center;
}

.deco-bird-white-2 {
    position: absolute; 
    top: -3%; 
    left: 10%;
    width: 5%; 
    z-index: 1;
    
    animation: burungPutih2terbangKeDepan 10s linear infinite, 
               burungPutihkepaksayap 0.6s ease-in-out infinite;

    transform-origin: center center;
}

.deco-bird-white-3 {
    position: absolute; 
    top: 3%; 
    left: 10%;
    width: 5%; 
    z-index: 1;
    
    animation: burungPutih3terbangKeDepan 10s linear infinite, 
               burungPutihkepaksayap 0.6s ease-in-out infinite;

    transform-origin: center center;
}

.deco-leaf {
    position: absolute; 
    top: 16%; 
    right: -1%;
    width: 10%; 
    z-index: 2;
}

.deco-grass {
    position: absolute; 
    bottom: -21%; 
    left: -8%;
    width: 30%; 
    z-index: 2;
}

.deco-bird-ground {
    position: absolute; 
    bottom: 12%; 
    left: 15%;
    width: 8%; 
    z-index: 2;

    animation: anggukBurungDara 3s ease-in-out infinite;
}

.deco-bird-ground-2 {
    position: absolute; 
    bottom: 7%; 
    left: 28%;
    width: 8%; 
    z-index: 2;
    transform: scaleX(-1);
    animation: anggukBurungDaraMirror 3s ease-in-out infinite;
}

/* =========================================
    LAYAR: MENU PLAY
   ========================================= */
.menu-wrapper {
    position: absolute; 
    top: 45%; 
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex; 
    justify-content: center; 
    gap: 5%;
    width: 70%; 
    z-index: 2;
}

.menu-card {
    background-color: white; 
    border-radius: 20px; 
    width: 45%;
    padding: 8% 2%; 
    text-align: center; 
    position: relative;
    cursor: pointer; 
    box-shadow: 0 10px 0 rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.menu-card:hover { transform: translateY(-10px); }

.menu-card h2 { 
    font-size: 3.4cqw;
    color: #4a2f1d; 
    -webkit-text-stroke: 1.5px #4a2f1d;
}

.menu-card.disabled { 
    background-color: #d3d3d3;
    cursor: not-allowed;
    opacity: 0.9;
    pointer-events: none;
}
.menu-card.disabled h2 { 
    color: #333; 
}

.card-icon {
    position: absolute; 
    top: -34%; 
    left: 50%;
    transform: translateX(-50%); 
    width: 39%;
}

.btn-nav {
    position: absolute; 
    bottom: 5%; 
    width: 22%; 
    z-index: 100;
    cursor: pointer; 
    transition: transform 0.2s;
}
.btn-nav:hover { transform: scale(1.05); }
.btn-nav:active { transform: scale(0.95); }

.btn-back { left: 5%; }
.btn-next { right: 5%; }

/* =========================================
            SCREEN PETUNJUK PERMAINAN
   ========================================= */
#petunjuk-permainan-menu {
    background-image: url('../images/background/background3.webp'); 
}

.char2-img {
    position: absolute; 
    bottom: -74%; 
    right: 5%;
    width: 52%;
    z-index: 3;

    animation: karakterNapas 3s ease-in-out infinite;
    transform-origin: bottom center;
}

/* =========================================
            SCREEN PETUNJUK PERMAINAN-2
   ========================================= */
#petunjuk-permainan-menu-2 {
    background-image: url('../images/background/background4.webp'); 
}

.char3-img {
    position: absolute; 
    bottom: -44%; 
    left: -5%; 
    width: 39%;
    z-index: 3;

    animation: karakterNapas 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.peta-petunjuk {
    position: absolute; 
    top: 2%; 
    right: 6%;
    width: 65%; 
    z-index: 2;
}

.school-icon {
    position: absolute; 
    top: 57%; 
    right: 58%;
    width: 6%; 
    z-index: 3;
}

.nona-mini-map {
    position: absolute; 
    top: 52%; 
    right: 58%;
    width: 6%; 
    z-index: 3;
}

.house-icon {
    position: absolute; 
    top: 16%; 
    right: 15%;
    width: 8%; 
    z-index: 3;
}

.location-icon {
    position: absolute; 
    top: 32%; 
    right: 48%;
    width: 6%; 
    z-index: 3;
}

.location-icon-2 {
    position: absolute; 
    top: 44%; 
    right: 38%;
    width: 6%; 
    z-index: 3;
}

.location-icon-3 {
    position: absolute; 
    top: 32%; 
    right: 32%;
    width: 6%; 
    z-index: 3;
}

.location-icon-4 {
    position: absolute; 
    top: 21%; 
    right: 25%;
    width: 6%; 
    z-index: 3;
}

.peta-petunjuk { z-index: 1 !important; }
.char3-img { z-index: 10 !important; }

#overlay-gelap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
    opacity: 1;
    transition: opacity 0.8s ease;
}
.hidden-overlay {
    opacity: 0 !important;
    pointer-events: none;
}

.pin-lokasi {
    opacity: 1 !important;
    z-index: 5 !important;
    pointer-events: none !important;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.pin-lokasi.muncul {
    z-index: 15 !important;
    pointer-events: auto !important;
    transform: scale(1.25);
    cursor: pointer;
}

.pin-dilewati {
    z-index: 15 !important;
    filter: grayscale(100%) brightness(70%);
    transform: scale(1);
    pointer-events: none !important;
}

/* Karakter Mini Nona */
#mini-nona-petunjuk {
    opacity: 1 !important;
    z-index: 25 !important;
    transition: top 1s linear, right 1s linear;
}

/* =========================================
            SCREEN MENU ABOUT
   ========================================= */
#about-menu {
    background-image: url('../images/background/background6.webp'); 
}

.wood-board {
    position: absolute; 
    top: 15%; 
    right: 17%;
    width: 61%; 
    z-index: 2;
}

.title-img-on-wood-board {
    position: absolute; 
    top: 5%; 
    left: 52%;
    transform: translateX(-50%); 
    width: 32%; 
    z-index: 2;
}

.board-about-text-container {
    position: absolute;
    top: 48%;
    left: 52%;
    transform: translate(-50%, -50%);
    
    width: 46%;
    z-index: 3;
    
    text-align: center;
    color: #ffffff;
    font-size: 1.2cqw;
    font-weight: bold;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

/* =========================================
            SCREEN MENU ABOUT-2
   ========================================= */
#about2-menu {
    background-image: url('../images/background/background6.webp'); 
}

.board-about2 {
    position: absolute; 
    top: 4%; 
    right: 14%;
    width: 70%; 
    z-index: 2;
}

.blackboard-content {
    position: absolute;
    top: 40%;
    left: 51%;
    transform: translate(-50%, -50%);
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.creator-title {
    color: #ffffff;
    font-size: 3.4cqw;
    font-style: bold;
    margin-bottom: 4%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mengatur 4 profil agar sejajar horizontal */
.profiles-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2%;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 23%; 
    cursor: pointer;
    
    border: 2px dashed rgba(255, 255, 255, 0.8); 
    border-radius: 15px;
    padding: 1cqw 0.5cqw;
    background-color: rgba(255, 255, 255, 0.05);
    
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.profile-card:hover {
    transform: scale(1.1) translateY(-5px); 
    background-color: rgba(255, 255, 255, 0.15); 
    border: 2px solid #ffffff; 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.profile-img {
    width: 7cqw;
    height: 7cqw;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
    object-position: center 15%;
    margin-bottom: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Gaya Teks Nama dan NIM */
.profile-name {
    color: #ffffff;
    font-size: 1.2cqw;
    line-height: 1.2;
    margin-bottom: 6px;
}

.profile-univ {
    color: #ffffff;
    font-size: 0.9cqw;
    font-style: bold;
    margin-bottom: 6px;
}

.profile-nim {
    color: #e0e0e0; /* Putih sedikit redup untuk NIM */
    font-size: 0.7cqw;
}

/* =========================================
        PERINGATAN LAYAR POTRET (HP BERDIRI)
   ========================================= */
#portrait-warning {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: #e74c3c; 
    color: white; 
    z-index: 9999;
    display: none; 
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    text-align: center; 
    padding: 20px; 
    font-size: 24px;
}

@media screen and (orientation: portrait) {
    #game-container { display: none; }
    #portrait-warning { display: flex; }
}

/* =========================================
            SCREEN PERMAINAN
   ========================================= */
#gameplay-peta {
    background-image: url('../images/background/background4.webp'); 
}

.char3-img {
    position: absolute; 
    bottom: -44%; 
    left: -5%; 
    width: 39%;
    z-index: 3;

    animation: karakterNapas 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.peta-petunjuk {
    position: absolute; 
    top: 2%; 
    right: 6%;
    width: 65%; 
    z-index: 2;
}

.school-icon {
    position: absolute; 
    top: 57%; 
    right: 58%;
    width: 6%; 
    z-index: 3;
}

.nona-mini-peta {
    position: absolute; 
    width: 7%; 
    z-index: 999;
}

.house-icon {
    position: absolute; 
    top: 16%; 
    right: 15%;
    width: 8%; 
    z-index: 3;
}

.location-icon-gameplay {
    position: absolute; 
    top: 32%; 
    right: 48%;
    width: 6%; 
    z-index: 3;
}

.location-icon-gameplay-2 {
    position: absolute; 
    top: 44%; 
    right: 38%;
    width: 6%; 
    z-index: 3;
}

.location-icon-gameplay-3 {
    position: absolute; 
    top: 32%; 
    right: 32%;
    width: 6%; 
    z-index: 3;
}

.location-icon-gameplay-4 {
    position: absolute; 
    top: 21%; 
    right: 25%;
    width: 6%; 
    z-index: 3;
}

.pin-lokasi-permainan {
    cursor: pointer;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
}

.pin-lokasi-permainan:hover {
    transform: scale(1.1);
}

.pos-abu {
    filter: grayscale(100%) brightness(70%);
    pointer-events: none; /* Tidak bisa diklik lagi */
    transition: filter 0.5s ease;
}

/* =========================================
   EFEK PIN AKTIF / MENONJOL
   ========================================= */
.pin-aktif {
    transform: scale(1.15); 
    filter: drop-shadow(0px 0px 8px rgba(255, 215, 0, 0.8)); 
    animation: denyutPin 1.5s ease-in-out infinite;
}

@keyframes denyutPin {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.25); 
    }
}

/* =========================================
            SCREEN TRY AGAIN
   ========================================= */
#screen-try-again {
    background-image: url('../images/background/background9.webp'); 
}

.konten-tengah-popup {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3cqw;
    width: 100%;
    text-align: center;
}

/* Gaya Gambar Karakter + Animasi Pop-Up */
.character-try-again {
    width: 45cqw; /* Ukuran proporsional di tengah */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.4));
    
    /* Efek Animasi Pop-Up saat muncul */
    animation: popupAnimasi 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupAnimasi {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
            SCREEN AMAZING
   ========================================= */
#screen-amazing {
    background-image: url('../images/background/background9.webp'); 
}

.konten-tengah-popup {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3cqw;
    width: 100%;
    text-align: center;
}

/* Gaya Gambar Karakter + Animasi Pop-Up */
.character-wow {
    width: 45cqw; /* Ukuran proporsional di tengah */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.4));
    
    /* Efek Animasi Pop-Up saat muncul */
    animation: popupAnimasi 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupAnimasi {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
            SCREEN PRIVATE PARTS
   ========================================= */
#private-parts-menu {
    background-image: url('../images/background/background3.webp'); 
}

.karakter-kak-ella {
    position: absolute; 
    bottom: -20%; 
    left: 3%;
    width: 28%;
    z-index: 2;
    transform-origin: bottom center;
}

.karakter-nona-dialog-pp {
    position: absolute; 
    bottom: -44%; 
    right: -7%;
    width: 34%;
    z-index: 2;
    transform-origin: bottom center;
}

.text-box-kak-ella {
    position: absolute; 
    width: 35%;
    z-index: 2;
}

.text-box-kak-ella-ending {
    position: absolute; 
    width: 46%;
    z-index: 2;
    top: 27%;
    left: 32%;
}

.text-box-nona {
    position: absolute; 
    width: 35%;
    z-index: 2;
}

#text-box-kak-ella-awalan, #text-box-kak-ella-2 {
    top: 27%;
    left: 32%;
}

/* =========================================
            SCREEN PERMAINAN LEVEL1
   ========================================= */
#gameplay-level1 {
    background-image: url('../images/background/background8.webp'); 
}

.title-misi {
    position: absolute;
    top: -15%; /* Jarak dari atap layar */
    left: 45%;
    width: 28cqw; 
    transform: translateX(-50%);
    height: auto;
    z-index: 10;
}

/* Gambar Bintang */
.star-misi {
    position: absolute;
    top: 0%; /* Jarak dari atap layar */
    left: 65%;
    width: 10cqw;
    transform: translateX(-50%); 
    height: auto;
    z-index: 10;
}

.teks-pertanyaan {
    position: absolute;
    top: 19%; /* Ubah angka ini untuk menaik-turunkan teks */
    left: 50%;
    transform: translateX(-50%); /* Memastikan teks tepat di tengah horizontal */
    width: 90%;
    text-align: center;
    font-family: 'Comic Sans MS', sans-serif;
    color: #4a2f1d;
    font-size: 3cqw;
    font-weight: bold;
    -webkit-text-stroke: 1.5px #4a2f1d;
    margin: 0;
}

.konten-tengah {
    position: absolute;
    top: 52%;
    left: 49%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 40;
}

/* Kontainer yang menjejerkan 4 kartu ke samping (Flexbox) */
.pilihan-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3cqw;
    width: 90%;
    top: 32%; 
}

/* Desain Kartu Jawaban */
.kartu-pilihan {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 20px 15px;
    width: 20%;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kartu-pilihan:hover, .kartu-pilihan:active {
    transform: scale(1.05) translateY(-5px); /* Kartu sedikit membesar dan naik */
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

.kartu-pilihan img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.kartu-pilihan p {
    font-family: 'Comic Sans MS', sans-serif;
    color: #4a2f1d;
    font-size: 3cqw;
    font-weight: 900;
    margin: 0;
    -webkit-text-stroke: 2px #4a2f1d;
}

.overlay-intro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 50;
}

/* Karakter Intro yang berjalan */
.karakter-animasi {
    position: absolute;
    top: 80%;
    left: -20%; /* Posisi awal: Bersembunyi di luar layar kiri */
    transform: translate(-50%, -50%) scaleX(-1);
    width: 42cqw; 
    z-index: 57;
    transition: left 4s ease-out;
}

.berjalan-ke-tengah {
    left: 30% !important;
}

#btn-next-level1 {
    z-index: 60;
}

/* Gaya kotak tiruan yang melayang di atas overlay */
.kartu-paha-timpa {
    position: absolute;
    top: 52%;
    left: 60%;
    transform: translate(-50%, -50%);
    
    /* Desain visual sama persis dengan kartu pilihan */
    background-color: #ffffff;
    border-radius: 20px;
    padding: 20px 15px;
    width: 19%;
    text-align: center;
    
    z-index: 55; 
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kartu-paha-timpa:hover, .kartu-paha-timpa:active {
    transform: translate(-50%, -50%) scale(1.05) translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

.kartu-paha-timpa img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.kartu-paha-timpa p {
    font-family: 'Comic Sans MS', sans-serif;
    color: #4a2f1d;
    font-size: 3cqw;
    font-weight: 900;
    margin: 0;
    -webkit-text-stroke: 2px #4a2f1d;
}

/* =========================================
            SCREEN PERMAINAN LEVEL1-2
   ========================================= */
#gameplay-level1-2 {
    background-image: url('../images/background/background8.webp'); 
}

/* =========================================
            SCREEN PERMAINAN LEVEL2
   ========================================= */
#gameplay-level2 {
    background-image: url('../images/background/background5.webp'); 
}

.kontrol-arah {
    position: absolute; 
    right: 10%; 
    bottom: 27%; 
    display: grid;
    grid-template-columns: repeat(3, 11vmin);
    grid-template-rows: repeat(3, 11vmin);
    gap: 1.9vmin; 
}

/* Gambar Tombol Panah */
.btn-panah { 
    width: 152%; 
    height: 152%; 
    object-fit: contain; /* KUNCI: Mencegah gambar panah terdistorsi/gepeng */
    cursor: pointer; 
    transition: transform 0.1s; 
}

.btn-panah:active { 
    transform: scale(0.85);
}

.atas  { grid-column: 2; grid-row: 1; }
.kiri  { grid-column: 1; grid-row: 2; }
.kanan { grid-column: 3; grid-row: 2; }
.bawah { grid-column: 2; grid-row: 3; }

.board-misi2 {
    width: 45%; 
    aspect-ratio: 10 / 7; 
    background-image: url('../images/background/board-grid.webp'); 
    background-size: 100% 100%;
    position: absolute;
    top: 55%; 
    left: 40%; 
    transform: translate(-50%, -50%); 
}

#player-nona {
    position: absolute;
    width: 20%;  
    height: 35%; 
    object-fit: contain; 
    transform: scale(0.78); 
    transform-origin: center center; /* Pastikan mengecilnya ke arah tengah kotak */
    transition: top 0.25s ease-in-out, left 0.25s ease-in-out; 
    z-index: 10; 
}

.z-top {
    z-index: 55 !important; 
}

/* =========================================
   ANIMASI INTRO LEVEL 2
   ========================================= */
.karakter-misi2-animasi {
    position: absolute;
    bottom: -58%;
    right: -40%; /* Mulai dari luar layar */
    width: 42%; 
    z-index: 57;
}

/* Animasi 1: Meluncur ke pojok kanan (dekat tombol NEXT) */
.animasi-1 {
    animation: masukKeKanan 1.5s ease-out forwards;
}

/* Animasi 2: Maju ke tengah layar */
.animasi-2 {
    animation: majuKeTengah 2.5s ease-in-out forwards;
}

@keyframes masukKeKanan {
    0% { right: -40%; transform: scaleX(1); }
    100% { right: -2%; transform: scaleX(1); }
}

@keyframes majuKeTengah {
    0% { right: -2%; transform: scaleX(1); }
    98% { right: 40%; transform: scaleX(1); }
    100% { right: 40%; transform: scaleX(-1); }
}

#btn-next-level2 {
    z-index: 60;
}

/* =========================================
            SCREEN PERMAINAN LEVEL3
   ========================================= */
#gameplay-level3 {
    background-image: url('../images/background/background6.webp'); 
}

.karakter-misi3-animasi {
    position: absolute;
    bottom: 7%;
    left: -30%; /* Posisi awal di luar layar sebelah kiri */
    width: 14%; 
    z-index: 57;
    transition: left 1.2s ease-out; /* Transisi mulus berbasis inline style */
}

#btn-next-level3 {
    z-index: 60;
}

.teks-pertanyaan-lv3 {
    position: absolute;
    top: 22%; /* Ubah angka ini untuk menaik-turunkan teks */
    left: 50%;
    transform: translateX(-50%); /* Memastikan teks tepat di tengah horizontal */
    width: 90%;
    text-align: center;
    font-family: 'Comic Sans MS', sans-serif;
    color: #934917;
    font-size: 2.5cqw;
    font-weight: bold;
    -webkit-text-stroke: 1.5px #934917;
    margin: 0;
}

.teks-pertanyaan-animasi2 {
    position: absolute;
    top: 19%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    font-family: 'Comic Sans MS', sans-serif;
    color: #ffffff !important; /* Putih penuh khusus animasi 2 */
    font-size: 4cqw;
    font-weight: bold;
    -webkit-text-stroke: 2px #ffffff;
    margin: 0;
    z-index: 60 !important;
    filter: drop-shadow(2px 2px 4px rgba(234, 233, 233, 0.6));
    display: none; /* Sembunyikan default, muncul pas animasi 2 */
}

.pilihan-container-l3 {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    gap: 4cqw; /* Jarak antar kotak persegi panjang */
    width: 80%;
    z-index: 55;
}

.kartu-pilihan-l3 {
    background-color: #ffffff;
    border-radius: 15px;
    width: 28cqw; /* Membuat bentuknya menjadi persegi panjang yang lebar */
    height: 12cqw; /* Tinggi kotak proporsional */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.kartu-pilihan-l3:hover {
    transform: scale(1.03);
}

.kartu-pilihan-l3.abu {
    background-color: #8c8c8c; /* Warna abu-abu yang pas untuk 'tidak boleh' */
}

.kartu-pilihan-l3 p {
    font-family: 'Comic Sans MS', sans-serif;
    color: #985d36;
    font-size: 3.5cqw;
    font-weight: 900;
    margin: 0;
}

.nona-dialog-img {
    position: absolute;
    bottom: -57%;
    left: -30%;
    width: 38%;
    z-index: 56;
}

.rena-dialog-img {
    position: absolute;
    bottom: -30%;
    right: -30%;
    width: 30%;
    z-index: 56;
}

.kontainer-pilihan-posisi-baru {
    position: absolute !important;
    left: 55% !important;
    top: 40% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    z-index: 20 !important;
}

@keyframes lompatGembira {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-40px) scale(1.05); } /* Lompat ke atas */
    50% { transform: translateY(0) scale(1); }       /* Mendarat */
    70% { transform: translateY(-20px) scale(1.02); } /* Lompat kecil kedua */
    100% { transform: translateY(0) scale(1); }      /* Kembali normal */
}

.karakter-lompat {
    animation: lompatGembira 1.1s ease infinite; /* Berulang atau jalankan sekali */
}

@keyframes karakternonaMarah {
    0% { transform: translateY(0) scale(1); }
    25% { transform: translateY(0) scale(1.05); } /* Lompat ke atas */
    50% { transform: translateY(0) scale(1.15); }       /* Mendarat */
    75% { transform: translateY(0) scale(1.05); } /* Lompat kecil kedua */
    100% { transform: translateY(0) scale(1); }      /* Kembali normal */
}

.karakter-marah {
    animation: karakternonaMarah 1.6s ease infinite; /* Berulang atau jalankan sekali */
}

/* =========================================
           SCREEN PERMAINAN LEVEL 4 (RESPONSIF PERSENTASE & RASIO)
   ========================================= */
#gameplay-level4 {
    background-image: url('../images/background/background7.webp'); 
    position: relative;
    width: 100%;
    height: 100%;
}

/* Kontainer utama menggunakan flex column agar papan & D-Pad teratur ke bawah secara rapi */
.kontainer-level4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh; /* Jarak responsif berdasarkan tinggi layar */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.area-papan-l4 {
    position: absolute; 
    top: 53%; 
    left: 38%; 
    transform: translate(-50%, -50%); 
    width: 42%; /* Mengikuti persentase kontainer utama seperti Level 2 */
    aspect-ratio: 10 / 7; 
    z-index: 2;
}

/* Papan Peta Grid 5 Kolom x 4 Baris berbasis Persentase */
#papan-petak {
    width: 100%;
    height: 100%;
    position: relative;
    background-image: url('../images/background/board-grid-lv4.png'); 
    background-size: 100% 100%; /* Memastikan background gambar pas menutupi grid */
    background-position: center;
    
    /* Mengaktifkan sistem CSS Grid dengan fraksi (fr) */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

/* Pengaturan umum untuk setiap ikon di dalam petak */
.item-grid {
    width: 87%;
    height: 87%;
    place-self: center; 
    object-fit: contain;
    z-index: 2;
}

/* Karakter Nona di atas Grid menggunakan PERSENTASE (%) */
#karakter-nona-grid {
    position: absolute; 
    left: 0%;       /* Kolom ke-0 (paling kiri) */
    top: 75%;       /* Baris ke-3 (paling bawah: 3 * 25% = 75%) */
    width: 20%;     /* 100% dibagi 5 kolom = 20% */
    height: 25%;    /* 100% dibagi 4 baris = 25% */
    
    object-fit: contain;
    object-position: center;
    
    /* Skala visual agar pas di dalam kotak tanpa menabrak garis */
    transform: scale(0.78); 
    transform-origin: center center;
    
    z-index: 10; 
    transition: top 0.25s ease-in-out, left 0.25s ease-in-out;
    pointer-events: none;
}

.area-kontrol-l4 {
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay-intro-level4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 15;
    display: none; /* Sembunyikan secara default */
}

/* Karakter Nona Besar saat Intro Level 4 */
.karakter-misi4-animasi {
    position: absolute;
    bottom: -58%;
    right: -40%; 
    width: 42%; 
    z-index: 57;
}

/* Animasi meluncur masuk ke kanan layar (meniru Level 2) */
.animasi-masuk-l4 {
    animation: masukKeKananL4 1.5s ease-out forwards;
}

@keyframes masukKeKananL4 {
    0% { right: -40%; transform: scaleX(1); }
    100% { right: 3%; transform: scaleX(1); }
}

#btn-next-level4 {
    z-index: 60;
    display: none;
}

/* KUNCI: Membuat Papan Grid & Kontrol D-Pad "Timbul" di atas Overlay Gelap */
.z-top-l4 {
    z-index: 55 !important;
}

/* =========================================
           GAMEPLAY PETUALANGAN AKHIR
   ========================================= */
#gameplay-akhir {
    background-image: url('../images/background/background10.webp'); 
}

/* =========================================
   GAYA UMUM MENU PAPAN (EDUCATION & MUSIC)
   ========================================= */
#education-video-menu {
    background-image: url('../images/background/background5.webp');
}

#music-nona-menu {
    background-image: url('../images/background/background5.webp');
}

/* =========================================
   GAYA KOTAK/PAPAN STANDAR UNTUK SEMUA MENU
   (Video Edukasi, Lagu Nona, Rutinitas Harian)
   ========================================= */

.papan-container,
.kotak-kuis-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Gunakan Persentase agar responsif di mode Window/Fullscreen */
    width: 65%; 
    height: 75%; 
    
    background-color: #fffef9;
    border: 0.5cqw solid #debd75; /* Ketebalan garis responsif */
    border-radius: 2cqw;
    padding: 2.5cqw;
    box-shadow: 0 1cqw 2.5cqw rgba(0,0,0,0.2);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Khusus kuis: tinggi menyesuaikan isi teks soal */
.kotak-kuis-card {
    height: auto;
    min-height: 60%;
}

/* Banner Judul Papan */
.papan-banner {
    background-color: #588c43;
    color: white;
    text-align: center;
    padding: 1cqw 3cqw;      /* Padding responsif */
    font-size: 2cqw;         /* Ukuran font responsif */
    font-weight: bold;
    border-radius: 2cqw;
    width: fit-content;
    margin: 0 auto 2cqw auto;
    box-shadow: 0 0.4cqw 0.6cqw rgba(0,0,0,0.1);
}

/* =========================================
   GAYA KONTEN: EDUCATION VIDEO (YOUTUBE EMBED)
   ========================================= */
/* Container khusus video agar muat bersama list tombolnya */
.papan-konten-video-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.papan-konten-video {
    flex: 1;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 240px; /* Batasi tinggi minimal pemutar video */
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tombol pilihan video */
.list-video-pilihan {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-pilih-video {
    flex: 1;
    background-color: #fce8b2;
    border: 2px solid #b8860b;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #5a4a32;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pilih-video:hover, 
.btn-pilih-video.aktif {
    background-color: #588c43;
    color: white;
    border-color: #3e6330;
}

.card-link-video:hover {
    background-color: #fce8b2 !important;
    transform: scale(1.01);
}

/* =========================================
   GAYA KONTEN: MUSIC NONA (LOCAL AUDIO LIST)
   ========================================= */
.papan-konten-list {
    flex: 1;
    width: 100%;
    background: #fdfaf6;
    border: 2px dashed #e0d0b0;
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto; /* Bisa di-scroll jika daftarnya panjang */
    box-sizing: border-box;
}

.list-musik-lokal {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-musik-lokal li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px 20px;
    margin-bottom: 12px;
    border: 1px solid #e8dec9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.list-musik-lokal span {
    font-size: 16px;
    font-weight: bold;
    color: #4a3b2c;
}

.list-musik-lokal audio {
    height: 35px;
    outline: none;
}

/* Posisi Tombol Kembali di Pojok Bawah */
#education-video-menu .btn-back,
#music-nona-menu .btn-back {
    position: absolute;
    left: 80px;
    bottom: 50px;
    cursor: pointer;
}

/* =========================================
   GAYA KUIS / CHECKLIST HARIAN
   ========================================= */
#daily-routine-menu {
    background-image: url('../images/background/background2.webp'); /* Sesuaikan background-mu */
}

/* Header Banner Hari */
.banner-hari {
    background-color: #588c43;
    color: white;
    text-align: center;
    padding: 8px 30px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Tabel Pertanyaan (Kunci Lebar Total & Pastikan Tetap Stabil) */
.tabel-kuis {
    width: 100%;
    table-layout: fixed; /* KUNCI UTAMA: Mencegah tabel melar atau berubah ukuran otomatis */
    border-collapse: collapse;
    text-align: left;
}

.tabel-kuis th {
    background-color: #fce8b2;
    padding: 12px;
    font-size: 18px;
    color: #5a4a32;
    border-bottom: 2px solid #e0d0b0;
}

/* Kunci lebar kolom "Iya" dan "Tidak" dengan ukuran pasti */
.tabel-kuis th:nth-child(2), 
.tabel-kuis th:nth-child(3),
.tabel-kuis td:nth-child(2), 
.tabel-kuis td:nth-child(3) {
    text-align: center;
    width: 90px; /* Lebar kolom tombol pilihan dikunci persis 90px */
}

/* Kolom pertama (Pertanyaan) akan otomatis mengisi sisa ruang yang ada secara konsisten */
.tabel-kuis th:nth-child(1),
.tabel-kuis td:nth-child(1) {
    width: auto; 
}

.tabel-kuis td {
    padding: 15px 10px;
    border-bottom: 1px dashed #e0d0b0;
    font-size: 16px;
    color: #333;
    word-wrap: break-word; /* Mencegah teks panjang merusak layout */
}

/* Badge Nomor Lingkaran Hijau */
.badge-nomor {
    display: inline-block;
    width: 28px;
    height: 28px;
    background-color: #588c43;
    color: white;
    text-align: center;
    line-height: 28px;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
}

/* Radio Button Kustom biar Cantik */
.tabel-kuis input[type="radio"] {
    width: 24px;
    height: 24px;
    accent-color: #588c43; /* Memberi warna hijau otomatis pada centang */
    cursor: pointer;
}