:root {
    --primary: #e94560;
    --secondary: #0f3460;
    --accent: #4ecca3;
    --bg-dark: #0a0a12;
    --gold: #ffd700;
    --silver: #c0c0c0;
}

body {
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a12 100%);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(233, 69, 96, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.balance-card {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    padding: 15px 25px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.balance-label {
    font-size: 0.7rem;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bonus-badge {
    background: var(--accent);
    color: #1a1a2e;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 5px;
}

.wheel-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 40px auto;
}

.wheel-outer-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 15px solid #16213e;
    border-radius: 50%;
    box-shadow: 0 0 30px var(--primary), inset 0 0 20px rgba(0,0,0,0.5);
    z-index: 1;
}

/* Luzes decorativas ao redor da roleta */
.wheel-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 2;
    animation: rotateLights 10s linear infinite;
}

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

.wheel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
    border: 5px solid var(--gold);
}

#wheel {
    width: 100%;
    height: 100%;
    transition: transform 4s cubic-bezier(0.15, 0, 0.15, 1);
}

.pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gold);
    clip-path: polygon(50% 100%, 15% 0, 85% 0);
    z-index: 20;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--gold) 0%, #b8860b 100%);
    border-radius: 50%;
    z-index: 10;
    border: 4px solid #1a1a2e;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.controls {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-main {
    background: linear-gradient(to bottom, var(--primary) 0%, #c12c46 100%);
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.3rem;
    border-radius: 15px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 6px 0 #8a1d31, 0 10px 20px rgba(0,0,0,0.4);
    transition: 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-main:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #8a1d31, 0 5px 10px rgba(0,0,0,0.4);
}

.btn-main:disabled {
    background: #555;
    box-shadow: 0 4px 0 #333;
    cursor: not-allowed;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-secondary {
    background: #16213e;
    color: #fff;
    border: 1px solid var(--primary);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 25px;
    border: 2px solid var(--primary);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gold);
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: #0f3460;
    border: 1px solid var(--primary);
    border-radius: 10px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    box-sizing: border-box;
}

.qr-container {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    margin: 20px 0;
    display: inline-block;
}

.pix-copy-paste {
    background: #0a0a12;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    word-break: break-all;
    margin-bottom: 15px;
    border: 1px dashed var(--accent);
}
