:root {
    --bg-color: #1a1a2e;
    --primary-color: #e94560;
    --secondary-color: #0f3460;
    --text-color: #ffffff;
    --symbol-size: 50px;
    --grid-gap: 5px;
}

.game-container {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

h1 {
    color: var(--primary-color);
    margin-top: 0;
}

.display-panel {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.display {
    background: #232946;
    padding: 10px 20px;
    border-radius: 10px;
}

.display .label {
    font-size: 0.8em;
    opacity: 0.7;
    display: block;
}

.display .value {
    font-size: 1.5em;
    font-weight: bold;
}

.reels-container {
    background: #0d1226;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

#reels-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: var(--symbol-size);
    gap: var(--grid-gap);
}

.symbol {
    width: var(--symbol-size);
    height: var(--symbol-size);
    background-color: #3b3d58;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    transition: transform 0.5s ease-out;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.multiplier {
    background: #ffd700;
    color: #3b3d58;
    font-size: 1.2em;
    font-weight: bold;
}

.spinning {
    animation: spin-animation 1s linear infinite;
}

@keyframes spin-animation {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

.winning-symbol {
    animation: win-pulse 1s ease-in-out infinite;
    box-shadow: 0 0 10px 5px rgba(255, 255, 0, 0.7);
}

@keyframes win-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.controls-panel {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

button {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

button:hover:not(:disabled) {
    background: #ff5d7d;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#message-area {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2em;
    min-height: 25px;
}

.win-message {
    color: #ffd700;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.1em;
}

.hidden {
    display: none;
}