:root {
    --neon-purple: #d100ff;
    --dark-green: #113311;
    --panel-bg: #1a221a;
    --bg-black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: white;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Matrix Canvas */
#matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* Main Container */
.main-container {
    background: rgba(25, 5, 35, 0.85);
    border: 2px solid var(--neon-purple);
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 450px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(209, 0, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

/* Header */
.header-text {
    color: var(--neon-purple);
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    text-shadow: 0 0 5px var(--neon-purple);
    letter-spacing: 0.5px;
}

/* Jackpot */
.jackpot-container {
    background: #240b33;
    border: 2px solid var(--neon-purple);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(209, 0, 255, 0.2);
}

.jackpot-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 5px;
    text-shadow: 0 0 5px #cccccc;
}

.jackpot-amount {
    color: var(--neon-purple);
    font-size: 32px;
    font-weight: 800;
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 10px var(--neon-purple);
}

/* Slot Machine */
.slot-machine {
    background-color: transparent;
    border: none;
    padding: 18% 7% 18% 7%;
    position: relative;
}

.slot-machine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('vbddvxcvx.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 5;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    position: relative;
    z-index: 1;
}

.slot-item {
    background: #ffffff;
    border-radius: 10px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 0 #cccccc, inset 0 -4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* 
   Symbol placeholders (SVG Data URI). 
   Ganti 'url(...)' dengan link gambar asli Anda. 
   Contoh: background-image: url('assets/wild.png');
*/
.symbol {
    width: 90%;
    height: 90%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.1s;
    border-radius: 10px;
}

.symbol-1 { background-image: url('download (4).png'); }
.symbol-2 { background-image: url('gold1.png'); }

.slot-item.spin .symbol {
    animation: blur-spin 0.1s infinite linear;
}

@keyframes blur-spin {
    0% { transform: translateY(-100%); opacity: 0.5; filter: blur(2px); }
    100% { transform: translateY(100%); opacity: 0.5; filter: blur(2px); }
}

.spin-btn {
    display: block;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    background: linear-gradient(180deg, #ffd700, #d4af37);
    border: 3px solid #fff;
    color: #000;
    font-size: 24px;
    font-weight: 900;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.8);
    transition: all 0.2s;
    z-index: 5;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.spin-btn:hover {
    transform: scale(1.02);
}

.spin-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.win-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    z-index: 10;
}

.win-logo {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.win-overlay.show {
    opacity: 1;
    animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}

/* Popup Modal */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    backdrop-filter: blur(10px);
}

.popup-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: #1e1025;
    border: 3px solid var(--neon-purple);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 30px rgba(209, 0, 255, 0.5);
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-modal.show .popup-content {
    transform: scale(1);
}

.warning-text {
    color: #ffd700;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 5px;
}

.desc-text {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 5px;
}

.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.timer {
    font-family: 'Share Tech Mono', monospace;
    font-size: 36px;
    color: var(--neon-purple);
    font-weight: bold;
    text-shadow: 0 0 15px var(--neon-purple);
}

.popup-btn {
    background: #7a00a3;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 18px;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 0 15px rgba(209, 0, 255, 0.5);
    transition: all 0.3s;
    display: inline-block;
    width: 100%;
}

.popup-btn:hover {
    background: var(--neon-purple);
    color: white;
    box-shadow: 0 0 30px var(--neon-purple);
    transform: scale(1.05);
}
