* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    background: url('bg.webp') center center / cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.game-container {
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.95) 0%, rgba(26, 35, 50, 0.95) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 255, 255, 0.2);
    max-width: 600px;
    width: 100%;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.score-display {
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.btn-back {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 153, 204, 0.2) 100%);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-back:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(0, 153, 204, 0.3) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.slot-machine {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.reel {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(10, 25, 41, 0.9) 100%);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 100px;
    overflow: hidden;
    position: relative;
}

.symbol {
    font-size: 3rem;
    text-align: center;
    line-height: 1;
    padding: 0.5rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.symbol.win {
    background: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    animation: win-pulse 0.5s ease;
}

@keyframes win-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-spin,
.btn-restart {
    background: linear-gradient(135deg, #00ffff 0%, #0099cc 100%);
    color: #0a1929;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-spin:hover:not(:disabled),
.btn-restart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.4);
}

.btn-spin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-restart {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8) 0%, rgba(204, 85, 85, 0.8) 100%);
    color: white;
}

.btn-restart:hover {
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

@media (max-width: 600px) {
    .game-container {
        padding: 1.5rem;
    }

    .slot-machine {
        gap: 0.5rem;
    }

    .reel {
        min-width: 80px;
        padding: 0.75rem;
    }

    .symbol {
        font-size: 2.5rem;
        min-height: 70px;
    }

    .game-controls {
        flex-direction: column;
    }

    .btn-spin,
    .btn-restart {
        width: 100%;
    }
}
