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

body {
    font-family: 'Orbitron', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 20px;
}

.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.8), rgba(0, 0, 0, 1));
    z-index: -1;
    animation: glow 6s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 50px rgba(0, 191, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 100px rgba(0, 191, 255, 0.3);
    }
}

.container {
    max-width: 900px;
    width: 100%;
    padding: 20px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.game-header h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 20px #00bfff;
    flex: 1;
    text-align: center;
}

.orange {
    color: #ff6811;
    text-shadow: 0 0 10px #ff6811;
}

.blue {
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff;
}

.btn-back {
    padding: 10px 20px;
    background: rgba(255, 104, 17, 0.2);
    border: 2px solid #ff6811;
    color: #ff6811;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.btn-back:hover {
    background: #ff6811;
    color: #0a0a0a;
    transform: scale(1.05);
}

.game-info {
    text-align: center;
    margin-bottom: 30px;
    color: #00bfff;
    font-family: 'Roboto', sans-serif;
}

.wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    max-width: 500px;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #ff6811;
    text-shadow: 0 0 20px #ff6811;
    z-index: 10;
    filter: drop-shadow(0 5px 10px rgba(255, 104, 17, 0.5));
}

#wheelCanvas {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 191, 255, 0.5));
    transition: transform 0.1s;
}

.game-controls {
    text-align: center;
    margin: 30px 0;
}

.btn-spin {
    padding: 20px 40px;
    background: linear-gradient(135deg, #00bfff, #008fcc);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 191, 255, 0.4);
}

.btn-spin:hover:not(:disabled) {
    background: linear-gradient(135deg, #008fcc, #00bfff);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 191, 255, 0.6);
}

.btn-spin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-display {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 191, 255, 0.1);
    border: 2px solid #00bfff;
    border-radius: 10px;
    min-height: 100px;
}

.result-display h3 {
    color: #00bfff;
    margin-bottom: 10px;
}

#resultText {
    font-size: 1.5rem;
    color: #ff6811;
    font-weight: bold;
    text-shadow: 0 0 10px #ff6811;
}

.history-section {
    margin-top: 40px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #00bfff;
    border-radius: 10px;
}

.history-section h3 {
    color: #00bfff;
    margin-bottom: 15px;
    text-align: center;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.empty-history {
    color: #666;
    font-style: italic;
}

.history-item {
    padding: 10px 15px;
    background: rgba(0, 191, 255, 0.2);
    border: 1px solid #00bfff;
    border-radius: 5px;
    font-size: 0.9rem;
    animation: historyAppear 0.3s;
}

@keyframes historyAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animação de rotação */
.spinning {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2rem;
    }

    .wheel-container {
        max-width: 350px;
    }

    .btn-spin {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    #resultText {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.5rem;
    }

    .wheel-container {
        max-width: 280px;
    }

    .wheel-pointer {
        font-size: 2rem;
        top: -15px;
    }

    .btn-spin {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

