.roulette-overlay{
     position: fixed;
     inset: 0;
    background: rgba(0, 0, 0, 0.5);
     display: none;
     align-items: center;
     justify-content: center;
     z-index: 9999;
 }
 
.roulette-container{
    width: 460px;
    min-height: 560px;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 20px auto;
 }
 
/* Inline override (somente na página /roleta) */
.roulette-container[data-inline="1"]{
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-height: unset;
    margin: 0 auto;
}
.roulette-container[data-inline="1"] .result-box{
    margin-top: 12px;
}
.roulette-container[data-inline="1"] .canvas-wrapper{
    max-width: 420px;
}

.roulette-popup-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10050;
}
.roulette-popup{
    width: 420px;
    max-width: calc(100% - 24px);
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    border: 2px solid rgba(212,168,67,.6);
    text-align: center;
}
.roulette-popup .popup-title{
    font-size: 1.1rem;
    font-weight: 800;
    color: #d4a843;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.roulette-popup .popup-body{
    color: #2d3748;
    font-weight: 600;
}
.roulette-popup .popup-actions{
    margin-top: 14px;
    display: flex;
    gap: 8px;
    justify-content: center;
}
.roulette-popup .popup-close{
    position: absolute;
    right: 12px;
    top: 8px;
    background: transparent;
    border: none;
    color: #4a5568;
    font-size: 22px;
    cursor: pointer;
}

.roulette-notice{
    display: none;
    margin: 16px auto 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid rgba(212, 168, 67, .5);
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    max-width: 420px;
    text-align: center;
    color: #2d3748;
    font-weight: 600;
}
.roulette-notice.show{
    display: block;
}
.roulette-notice .notice-title{
    font-size: 1rem;
    font-weight: 800;
    color: #d4a843;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.roulette-notice .notice-actions{
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
}
.roulette-notice .notice-actions a,
.roulette-notice .notice-actions button{
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}
.notice-primary{
    background: linear-gradient(135deg, #f0d060, #d4a843, #b8922e);
    color: #0a0a0f;
    border: 2px solid #d4a843;
}
.notice-secondary{
    background: #e2e8f0;
    color: #4a5568;
}

.title-roulette{
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    color: #2d3748;
    margin: 8px 0 24px;
}
.title-roulette .gold{ color: #d4a843; }
 
.canvas-wrapper{
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
 
.btn-spin{
    display: inline-block;
    margin: 24px auto 16px;
    padding: 18px 52px;
    border: none;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all .3s;
    background: linear-gradient(135deg, #f0d060, #d4a843, #b8922e);
    color: #0a0a0f;
    box-shadow: 0 8px 32px rgba(212, 168, 67, .4);
    border: 3px solid #d4a843;
}
.btn-spin:hover{
    box-shadow: 0 0 50px rgba(212, 168, 67, .5);
    transform: translateY(-2px);
}
.btn-spin:disabled{
    background: #1e1e2e;
    color: #8a8a9a;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
 
.result-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    border-radius: 16px;
    border: 2px solid rgba(212, 168, 67, .5);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(16px);
    transition: all .5s;
    margin: 16px auto 0;
    width: fit-content;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.result-box.visible{
    opacity: 1;
    transform: translateY(0);
}
.result-label{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #718096;
    font-weight: 600;
}
.result-value{
    font-size: 2.2rem;
    font-weight: 800;
    color: #d4a843;
}
 
.roulette-wheel{
    width: 400px;
    height: 400px;
     border-radius: 50%;
    border: 12px solid var(--border);
    box-shadow: 0 0 0 10px color-mix(in oklch, var(--border) 70%, black), 0 0 0 16px color-mix(in oklch, var(--border) 35%, transparent), 0 18px 36px rgba(0,0,0,.4), inset 0 0 40px rgba(0,0,0,.4);
     margin: auto;
     position: relative;
     overflow: hidden;
     transform: rotate(0deg);
     transition: transform 4s cubic-bezier(0.2, 0.7, 0.1, 1);
 }
 
.roulette-wheel .ring{
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 8px rgba(255,255,255,.06);
    pointer-events: none;
}
 
 .roulette-pointer{
     position: absolute;
     left: 50%;
    top: -10px;
     transform: translateX(-50%);
     width: 0;
     height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 22px solid var(--primary);
     filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
     z-index: 2;
 }
 
 .roulette-actions{
     display: flex;
     justify-content: center;
     gap: 10px;
    margin-top: 18px;
 }
 
 .roulette-actions button{
    padding: 12px 18px;
     border-radius: 8px;
     border: none;
     cursor: pointer;
     font-weight: 600;
 }
 
 .roulette-spin{
    background: var(--primary);
    color: var(--primary-foreground);
 }
 
 .roulette-close{
    background: #e2e8f0;
    color: #4a5568;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.roulette-close:hover{
    background: #cbd5e0;
    transform: translateY(-1px);
}
 
.roulette-segment{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    clip-path: polygon(50% 50%, 100% 0, 100% 100%);
    transform-origin: 50% 50%;
}
 
.roulette-result{
     margin-top: 8px;
     text-align: center;
     font-weight: 600;
     color: #212529;
 }

.roulette-label{
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 0% 50%;
    font-weight: 800;
    font-size: 14px;
    color: var(--foreground);
    white-space: nowrap;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,.5);
    pointer-events: none;
}

.roulette-hub{
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 50% 50%, #111 40%, #000 60%, #222 100%);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 16px rgba(0,0,0,.5), inset 0 0 20px rgba(0,0,0,.6);
    z-index: 1;
}
 
.hub-ring{
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 8px solid var(--border);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px color-mix(in oklch, var(--border) 60%, transparent);
}
 
.hub-center{
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--foreground);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
 
.roulette-divider{
    position: absolute;
    width: 2px;
    height: 50%;
    left: 50%;
    top: 50%;
    transform-origin: 0% 0%;
    background: rgba(255,255,255,.75);
    box-shadow: 0 0 8px rgba(255,255,255,.45);
    z-index: 0;
}

:root{
    --background: oklch(1 0 0);
    --foreground: oklch(0.145 0 0);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.145 0 0);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.145 0 0);
    --primary: oklch(0.205 0 0);
    --primary-foreground: oklch(0.985 0 0);
    --secondary: oklch(0.97 0 0);
    --secondary-foreground: oklch(0.205 0 0);
    --muted: oklch(0.97 0 0);
    --muted-foreground: oklch(0.556 0 0);
    --accent: oklch(0.97 0 0);
    --accent-foreground: oklch(0.205 0 0);
    --destructive: oklch(0.577 0.245 27.325);
    --destructive-foreground: oklch(0.577 0.245 27.325);
    --border: oklch(0.922 0 0);
    --input: oklch(0.922 0 0);
    --ring: oklch(0.708 0 0);
    --chart-1: oklch(0.646 0.222 41.116);
    --chart-2: oklch(0.6 0.118 184.704);
    --chart-3: oklch(0.398 0.07 227.392);
    --chart-4: oklch(0.828 0.189 84.429);
    --chart-5: oklch(0.769 0.188 70.08);
    --radius: 0.625rem;
    --sidebar: oklch(0.985 0 0);
    --sidebar-foreground: oklch(0.145 0 0);
    --sidebar-primary: oklch(0.205 0 0);
    --sidebar-primary-foreground: oklch(0.985 0 0);
    --sidebar-accent: oklch(0.97 0 0);
    --sidebar-accent-foreground: oklch(0.205 0 0);
    --sidebar-border: oklch(0.922 0 0);
    --sidebar-ring: oklch(0.708 0 0);
}

.dark{
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.145 0 0);
    --card-foreground: oklch(0.985 0 0);
    --popover: oklch(0.145 0 0);
    --popover-foreground: oklch(0.985 0 0);
    --primary: oklch(0.985 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --secondary: oklch(0.269 0 0);
    --secondary-foreground: oklch(0.985 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: oklch(0.269 0 0);
    --accent-foreground: oklch(0.985 0 0);
    --destructive: oklch(0.396 0.141 25.723);
    --destructive-foreground: oklch(0.637 0.237 25.331);
    --border: oklch(0.269 0 0);
    --input: oklch(0.269 0 0);
    --ring: oklch(0.439 0 0);
    --chart-1: oklch(0.488 0.243 264.376);
    --chart-2: oklch(0.696 0.17 162.48);
    --chart-3: oklch(0.769 0.188 70.08);
    --chart-4: oklch(0.627 0.265 303.9);
    --chart-5: oklch(0.645 0.246 16.439);
    --sidebar: oklch(0.205 0 0);
    --sidebar-foreground: oklch(0.985 0 0);
    --sidebar-primary: oklch(0.488 0.243 264.376);
    --sidebar-primary-foreground: oklch(0.985 0 0);
    --sidebar-accent: oklch(0.269 0 0);
    --sidebar-accent-foreground: oklch(0.985 0 0);
    --sidebar-border: oklch(0.269 0 0);
    --sidebar-ring: oklch(0.439 0 0);
}
