/* მთლიანი გვერდის პარამეტრები */
body {
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Arial Black', Gadget, sans-serif;
    color: white;
    overflow: hidden;
}

.game-container {
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    color: #f1c40f;
    text-shadow: 4px 4px 0px #c0392b;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* სლოტების ჩარჩო */
.slots-wrapper {
    display: flex;
    gap: 20px;
    background: #34495e;
    padding: 25px;
    border: 12px solid #f1c40f;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    margin-bottom: 50px;
}

/* თითოეული სლოტის უჯრა */
.slot {
    width: 110px;
    height: 110px;
    background: white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: #333;
    position: relative;
    overflow: hidden; /* ბლოკავს სიმბოლოების ჩარჩოდან გასვლას */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

/* ტრიალის ანიმაცია: ქმნის ზემოდან ქვემოთ სწრაფი მოძრაობის ილუზიას */
.spinning {
    animation: slotSpin 0.1s linear infinite;
}

@keyframes slotSpin {
    0% { 
        transform: translateY(-20px); 
        filter: blur(2px); /* დაბინდვა რეალისტურობისთვის */
        opacity: 0.8;
    }
    50% { 
        transform: translateY(20px); 
        filter: blur(8px); 
        opacity: 0.5;
    }
    100% { 
        transform: translateY(-20px); 
        filter: blur(2px);
        opacity: 0.8;
    }
}

/* SPIN ღილაკი */
button {
    padding: 18px 80px;
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 8px 0px #962d22, 0 15px 25px rgba(0,0,0,0.3);
    transition: all 0.1s;
    text-transform: uppercase;
}

button:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #ff5e4d 0%, #d64535 100%);
}

button:active {
    box-shadow: 0 2px 0px #962d22;
    transform: translateY(6px); /* ღილაკის ჩავარდნის ეფექტი */
}

/* როცა ღილაკი გათიშულია ტრიალის დროს */
button:disabled {
    background: #7f8c8d;
    box-shadow: 0 4px 0px #34495e;
    cursor: not-allowed;
    opacity: 0.6;
}

/* მოდალური ფანჯრის (Popup) სტილები */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: white;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    color: #333;
    width: 350px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.8);
    animation: modalAppear 0.4s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
    to { transform: scale(1); }
}

.modal h2 { font-size: 2.5rem; color: #e74c3c; margin-top: 0; }

.prize-display {
    font-size: 4rem;
    margin: 25px 0;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}

#closeModalBtn {
    background: #2c3e50;
    padding: 15px 50px;
    font-size: 20px;
    box-shadow: 0 5px #1a252f;
}

#closeModalBtn:active {
    box-shadow: 0 2px #1a252f;
}