/* ===== STYLING LOGO HEADER ===== */
.header-logo {
    display: block;
    margin: 0 auto 15px auto;
    width: 130px; /* Ukuran logo, sesuaikan jika perlu */
    height: auto;
    /* Memberikan latar putih agar logo terlihat jelas di background gelap */
    background-color: #ffffff;
    border-radius: 50%; /* Membuat latar belakang bulat */
    padding: 8px;
    /* Efek menyala (neon glow) senada dengan tema game */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 
                0 0 40px rgba(255, 0, 128, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.8);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a0033 0%, #330066 50%, #660099 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 128, 0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    background: rgba(20, 0, 40, 0.85);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 25px;
    padding: 30px 25px;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3), 
                inset 0 0 30px rgba(255, 0, 128, 0.1);
    text-align: center;
}

header h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, #ffd700, #ff0080, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes shine {
    to { background-position: 200% center; }
}

.subtitle {
    color: #c9a0ff;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    flex: 1;
    background: linear-gradient(135deg, rgba(102, 0, 153, 0.6), rgba(51, 0, 102, 0.6));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    color: #c9a0ff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.slot-machine {
    background: linear-gradient(180deg, #0a0015, #1a0033);
    border: 3px solid rgba(255, 215, 0, 0.5);
    border-radius: 20px;
    padding: 25px 15px;
    margin-bottom: 25px;
    box-shadow: inset 0 0 30px rgba(255, 0, 128, 0.2);
}

.slot-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.reel {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #2a0055, #15002e);
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3),
                inset 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

.reel.spinning {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-3px); }
    50% { transform: translateY(3px); }
    100% { transform: translateY(-3px); }
}

.reel.win {
    border-color: #00ff88;
    box-shadow: 0 0 25px #00ff88, 0 0 50px rgba(0, 255, 136, 0.5);
    animation: winPulse 0.6s ease-in-out;
}

@keyframes winPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.result-message {
    color: #ffd700;
    font-size: 1rem;
    font-weight: bold;
    min-height: 24px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.result-message.win {
    color: #00ff88;
    animation: winPulse 0.6s ease-in-out 2;
}

.result-message.lose {
    color: #ff5588;
}

.spin-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #1a0033;
    background: linear-gradient(135deg, #ffd700, #ffaa00, #ffd700);
    background-size: 200% auto;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    transition: all 0.2s;
    margin-bottom: 20px;
    animation: shine 3s linear infinite;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
}

.spin-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
}

.history {
    text-align: left;
    margin-bottom: 20px;
}

.history h3 {
    color: #c9a0ff;
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: center;
}

#history-list {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#history-list li {
    background: rgba(102, 0, 153, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #e0d0ff;
    border-left: 3px solid #ffd700;
    display: flex;
    justify-content: space-between;
}

#history-list li.win {
    border-left-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

#history-list li.lose {
    border-left-color: #ff5588;
    background: rgba(255, 85, 136, 0.1);
}

#history-list::-webkit-scrollbar {
    width: 6px;
}

#history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.reset-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #660099, #330066);
    color: #ffd700;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid rgba(255, 215, 0, 0.4);
    transition: all 0.2s;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #8800cc, #550099);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* ===== FOOTER PENYADARAN & COPYRIGHT ===== */
.game-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 215, 0, 0.3);
}


/* ===== PESAN GAME OVER HIGHLIGHT ===== */
.game-over-message {
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff3cd, #ffeeba); /* Warna kuning highlight */
    border: 2px solid #ffc107;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6), 
                inset 0 0 10px rgba(255, 193, 7, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    animation: slideUpFade 0.6s ease-out forwards;
}

.game-over-message p {
    color: #856404; /* Warna teks cokelat tua agar kontras dengan background kuning */
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.game-over-message strong {
    color: #d35400; /* Warna oranye tua untuk kata kunci */
    font-size: 1rem;
}

.highlight-icon {
    font-size: 1.5rem;
    line-height: 1;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.awareness-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.15), rgba(255, 85, 0, 0.15));
    border: 1px solid rgba(255, 85, 136, 0.5);
    border-left: 4px solid #ff3366;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

.awareness-icon {
    font-size: 1.3rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.awareness-box p {
    color: #ffd0dd;
    font-size: 0.8rem;
    line-height: 1.5;
}

.awareness-box strong {
    color: #ff88aa;
}

.copyright {
    color: #9a7fbf;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.copyright .brand {
    color: #ffd700;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@media (max-width: 480px) {
    header h1 { font-size: 1.5rem; }
    .reel { width: 65px; height: 65px; font-size: 2rem; }
    .container { padding: 20px 15px; }
    .awareness-box p { font-size: 0.75rem; }
    /* Tambahan untuk logo di layar kecil */
    .header-logo { width: 100px; padding: 6px; }
}