.gaming {
  margin: 0 auto;
}
.slot-machine {
    background-color: #5c2c1a; /* Dark brown background from the image */
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    color: white;
}

.win-indicator {
    font-size: 2em;
    margin-bottom: 20px;
    color: yellow; /* Yellow color for the WIN indicator */
}

.slot-display {
    display: flex;
    gap: 10px; /* Space between reels */
    margin-bottom: 20px;
    background-color: #2b140b; /* Darker background for the reel area */
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #a3663a; /* Border color from the image */
}

.slot-reel {
    width: 100px;
    height: 400px;
    overflow: hidden;
    border: 1px solid #5a3c2c;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.slot-reel img {
    width: 100%;
    height: 100px;
    object-fit: contain;

    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* Цей перехід для ФІНАЛЬНИХ іконок */
}

.slot-reel img.slot-entered {
    opacity: 1;
    transform: translateY(0);
}

/* НОВІ СТИЛІ для плейсхолдера обертання */
.slot-spinning-placeholder {
    position: absolute; /* Розміщуємо його над іконками */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Щоб воно заповнювало весь барабан */
    opacity: 0; /* Початково приховано */
    transition: opacity 0.1s ease-in-out; /* Для плавного зникнення/появи */
    z-index: 2; /* Щоб було над звичайними іконками */
}

.slot-spinning-placeholder.active {
    opacity: 1; /* Зробити видимим, коли обертається */
}


/* Анімація для виграшної комбінації залишається як є */
.winning-icon {
    animation: winAnimation 0.8s ease-in-out infinite alternate;
}

@keyframes winAnimation {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); filter: brightness(1.5); }
}


.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.credit-bet {
    font-size: 1.2em;
    color: #ccc;
}

.spin-button {
    background-color: #e67e22; /* Orange color for the SPIN button */
    color: white;
    font-size: 1.8em;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px #bf6011;
    transition: background-color 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.spin-button:active {
    background-color: #bf6011;
    box-shadow: 0 2px #8c460d;
    transform: translateY(3px);
}

.spin-button:disabled {
    background-color: #cccccc;
    box-shadow: 0 5px #999999;
    cursor: not-allowed;
}

.auto-button {
    background-color: #666;
    color: white;
    font-size: 1em;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
}

.auto-button.on {
    background-color: #27ae60; /* Green when auto is on */
}