* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100vw;
    width: 100dvw;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: sans-serif;
}

/* Container utama - pakai contain agar gambar tidak kepotong */
.game-container {
    position: relative;
    width: 100vw;
    width: 100dvw;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 1528px;
    max-height: 1068px;
    
    background-image: url('../images/tampilan-awal.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0d0a07;
    
    transition: all 0.3s ease;
}

/* On mobile, allow container to grow & remove max-height so nothing gets cut off */
@media (max-width: 768px) {
    .game-container {
        max-height: none;
        height: auto;
        min-height: 100dvh;
    }
}

#menu-canvas-container {
    width: 100%;
    height: 100%;
    max-width: 1528px;
    max-height: 1068px;
    margin: 0 auto;
    overflow: hidden;
}

.game-screen {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.game-screen.active {
    display: block;
}

#screen-login.active,
#screen-register.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay blur - aktif dari awal sampai login sukses */
.blur-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.blur-overlay.active {
    opacity: 1;
}

.hitbox {
    position: absolute;
    cursor: pointer;
    border: none;
    outline: none;
    background-color: transparent;
    
    transition: background-color 0.2s ease;
}

.hitbox:hover {
    background-color: rgba(255, 255, 255, 0.2); 
}

#btn-start {
    bottom: 6.9%;
    left: 22.1%;
    width: 18%;
    height: 9%;
    border-radius: 5px;
}

#btn-howtoplay {
    bottom: 6.9%;
    right: 22%;
    width: 19.5%;
    height: 9%;
    border-radius: 5px;
}
#screen-login,
#screen-register {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Background saat gameplay - dengan gambar dadu */
.gameplay-bg {
    background-image: url('../images/tampilan-permainan.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #0d0a07 !important;
}

/* Background saat dadu dikocok - tanpa gambar dadu */
.gameplay-bg-no-dice {
    background-image: url('../images/tampilan-permainan-tanpa-dadu.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #0d0a07 !important;
}

/* Top bar gameplay */
.gameplay-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.gameplay-user {
    color: #d4af37;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.btn-back-to-menu {
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid #d4af37;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-back-to-menu:hover {
    background: rgba(212, 175, 55, 0.3);
}

/* Hitbox lempar dadu - pakai teknik yang sama seperti tombol START/HOW TO PLAY */
#hitbox-roll-dice {
    bottom: 30%;
    right: 20.5%;
    width: 5%;
    height: 9%;
    z-index: 50;
    /* background-color: red; */
}

/* Kotak Form Login */
.login-box {
    background: rgba(253, 251, 247, 0.9); /* Krem gading transparan */
    border: 2px solid #d4af37; /* Garis emas */
    width: 100%;
    max-width: 360px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.login-box h2 {
    color: #4a3b2c;
    font-size: 26px;
    letter-spacing: 2px;
    font-weight: 800;
}

.login-box .subtitle {
    color: #8c765c;
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: bold;
    border-bottom: 1px solid #e2d7c5;
    padding-bottom: 10px;
}

.input-group {
    text-align: left;
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 11px;
    color: #5c4a37;
    font-weight: 600;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
    margin-bottom: 22px;
}

.forgot-link {
    color: #8c765c;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #d4af37;
}

/* Tombol Submit Login Gradasi Emas */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa7c11 100%);
    border: none;
    border-radius: 6px;
    color: #3a2e1e;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(170, 124, 17, 0.3);
    transition: transform 0.1s, filter 0.2s;
    display: block;
    margin-bottom: 12px;
}

.btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Modal How to Play & Credit */
.modal-info-overlay,
.modal-credit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-info-overlay {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-credit-overlay {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
}

.modal-info-overlay.active,
.modal-credit-overlay.active {
    display: flex;
}

.modal-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Tombol Link (Register / Login) */
.btn-link {
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    border-radius: 6px;
    color: #8c765c;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.btn-link:hover {
    color: #d4af37;
    text-decoration: underline;
}
/* Wadah Dadu Utama (Awalnya tersembunyi mengecil di pojok kanan bawah) */
#dice-container {
    position: absolute;
    bottom: 35%;
    right: 16%;
    transform: translate(0, 0) scale(0);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 99;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Tampilan Dadu Fisik Bergaya Gading Mewah */
.dice-face {
    width: 80px;
    height: 80px;
    background: #fdfbf7; /* Krem gading bersih */
    border: 3px solid #d4af37; /* Border emas mewah */
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    position: relative;
    padding: 8px;
}

/* Gaya titik dadu (Dots) warna cokelat tua seirama gambar asli */
.dice-face::before, .dice-face::after {
    content: '';
    position: absolute;
    background: #4a3b2c; /* Warna cokelat kayu pekat */
    border-radius: 50%;
    width: 14px;
    height: 14px;
}

/* MATRIKS TITIK DADU MODERN BERDASARKAN ANGKA YANG AKTIF */
.face-1::before { top: 33px; left: 33px; }
.face-1::after { display: none; }
.face-2::before { top: 12px; left: 12px; }
.face-2::after { bottom: 12px; right: 12px; }
.face-3::before { top: 12px; left: 12px; box-shadow: 21px 21px 0 #4a3b2c; }
.face-3::after { bottom: 12px; right: 12px; }
.face-4::before { top: 12px; left: 12px; box-shadow: 42px 0 0 #4a3b2c; }
.face-4::after { bottom: 12px; left: 12px; box-shadow: 42px 0 0 #4a3b2c; }
.face-5::before { top: 12px; left: 12px; box-shadow: 42px 0 0 #4a3b2c, 21px 21px 0 #4a3b2c; }
.face-5::after { bottom: 12px; left: 12px; box-shadow: 42px 0 0 #4a3b2c; }
.face-6::before { top: 12px; left: 12px; box-shadow: 42px 0 0 #4a3b2c, 0 21px 0 #4a3b2c, 42px 21px 0 #4a3b2c; }
.face-6::after { bottom: 12px; left: 12px; box-shadow: 42px 0 0 #4a3b2c; }

/* Teks Keterangan Langkah di bawah dadu melayang */
#dice-result-text {
    margin-top: 15px;
    background: rgba(74, 59, 44, 0.95);
    color: #fdfbf7;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #d4af37;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* KELAS: Dadu mendarat di tengah setelah selesai berputar */
#dice-container.landed {
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%) scale(1.2);
    opacity: 1;
}

/* KELAS ANIMASI: Dadu maju melayang ke tengah layar & berputar kencang */
#dice-container.rolling-animation {
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%) scale(1.6); /* Melayang ke tengah dan membesar 1.6x lipat */
    opacity: 1;
    animation: spinDice 0.6s infinite linear;
}

/* Keyframes Rotasi Dadu bergoyang ekstrim */
@keyframes spinDice {
    0% { transform: translate(50%, 50%) scale(1.6) rotate(0deg) translateY(0px); }
    25% { transform: translate(50%, 50%) scale(1.6) rotate(90deg) translateY(-10px); }
    50% { transform: translate(50%, 50%) scale(1.6) rotate(180deg) translateY(0px); }
    75% { transform: translate(50%, 50%) scale(1.6) rotate(270deg) translateY(-10px); }
    100% { transform: translate(50%, 50%) scale(1.6) rotate(360deg) translateY(0px); }
}

/* ========== TOMBOL KREDIT ========== */
#btn-kredit {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 60;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.5);
    color: #fdfbf7;
    border: 1px solid #d4af37;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#btn-kredit:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #ffd700;
}

/* ======================================================= */
/* CONFIGURASI POSISI TOMBOL GAIB KREDIT UTK GAMBAR ANDA   */
/* ======================================================= */
#btn-credit {
    position: absolute;
    /* 📐 Memosisikan tombol pas di pojok kanan atas gambar */
    top: 2.5%;
    right: 2.2%;
    
    /* 📐 Ukuran disesuaikan dengan kotak hitam kecil tulisan KREDIT */
    width: 5.5%;
    height: 4%;
    
    cursor: pointer;
    border: none;
    outline: none;
    background-color: transparent; /* Buat transparan total agar gambar aslinya kelihatan */
    transition: background-color 0.2s ease;
    z-index: 10;
    border-radius: 4px;
}

/* Efek visual tipis saat kursor menyorot tulisan KREDIT */
#btn-credit:hover {
    background-color: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* ========== MODAL KREDIT (TETAP SINKRON) ========== */
.credit-box {
    background: rgba(253, 251, 247, 0.97);
    border: 2px solid #d4af37;
    border-radius: 14px;
    padding: 30px 35px;
    width: 600px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.credit-box h2 {
    color: #4a3b2c;
    font-size: 28px;
    margin: 0 0 8px;
    letter-spacing: 4px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 12px;
}

.credit-content {
    text-align: left;
    margin: 20px 0;
}

.credit-section {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.credit-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.credit-section h3 {
    color: #4a3b2c;
    font-size: 15px;
    margin: 0 0 6px;
    letter-spacing: 1px;
}

.credit-section p {
    color: #555;
    font-size: 13px;
    margin: 3px 0;
    line-height: 1.5;
}

.credit-section a {
    color: #d4af37;
    text-decoration: none;
}

.credit-section a:hover {
    text-decoration: underline;
}

.credit-desc {
    font-style: italic;
    color: #777 !important;
    font-size: 12px !important;
}

.btn-credit-tutup {
    padding: 10px 36px;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-credit-tutup:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ========== PAPAN PERMAINAN: TILES & PION ========== */
#board-tiles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}

.tile-hitbox {
    position: absolute;
    /* 📈 NAIKKAN ANGKA PERSEN DI BAWAH INI UNTUK MEMPERBESAR UKURANNYA */
    width: 5%;   /* Sebelumnya 6.2%, dinaikkan agar lebih lebar ke samping */
    height: 7%;  /* Sebelumnya 4.8%, dinaikkan agar lebih panjang ke bawah */
    
    /* Tetap kunci efek kemiringan jajaran genjangnya */
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-45deg) skewX(-10deg);
    
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 21;
}

.tile-hitbox:hover {
    background: transparent;
    border-color: transparent;
    
    /* 📐 Memperbesar ubin (scale) tanpa merusak kemiringan jajaran genjang asli */
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-45deg) skewX(-10deg) scale(1.1);
}

/* Efek saat ubin aktif atau sedang diinjak oleh pion karakter */
.tile-hitbox.tile-active {
    background: transparent;
    border-color: transparent;
    box-shadow: transparent;
    
    /* 📐 Memperbesar ubin aktif tanpa merusak kemiringan jajaran genjang asli */
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-45deg) skewX(-10deg) scale(1.15);
}

#player-pion {
    position: absolute;
    width: 60px;
    height: 90px;

    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;

    transform: translate(-50%, -100%);
    transition: left 0.35s ease-in-out, top 0.35s ease-in-out;
    z-index: 25;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.45));
}

.player-idle {
    background-image: url('../assets/man/diam-bawah.png');
}.player-idle-income {
    background-image: url('../assets/man/diam-bawah-santai.png');
}.player-walk {
    background-image: url('../assets/man/berjalan-bawah.png');
}.player-run {
    background-image: url('../assets/man/berlari-bawah.png');
}

.face-right {
    transform: translate(-50%, -100%) scaleX(1);
}

.face-left {
    transform: translate(-50%, -100%) scaleX(-1);
}

.face-up {
    transform: translate(-50%, -100%);
}

.player-walk.face-up {
    background-image: url('../assets/man/berjalan-atas.png');
}

.player-run.face-up {
    background-image: url('../assets/man/berlari-atas.png');
}

/* 🚪 Area klik gaib tombol EXIT */
#btn-exit {
    position: absolute;
    top: 3.5%;        /* Jarak dari atas gambar */
    left: 10%;       /* Jarak dari kiri gambar */
    width: 9%;     /* Lebar membungkus kotak emas */
    height: 6.5%;     /* Tinggi membungkus kotak emas */
    cursor: pointer;
    border: none;
    outline: none;
    background-color: transparent; /* Ubah ke 'rgba(255, 0, 0, 0.4)' jika ingin tes pas atau tidaknya */
    border-radius: 6px;
    z-index: 10;
}
#btn-exit:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Efek kilau tipis saat disorot */
}

/* 📜 Area klik gaib tombol KREDIT (ID disesuaikan dengan kode HTML Anda #btn-kredit) */
#btn-kredit {
    position: absolute;
    top: 3.5%;        /* Jarak dari atas gambar (sejajar EXIT) */
    right: 10%;      /* Jarak dari kanan gambar */
    width: 9%;     /* Lebar membungkus kotak emas */
    height: 6.5%;     /* Tinggi membungkus kotak emas */
    cursor: pointer;
    border: none;
    outline: none;
    background-color: transparent; /* Ubah ke 'rgba(0, 0, 255, 0.4)' jika ingin tes pas atau tidaknya */
    border-radius: 6px;
    z-index: 10;
}
#btn-kredit:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.bottom-panel-container {
    position: absolute;
    top: 82.5%;         
    left: 50%;
    transform: translateX(-50%);
    width: 68%;         
    z-index: 15;
    
    /* 📐 KUNCI PERBAIKAN: Pastikan menggunakan display block agar flex-direction bawaan wrapper tidak rusak */
    display: block; 
}

/* Wadah Baris Utama untuk 3 Kotak Kartu (MEMAKSA BERBARIS KE SAMPING) */
.cards-deck-wrapper {
    width: 100%;
    
    /* 📐 KUNCI UTAMA: Memaksa ketiga kotak berbaris mendatar ke samping secara seimbang */
    display: flex !important;
    flex-direction: row !important; 
    
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;          
}

/* Base Utama untuk Ketiga Kotak Kartu Timbul (Warna Krem Papan Asli) */
.deck-box {
    flex: 1;
    background: transparent;
    border-radius: 8px;
    padding: 8px;
    
    /* Inside box tetap vertikal untuk menyusun judul dan list kartu mini */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 115px;   
    
    border: 1.5px solid #bdab97; 
    box-shadow: 0 5px 12px rgba(74, 59, 44, 0.15), inset 0 0 8px rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deck-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(74, 59, 44, 0.25);
    background: transparent;
}

/* Desain Judul Kecil di Atas Masing-Masing Kotak Timbul */
.deck-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(74, 59, 44, 0.12);
}

/* Variasi Warna Aksentuasi Teks Judul Kotak */
.box-dilema .deck-title { color: #a63a2e; }  
.box-peluang .deck-title { color: #3a8c54; } 
.box-krisis .deck-title { color: #34495e; }   

/* Tempat berbarisnya kartu mini di dalam kotak */
.mini-cards-list {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.history-item {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    letter-spacing: 0.3px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-dilema {
    background: #a63a2e;
}

.history-peluang {
    background: #3a8c54;
}

.history-krisis {
    background: #34495e;
}

#screen-gameplay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 5;
    
    /* Default awal dimatikan total agar tidak bocor ke halaman depan login */
    display: none; 
}

#screen-gameplay.game-screen.active {
    opacity: 1;
    pointer-events: auto;
    display: block !important; 
}

.hud-top-panel {
    position: absolute;
    top: 5.5%;          /* Mengunci jarak melayang dari sumbu atas gambar game */
    width: 17%;         /* Lebar papan widget skor dibuat minimalis agar rapi */
    
    /* 🎨 WARNA DISESUAIKAN: Menggunakan warna krem gading ubin papan asli dengan transparansi halus */
    background: transparent;
    
    /* Bingkai cokelat sepia kayu tipis seirama gambar latar belakang */
    border: transparent; 
    border-radius: 8px;
    padding: 8px 12px;
    /* box-shadow: 0 6px 15px rgba(74, 59, 44, 0.12), inset 0 0 8px rgba(255, 255, 255, 0.6); */
    text-align: center;
    
    /* Pastikan z-index sangat tinggi agar tidak tenggelam di bawah background gambar */
    z-index: 99 !important; 
    
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Sedikit efek visual interaktif saat kursor mouse menyorot papan skor */
.hud-top-panel:hover {
    transform: translateY(-1px);
    background: rgba(246, 241, 233, 0.98);
    box-shadow: 0 8px 18px rgba(74, 59, 44, 0.2);
}

/* 📐 Posisi Panel Kiri Tepat Melayang di Atas Ilustrasi Celengan Babi */
#hud-kiri {
    left: 15% !important; 
    top: 0.8% !important;
}

/* 📐 Posisi Panel Kanan Tepat Melayang di Atas Ilustrasi Rumah Tinggal */
#hud-kanan {
    right: 15% !important;
    top: 0.8% !important;
}

/* Pengaturan Teks Judul Label Kecil di Atas Angka HUD */
.hud-label {
    font-size: 22px;
    font-weight: 800;
    color: #7f6c57;    
    letter-spacing: 1px;
    margin-bottom: 2px;
}

/* Pengaturan Ketebalan Huruf Angka Nominal Rupiah */
.hud-value {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 27px;    
    font-weight: 800;   
    letter-spacing: 0.5px;
}

/* Variasi Warna Angka Keuangan */
.value-minus { 
    color: #a63a2e;     
}    
.value-plus { 
    color: #2e7d32;     
}

/* ========== BANNER INFO KOTAK ========== */
.game-info-banner {
    position: absolute;
    bottom: 76%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(74, 59, 44, 0.85);
    color: #fdfbf7;
    padding: 6px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #d4af37;
    white-space: nowrap;
    z-index: 90;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
}

/* ========== MODAL OVERLAY KARTU GACHA ========== */
.modal-card-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal-card-overlay.active {
    display: flex;
}

.modal-card-content {
    background: rgba(253, 251, 247, 0.95);
    border: 2px solid #d4af37;
    border-radius: 16px;
    padding: 20px 25px;
    max-width: 820px;
    width: 92%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.selection-title {
    font-size: 18px;
    font-weight: 800;
    color: #4a3b2c;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

/* ========== GRID 20 KARTU ========== */
.card-grid-20 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-height: 58vh;
    overflow-y: auto;
    padding: 8px 4px;
    margin-bottom: 15px;
}

.card-grid-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #d4af37;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 3 / 4;
    background: #fdfbf7;
}

.card-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-grid-item:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    border-color: #b8860b;
}

.card-grid-item.selected {
    border: 3px solid #2e7d32;
    box-shadow: 0 0 0 2px #fff, 0 0 20px rgba(46, 125, 50, 0.5);
    transform: scale(1.05);
}

.selection-counter {
    font-size: 14px;
    font-weight: 600;
    color: #4a3b2c;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.selection-counter strong {
    color: #d4af37;
}

/* ========== MODAL INFO OVERLAY GLASS ========== */
.modal-info-overlay.active .howto-box,
.modal-info-overlay.active .hasil-box {
    animation: modalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.4);
}

@keyframes modalPop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========== MODAL CARA BERMAIN ========== */
.howto-box {
    background: linear-gradient(160deg, #fefcf7 0%, #f8f3ea 100%);
    border: 2px solid #d4af37;
    border-radius: 20px;
    padding: 0;
    width: 500px;
    max-width: 90vw;
    max-height: 85vh;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: default;
    overflow-y: auto;
}

.howto-header {
    background: linear-gradient(135deg, #3d2e1f 0%, #5a4634 40%, #3d2e1f 100%);
    padding: 22px 30px 18px;
    text-align: center;
    position: relative;
}

.howto-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #fdfbf7, #d4af37);
}

.howto-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, #fff8dc, #d4af37, transparent);
}

.howto-badge {
    font-size: 64px;
    margin-bottom: 2px;
    display: block;
    animation: floatBadge 2.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
    line-height: 1;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-7px) scale(1.06); }
}

.howto-header h2 {
    color: #fdfbf7;
    font-size: 26px;
    letter-spacing: 6px;
    font-weight: 800;
    margin: 2px 0 2px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.howto-subtitle {
    color: #d4af37;
    font-size: 9px;
    letter-spacing: 4px;
    margin: 0 0 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.howto-hr {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 0 auto 8px;
}

.howto-desc {
    color: #c7b59e;
    font-size: 11px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 380px;
    font-weight: 400;
}

/* Body */
.howto-body {
    padding: 14px 20px 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.howto-section {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.howto-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #4a3b2c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.section-ico {
    font-size: 15px;
}

/* Steps */
.howto-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.howto-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background 0.2s;
}

.howto-step:hover {
    background: rgba(212, 175, 55, 0.08);
}

.step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.step-main {
    font-size: 13px;
    font-weight: 600;
    color: #4a3b2c;
    line-height: 1.4;
}

.step-sub {
    font-size: 11px;
    color: #8c765c;
    font-weight: 400;
    line-height: 1.3;
}

/* Card Types */
.howto-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.howto-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.howto-card:hover {
    transform: translateX(4px);
}

.type-peluang {
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.type-dilema {
    background: rgba(198, 40, 40, 0.08);
    border: 1px solid rgba(198, 40, 40, 0.2);
}

.type-krisis {
    background: rgba(52, 73, 94, 0.08);
    border: 1px solid rgba(52, 73, 94, 0.2);
}

.card-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bg-peluang { background: linear-gradient(135deg, #43a047, #2e7d32); }
.bg-dilema { background: linear-gradient(135deg, #e53935, #c62828); }
.bg-krisis { background: linear-gradient(135deg, #546e7a, #34495e); }

.card-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.card-name {
    font-size: 14px;
    font-weight: 700;
    color: #4a3b2c;
}

.card-desc {
    font-size: 11px;
    color: #8c765c;
    font-weight: 500;
}

/* Footer */
.howto-footer {
    padding: 4px 24px 18px;
    text-align: center;
}

.howto-footer .btn-lanjutkan {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 13px 30px;
    font-size: 16px;
}

/* ========== MODAL HASIL AKHIR ========== */
.hasil-box {
    background: linear-gradient(145deg, #fefcf7 0%, #f6f0e6 100%);
    border: 2px solid #d4af37;
    border-radius: 18px;
    padding: 0;
    width: 480px;
    max-width: 90vw;
    max-height: 85vh;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: default;
    overflow-y: auto;
}

.hasil-header {
    background: linear-gradient(135deg, #4a3b2c 0%, #6b5744 50%, #4a3b2c 100%);
    padding: 28px 35px 20px;
    text-align: center;
    border-bottom: 3px solid #d4af37;
    position: relative;
}

.hasil-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, #fff, #d4af37, transparent);
}

.hasil-icon {
    font-size: 42px;
    margin-bottom: 6px;
    display: block;
    animation: floatIcon 2s ease-in-out infinite;
}

.hasil-header h2 {
    color: #fdfbf7;
    font-size: 26px;
    letter-spacing: 4px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hasil-subtitle {
    color: #d4af37;
    font-size: 11px;
    letter-spacing: 1px;
    margin: 6px 0 0;
    font-weight: 500;
}

.hasil-content {
    padding: 18px 30px 10px;
}

.hasil-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    font-size: 15px;
    border-radius: 8px;
    transition: background 0.2s;
}

.hasil-row:hover {
    background: rgba(212, 175, 55, 0.06);
}

.hasil-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 4px 8px;
}

.hasil-ico {
    margin-right: 8px;
    font-size: 16px;
}

.hasil-label {
    color: #5c4a37;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.hasil-value {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.saldo-row {
    margin-top: 4px;
}

.saldo-label {
    font-size: 17px;
    color: #4a3b2c;
}

.saldo-value {
    font-size: 24px;
    color: #4a3b2c;
    text-shadow: 0 1px 2px rgba(212, 175, 55, 0.2);
}

.hasil-pesan {
    margin: 16px 8px 4px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.pesan-plus {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
    border: 1px solid #a5d6a7;
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.15);
}

.pesan-minus {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #b71c1c;
    border: 1px solid #ef9a9a;
    box-shadow: 0 2px 10px rgba(198, 40, 40, 0.15);
}

/* ========== BUTTON EMAS ========== */
.btn-lanjutkan {
    display: block;
    margin: 18px auto 22px;
    padding: 12px 44px;
    background: linear-gradient(135deg, #d4af37 0%, #c49a2c 40%, #b8860b 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-lanjutkan:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-lanjutkan:active {
    transform: translateY(0) scale(1);
}

/* Mini card item di deck box bawah */
.mini-card-item {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    letter-spacing: 0.3px;
}

.mini-dilema {
    background: #a63a2e;
}

.mini-peluang {
    background: #3a8c54;
}

.mini-krisis {
    background: #34495e;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    /* How-to-play modal */
    .howto-box {
        width: 95vw;
        max-height: 85vh;
        overflow-y: auto;
    }
    .howto-header {
        padding: 14px 16px 12px;
    }
    .howto-badge {
        font-size: 40px;
    }
    .howto-header h2 {
        font-size: 18px;
        letter-spacing: 3px;
    }
    .howto-desc {
        font-size: 10px;
        max-width: 280px;
    }
    .howto-body {
        padding: 10px 12px 4px;
        gap: 8px;
    }
    .howto-section {
        padding: 8px 10px;
    }
    .howto-step {
        padding: 4px 6px;
        gap: 8px;
    }
    .step-num {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 11px;
    }
    .step-main {
        font-size: 11px;
    }
    .step-sub {
        font-size: 10px;
    }
    .howto-card {
        padding: 6px 10px;
        gap: 8px;
    }
    .card-badge {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 14px;
    }
    .card-name {
        font-size: 12px;
    }
    .card-desc {
        font-size: 10px;
    }
    .howto-footer {
        padding: 2px 16px 12px;
    }
    .howto-footer .btn-lanjutkan {
        padding: 10px 20px;
        font-size: 13px;
        max-width: 220px;
    }

    /* Result modal */
    .hasil-box {
        width: 92vw;
        max-height: 80vh;
        overflow-y: auto;
    }
    .hasil-header {
        padding: 16px 18px 12px;
    }
    .hasil-icon {
        font-size: 30px;
    }
    .hasil-header h2 {
        font-size: 18px;
        letter-spacing: 2px;
    }
    .hasil-content {
        padding: 12px 16px 8px;
    }
    .hasil-row {
        padding: 8px 0;
    }
    .hasil-label {
        font-size: 12px;
    }
    .hasil-value {
        font-size: 14px;
    }
    .hasil-pesan {
        font-size: 11px;
        padding: 10px 14px;
    }
    .hasil-footer {
        padding: 10px 16px 16px;
    }
    .hasil-footer .btn-lanjutkan {
        padding: 10px 20px;
        font-size: 13px;
        max-width: 220px;
    }

    /* Card selection modal */
    .modal-card-content {
        padding: 12px 14px;
        max-width: 95vw;
    }
    .selection-title {
        font-size: 13px;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    .card-grid-20 {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        max-height: 50vh;
        padding: 4px 2px;
    }
    .card-grid-item {
        border-width: 1px;
    }
    .selection-counter {
        font-size: 12px;
        margin-bottom: 6px;
    }

    /* Login / Register */
    .login-box {
        width: 88vw;
        padding: 24px 20px;
    }
    .login-box h2 {
        font-size: 20px;
    }
    .login-box input {
        padding: 10px 14px;
        font-size: 14px;
    }
    .login-box .btn-submit {
        padding: 10px;
        font-size: 14px;
    }

    /* Story modal mobile */
    .story-box {
        width: 95vw;
        max-height: 85vh;
        overflow-y: auto;
    }
    .story-header {
        padding: 14px 16px 10px;
    }
    .story-type-badge {
        font-size: 16px;
        padding: 4px 14px;
    }
    .story-title {
        font-size: 16px;
    }
    .story-body {
        padding: 12px 16px 16px;
    }
    .story-desc {
        font-size: 13px;
    }
    .choice-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    .choice-label {
        font-size: 13px;
    }

    /* Reflection modal mobile */
    .refleksi-box {
        width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
    }
    .refleksi-header {
        padding: 16px 18px 12px;
    }
    .refleksi-icon {
        font-size: 30px;
    }
    .refleksi-header h2 {
        font-size: 18px;
        letter-spacing: 3px;
    }
    .refleksi-body {
        padding: 14px 18px 18px;
    }
    .refleksi-question {
        font-size: 15px;
    }
}

/* ========== STORY MODAL (A/B/C Choices) ========== */
.story-box {
    background: linear-gradient(145deg, #fefcf7 0%, #f6f0e6 100%);
    border: 2px solid #d4af37;
    border-radius: 18px;
    padding: 0;
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: default;
    overflow: hidden;
}

.story-header {
    background: linear-gradient(135deg, #3d2e1f 0%, #5a4634 40%, #3d2e1f 100%);
    padding: 18px 24px 14px;
    text-align: center;
    border-bottom: 3px solid #d4af37;
    position: relative;
}

.story-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, #fff, #d4af37, transparent);
}

.story-type-badge {
    display: inline-block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    padding: 6px 22px;
    border-radius: 20px;
    color: #fff;
    margin-bottom: 8px;
}

.badge-dilema { background: linear-gradient(135deg, #e53935, #c62828); }
.badge-peluang { background: linear-gradient(135deg, #43a047, #2e7d32); }
.badge-krisis { background: linear-gradient(135deg, #546e7a, #34495e); }

.story-title {
    color: #fdfbf7;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.story-body {
    padding: 18px 24px 22px;
}

.story-desc {
    color: #4a3b2c;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 18px;
    font-weight: 500;
    text-align: left;
}

.story-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #d4af37;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    font-family: inherit;
}

.choice-btn:hover {
    background: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border-color: #b8860b;
}

.choice-btn:active {
    transform: translateX(2px) scale(0.99);
}

.choice-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #4a3b2c;
    margin-bottom: 2px;
}

.choice-effect {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #8c765c;
}

.choice-score {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 10px;
}

.score-high {
    background: #e8f5e9;
    color: #2e7d32;
}

.score-mid {
    background: #fff8e1;
    color: #f57f17;
}

.score-low {
    background: #ffebee;
    color: #c62828;
}

/* ========== REFLEKSI MODAL ========== */
.refleksi-box {
    background: linear-gradient(145deg, #fefcf7 0%, #f6f0e6 100%);
    border: 2px solid #d4af37;
    border-radius: 18px;
    padding: 0;
    width: 480px;
    max-width: 90vw;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: default;
    overflow: hidden;
}

.refleksi-header {
    background: linear-gradient(135deg, #4a3b2c 0%, #6b5744 50%, #4a3b2c 100%);
    padding: 18px 28px 14px;
    text-align: center;
    border-bottom: 3px solid #d4af37;
    position: relative;
}

.refleksi-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, #fff, #d4af37, transparent);
}

.refleksi-icon {
    font-size: 40px;
    margin-bottom: 4px;
    display: block;
    animation: floatIcon 2s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.refleksi-header h2 {
    color: #fdfbf7;
    font-size: 24px;
    letter-spacing: 4px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.refleksi-subtitle {
    color: #d4af37;
    font-size: 10px;
    letter-spacing: 2px;
    margin: 6px 0 0;
    font-weight: 500;
}

.refleksi-body {
    padding: 16px 22px 20px;
    text-align: center;
}

/* Riwayat di refleksi - premium card style */
.refleksi-history {
    max-height: 170px;
    overflow-y: auto;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(248,243,234,0.75));
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(212,175,55,0.25);
    text-align: left;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.refleksi-history-title {
    font-size: 11px;
    font-weight: 700;
    color: #4a3b2c;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 1px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

.refleksi-history-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    font-size: 10px;
    border-radius: 6px;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

.refleksi-history-item:nth-child(odd) {
    background: rgba(212,175,55,0.04);
}

.refleksi-history-item:hover {
    background: rgba(212,175,55,0.1);
}

.rh-num {
    font-weight: 700;
    color: #b8860b;
    min-width: 18px;
    font-size: 9px;
    text-align: center;
    line-height: 16px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(212,175,55,0.15);
}
.rh-kartu {
    font-weight: 600;
    color: #3d2e1f;
    font-size: 10px;
}
.rh-arrow {
    color: #b8860b;
    font-size: 8px;
    opacity: 0.6;
}
.rh-pilih {
    font-weight: 700;
    color: #4a3b2c;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(212,175,55,0.12);
}
.rh-skor {
    color: #8c765c;
    font-size: 9px;
    font-weight: 500;
}
.rh-saldo {
    font-weight: 700;
    margin-left: auto;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0,0,0,0.04);
}

/* Textarea refleksi - elegant */
.refleksi-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    border: 2px solid rgba(212,175,55,0.4);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    color: #4a3b2c;
    background: rgba(255,255,255,0.85);
    resize: vertical;
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
    line-height: 1.5;
}

.refleksi-textarea:focus {
    border-color: #b8860b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.refleksi-input-area {
    margin-bottom: 14px;
}

/* Radio button refleksi - elegant card style */
.refleksi-radio-group {
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 14px;
    padding: 2px;
}

.refleksi-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid rgba(212,175,55,0.15);
    margin-bottom: 6px;
    background: rgba(255,255,255,0.5);
}

.refleksi-radio:hover {
    border-color: rgba(212,175,55,0.5);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(212,175,55,0.1);
    transform: translateX(3px);
}

.refleksi-radio:has(input:checked) {
    border-color: #b8860b;
    background: rgba(212,175,55,0.1);
    box-shadow: 0 2px 10px rgba(212,175,55,0.15);
}

.refleksi-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212,175,55,0.5);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s;
}

.refleksi-radio input[type="radio"]:checked {
    border-color: #b8860b;
    background: #d4af37;
    box-shadow: inset 0 0 0 5px #fff, 0 0 0 2px rgba(212,175,55,0.3);
}

.refleksi-radio-label {
    font-size: 12px;
    color: #3d2e1f;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

.refleksi-counter {
    font-size: 12px;
    font-weight: 700;
    color: #b8860b;
    margin-bottom: 12px;
    letter-spacing: 2px;
    background: rgba(212,175,55,0.1);
    display: inline-block;
    padding: 3px 14px;
    border-radius: 12px;
}

.refleksi-question {
    color: #3d2e1f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.refleksi-body .btn-lanjutkan {
    margin: 0 auto;
}

/* HUD skor */
#hud-skor {
    position: absolute;
    bottom: 1%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(74, 59, 44, 0.85);
    color: #fdfbf7;
    padding: 4px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #d4af37;
    z-index: 90;
    letter-spacing: 0.5px;
    pointer-events: none;
}