:root {
    --primary: #00A3FF;
    --primary-hover: #008BE0;
    --bg-color: #F4F7F9;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #F4F7F9 0%, #E2E8F0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: var(--white);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-logo {
    height: 48px; /* Ajusta a altura da logo para encaixar bem no cabeçalho */
    width: auto;
    object-fit: contain;
}

.header-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.header-text p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

/* Roulette Container */
.roulette-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    margin-bottom: 50px;
    margin-top: 20px;
}

.roulette-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.18);
    border-radius: 50%;
    border: 1px dashed rgba(0, 163, 255, 0.2);
    z-index: -1;
}

.glow-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.5);
    z-index: 0;
    transform: translate(-50%, -50%);
}

.roulette-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 10px var(--white), 0 10px 40px rgba(0, 163, 255, 0.15);
    overflow: hidden;
    transition: transform 5s cubic-bezier(0.2, 0.8, 0.1, 1);
    background: var(--white);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Center Logo */
.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border: 6px solid var(--white);
    box-shadow: 0 0 0 6px #F1F5F9, 0 0 0 12px var(--white), 0 10px 25px rgba(0,0,0,0.1);
}

.center-logo i {
    color: var(--primary);
    font-size: 32px;
}

.center-logo img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

/* Pointer */
.pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 40px solid var(--white); /* White outer triangle (border) */
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.pointer::after {
    content: '';
    position: absolute;
    top: -37px;
    left: -18px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 30px solid var(--primary); /* Blue inner triangle */
}

/* Button */
.spin-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 163, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spin-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 163, 255, 0.5);
}

.spin-btn:active {
    transform: translateY(1px);
}

.spin-btn:disabled {
    background-color: #93C5E6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

/* Info text */
.info-text {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 24px;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.modal-title {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.modal-prize {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 32px;
}

.modal-btn {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.modal-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
    header {
        padding: 16px 20px;
    }
    .header-text p {
        display: none;
    }
    .roulette-wrapper {
        width: 320px;
        height: 320px;
    }
    .spin-btn {
        padding: 14px 32px;
        font-size: 16px;
    }
}
