/* ===== Mini Tailwind (subset, offline) ===== */
:root {
    --bg: #194ee0;
    --panel: #0f172a;
    --accent: #22d3ee;
    --lime: #84cc16;
    --pink: #ec4899;
    --orange: #f97316;
    --gold: #fbbf24;
    /* >>> TROCAR COR DO HEADER AQUI <<< */
    --headerTop: #111827;
    /* cor topo do header */
    --headerBottom: #0b1023;
    /* cor base do header */
    --headerText: #fde68a;
    /* cor do texto do header */
    --gold: #D4AF37;
    /* dourado */
    --yellow: #FFD700;
    /* amarelo ouro */
    --verde: #009B3A;
}

* {
    box-sizing: border-box
}

html,

body {
    margin: 0;
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    color: #e2e8f0;

    /* camada 1 (topo): imagem centralizada, sem cortar */
    /* camada 2 (fundo): gradiente */
    background:
        url('../assets/fundo.png') center / contain no-repeat,
        linear-gradient(145deg, var(--gold) 0%, var(--yellow) 45%, var(--verde) 100%);

    /* remova se não quiser bloquear rolagem */
    overflow: hidden;
    display: grid;
    place-items: center;
    /* centraliza horizontal e vertical */
    min-height: 100vh;

    /* normalmente não se usa border-radius no body */
    /* border-radius: 1.25rem; */
}

.flex {
    display: flex
}

.grid {
    display: grid
}

.items-center {
    align-items: center
}

.justify-center {
    justify-content: center
}

.justify-between {
    justify-content: space-between
}

.gap-2 {
    gap: .5rem
}

.gap-3 {
    gap: .75rem
}

.gap-4 {
    gap: 1rem
}

.gap-6 {
    gap: 1.5rem
}

.p-2 {
    padding: .5rem
}

.p-3 {
    padding: .75rem
}

.p-4 {
    padding: 1rem
}

.p-5 {
    padding: 1.25rem
}

.p-6 {
    padding: 1.5rem
}

.rounded {
    border-radius: .5rem
}

.rounded-2xl {
    border-radius: 1rem
}

.rounded-full {
    border-radius: 9999px
}

.text-xs {
    font-size: .75rem
}

.text-sm {
    font-size: .875rem
}

.text-lg {
    font-size: 1.125rem
}

.text-xl {
    font-size: 1.25rem
}

.text-2xl {
    font-size: 1.5rem
}

.font-bold {
    font-weight: 700
}

.font-black {
    font-weight: 900
}

.shadow {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35)
}

.btn {
    cursor: pointer;
    user-select: none;
    border: 0;
    outline: none
}

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

.badge {
    padding: .2rem .5rem;
    border-radius: .5rem;
    background: #0ea5e9;
    color: #001e2b
}

.border {
    border: 1px solid rgba(255, 255, 255, .1)
}

.w-full {
    width: 100%
}

.h-full {
    height: 100%
}

.hidden {
    display: none !important;
}

.pointer {
    cursor: pointer
}

.text-center {
    text-align: center
}

.text-right {
    text-align: right
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Neon frame */

.neon-card {
    background: linear-gradient(145deg, #0b1023, #0a0f1f);
    border-radius: 1.25rem;
    padding: 1rem;
    position: relative
}

.neon-card:before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #22d3ee, #ec4899, #facc15, #22d3ee);
    filter: blur(10px);
    z-index: 0;
    opacity: .3;
    animation: spin 18s linear infinite
}

.logoBr {
       display: flex;
    opacity: .3;
    max-width: 60vw;
    /* opcional: controla o tamanho */
    height: auto;
    display: block;

    align-items: center;
    text-align: center;
    align-content: end;
    /* evita espaço extra de inline elements */
}


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

.neon-card>* {
    position: relative;
    z-index: 1
}

/* só a imagem de fundo */
.spin {
    display: inline-block;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(1turn)
    }
}

/* Header clock */
.clock {
    color: #a5b4fc
}

/* ===== Page layout ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px 24px;
}

.machine {
    display: grid;
    grid-template-columns: minmax(620px, 740px) minmax(360px, 1fr);
    gap: 1.2rem;
    align-items: start;
    opacity: .8;
}

@media (max-width: 1100px) {
    .machine {
        grid-template-columns: 1fr;
        gap: 1rem
    }
}

/* ===== Slot machine / cabinet ===== */
.cabinet {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    background: linear-gradient(180deg, #1f2937 0%, #0f172a 50%, #1f2937 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 14px;
    padding-right: 100px;
    /* espaço para alavanca */
    box-shadow: inset 0 0 30px rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .55);
    /*
    background: url('../assets/maquina.jpg') center / contain no-repeat;
    */
}

.header {
    position: relative;
    background: linear-gradient(180deg, var(--headerTop) 0%, var(--headerBottom) 100%);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .12)
}

.header h2 {
    margin: 4px 0 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--headerText);
    text-shadow: 0 0 12px #f59e0b
}

.beacon {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: #111;
    border-radius: 12px;
    border: 2px solid #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .6);
    overflow: hidden
}

.beacon .led {
    width: 100%;
    height: 100%;
    background: #444
}

.beacon.on .led {
    background: radial-gradient(circle at 50% 50%, #fffbeb 10%, #f59e0b 55%, #b45309 100%);
    animation: blink 0.7s infinite
}

@keyframes blink {
    50% {
        filter: brightness(1.6) saturate(1.6)
    }
}

.slot-window {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #0b1023;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .15)
}

.reel {
    height: 140px;
    background: linear-gradient(180deg, #111827, #0f172a);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px
}

.r1 {
    color: #10b981
}

.r2 {
    color: #ef4444
}

.r3 {
    color: #a78bfa
}

.r4 {
    color: #fde047
}

.r5 {
    color: #38bdf8
}

.reel.spin {
    animation: roll 1s ease-in-out
}

@keyframes roll {
    0% {
        transform: translateY(-10px)
    }

    50% {
        transform: translateY(10px)
    }

    100% {
        transform: translateY(0)
    }
}

.lever-wrap {
    position: absolute;
    right: -95px;
    top: 10px;
    width: 70px;
    height: 230px;
    z-index: 10;
}

@media (max-width: 1100px) {
    .lever-wrap {
        right: 10px;
    }
}

.lever-stick {
    position: absolute;
    right: 18px;
    top: 0;
    width: 16px;
    height: 170px;
    background: linear-gradient(180deg, #fcd34d, #b45309);
    border-radius: 10px;
    box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .35), 0 0 10px rgba(250, 204, 21, .8)
}

.lever-knob {
    position: absolute;
    right: 6px;
    top: -22px;
    width: 44px;
    height: 44px;
    background: radial-gradient(circle at 30% 30%, #fff 5%, #fde68a 35%, #b45309 95%);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .6);
}

.lever-wrap.active .lever-stick {
    transform: translateY(32px) rotate(6deg);
    transition: .2s
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px
}

.fake-btn {
    width: 90px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(180deg, #666, #222);
    border: 1px solid #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .5) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eee;
    font-weight: 700
}

.footer-window {
    margin-top: 10px;
    background: #0a0f1f;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 10px;
    min-height: 120px
}

.footer-window h4 {
    margin: .2rem 0;
    color: #fef9c3
}

/* ===== Right board ===== */
.board {
    background: linear-gradient(180deg, #0a0f1f, #0b1023);
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .12)
}

.bar {
    height: 26px;
    background: linear-gradient(90deg, #22d3ee, #f472b6, #34d399, #f59e0b);
    border-radius: 8px
}

.bar-wrap {
    background: #0b1023;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    overflow: hidden
}

.medal {
    font-size: 20px;
    margin-right: 6px
}

.gold {
    filter: drop-shadow(0 0 6px #fcd34d)
}

.silver {
    filter: drop-shadow(0 0 6px #cbd5e1)
}

.bronze {
    filter: drop-shadow(0 0 6px #f59e0b)
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    overflow: auto;
}

.card {
    background: #0b1023;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    padding: 18px;
    max-width: 420px;
    width: 96vw;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
select {
    background: #0e162b;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: #e5e7eb;
    padding: .6rem;
    width: 100%
}

.primary {
    background: linear-gradient(90deg, #22d3ee, #ec4899);
    color: #051018;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: .7rem 1rem
}

.secondary {
    background: #0e162b;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #e5e7eb;
    border-radius: 10px;
    padding: .6rem 1rem
}

/* ===== Print ===== */
@media print {
    body {
        background: #fff;
        color: #000
    }

    .machine,
    .modal {
        display: none !important
    }

    .print-only {
        display: block
    }
}

.print-only {
    display: none
}

/* Quiz card widths/scroll */
.card-quiz {
    max-width: 900px;
    width: 70vw;
    min-width: 340px;
    min-height: 220px;
    overflow-x: hidden;
    /* Impede rolagem horizontal */
    word-break: break-word;
    /* Quebra palavras longas */
}

/* Participantes (scroll) */
#partList {
    max-height: 45vh;
    overflow-y: auto;
    overflow-x: hidden;
}