@import url('https://fonts.googleapis.com/css2?family=Anton&family=Cinzel:wght@600;700&family=Exo+2:wght@700;800;900&family=Nunito:wght@500;600;700&display=swap');

/* Promo Baú bônus — overlay (base técnica espelhada da Dupla Chance; tons próprios abaixo) */
.bcp-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.88);
    animation: bcp-fade-in 0.35s ease;
}

@keyframes bcp-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bcp-panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    text-align: center;
    color: #f4f4f4;
    padding: 1.35rem 1.2rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(
        168deg,
        rgba(48, 34, 22, 0.96) 0%,
        rgba(22, 16, 12, 0.99) 42%,
        rgba(12, 9, 7, 1) 100%
    );
    /* Moldura estilo “porta de baú”: faixas metálicas + sombra */
    box-shadow:
        0 0 0 1px rgba(255, 236, 200, 0.45),
        0 0 0 3px rgba(74, 52, 28, 0.95),
        0 0 0 5px rgba(212, 168, 75, 0.9),
        0 0 0 7px rgba(42, 28, 16, 0.98),
        0 0 0 9px rgba(184, 134, 11, 0.65),
        0 0 0 10px rgba(18, 12, 8, 1),
        0 22px 48px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 220, 170, 0.18),
        inset 0 -2px 12px rgba(0, 0, 0, 0.35);
}

/* Filete interno decorativo (cantos suaves) */
.bcp-panel::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 12px;
    pointer-events: none;
    border: 1px solid rgba(255, 200, 120, 0.22);
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.2),
        0 0 12px rgba(255, 180, 60, 0.08);
}

.bcp-panel > * {
    position: relative;
    z-index: 1;
}

/* Título: Exo 2 + brilho dourado */
.bcp-title {
    font-family: 'Exo 2', system-ui, sans-serif;
    font-size: clamp(2.35rem, 11vw, 3.85rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 0.75rem;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    text-transform: uppercase;
    color: #fff8e1;
    text-shadow:
        0 0 8px rgba(255, 236, 153, 0.95),
        0 0 22px rgba(255, 200, 60, 0.85),
        0 0 42px rgba(255, 165, 0, 0.55),
        0 0 64px rgba(255, 140, 0, 0.28),
        0 2px 0 rgba(120, 70, 0, 0.92),
        0 4px 18px rgba(0, 0, 0, 0.72);
    filter: drop-shadow(0 0 2px rgba(255, 215, 120, 0.55));
}

/* Subtítulo: sans arredondada, maior e legível */
.bcp-sub {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 3.9vw, 1.2rem);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 1.4rem;
    letter-spacing: 0.02em;
    color: #ede4d6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    opacity: 0.96;
}

.bcp-chest-wrap {
    position: relative;
    margin: 0 auto 2rem;
    width: 200px;
    height: 168px;
    perspective: 1000px;
    perspective-origin: 50% 42%;
}

/* Sombra no “chão” sob o baú */
.bcp-chest-wrap::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -10px;
    height: 18px;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.22) 45%, transparent 72%);
    pointer-events: none;
}

/* “VOCÊ GANHOU!” — sobe da área do baú e permanece até fechar o overlay */
.bcp-win-shout {
    position: absolute;
    left: 50%;
    top: -6px;
    z-index: 22;
    width: max-content;
    max-width: min(380px, calc(100vw - 1.5rem));
    pointer-events: none;
    transform: translate3d(-50%, 40px, 0) scale(0.48);
    opacity: 0;
    will-change: transform, opacity;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.bcp-win-shout.bcp-visible {
    animation: bcp-win-shout-enter 0.72s cubic-bezier(0.26, 1.38, 0.42, 1) forwards;
}

@keyframes bcp-win-shout-enter {
    0% {
        opacity: 0;
        transform: translate3d(-50%, 42px, 0) scale(0.42) rotate(-3deg);
    }
    100% {
        opacity: 1;
        transform: translate3d(-50%, 0, 0) scale(1) rotate(0deg);
    }
}

.bcp-win-shout__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    padding: 0.72rem 1.15rem 0.65rem;
    border-radius: 12px;
    line-height: 1.05;
    text-align: center;
    background: linear-gradient(
        185deg,
        #fffef5 0%,
        #ffe082 22%,
        #ffc107 48%,
        #e65100 100%
    );
    border: 2px solid rgba(90, 48, 8, 0.65);
    box-shadow:
        0 5px 0 rgba(74, 40, 8, 0.95),
        0 8px 0 rgba(30, 14, 4, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 0.65),
        0 0 36px rgba(255, 193, 7, 0.55);
}

.bcp-win-shout__voce {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    text-transform: uppercase;
    color: #2d1a0e;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55),
        0 3px 8px rgba(0, 0, 0, 0.25);
}

.bcp-win-shout__ganhou {
    font-family: 'Anton', 'Impact', Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 400;
    font-size: clamp(2.05rem, 9vw, 2.85rem);
    letter-spacing: 0.06em;
    text-indent: 0.06em;
    text-transform: uppercase;
    color: #0d3d18;
    text-shadow:
        0 1px 0 rgba(200, 255, 210, 0.55),
        0 0 24px rgba(102, 187, 106, 0.9),
        0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Explosão de brilhos ao abrir (partículas geradas em JS) */
.bcp-sparkle-burst {
    position: absolute;
    inset: -24px;
    pointer-events: none;
    z-index: 12;
    overflow: visible;
}

.bcp-sparkle {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
}

.bcp-sparkle-burst.bcp-active .bcp-sparkle {
    animation: bcp-sparkle-fly 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bcp-sparkle-burst--win .bcp-sparkle {
    background: radial-gradient(circle at 30% 30%, #fffef5 0%, #ffe566 35%, #ffb300 100%);
    box-shadow:
        0 0 6px 1px rgba(255, 236, 160, 0.95),
        0 0 14px 3px rgba(255, 193, 7, 0.55);
}

.bcp-sparkle-burst--lose .bcp-sparkle {
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e8ecf8 45%, #a8b8d8 100%);
    box-shadow:
        0 0 5px 1px rgba(255, 255, 255, 0.85),
        0 0 12px 2px rgba(180, 200, 255, 0.35);
}

@keyframes bcp-sparkle-fly {
    0% {
        opacity: 1;
        transform: rotate(var(--angle, 0deg)) translateX(6px) scale(1.15);
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle, 0deg)) translateX(108px) scale(0.12);
    }
}

/* Segunda leva: estrelas menores, atraso maior */
.bcp-sparkle.bcp-sparkle--late {
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
}

.bcp-sparkle-burst.bcp-active .bcp-sparkle.bcp-sparkle--late {
    animation: bcp-sparkle-fly-late 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bcp-sparkle-fly-late {
    0% {
        opacity: 0.95;
        transform: rotate(var(--angle, 0deg)) translateX(4px) scale(1);
    }
    40% {
        opacity: 0.85;
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle, 0deg)) translateX(92px) scale(0.08);
    }
}

/* Moedas / brilho saindo da abertura ao ganhar */
.bcp-loot-fountain {
    position: absolute;
    left: 50%;
    top: 28%;
    width: 130px;
    height: 36px;
    margin-left: -65px;
    z-index: 11;
    pointer-events: none;
    overflow: visible;
}

.bcp-loot-piece {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 10px;
    height: 6px;
    margin-left: -5px;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle at 32% 28%, #fffcef 0%, #ffe566 32%, #e6a800 72%, #7a4a08 100%);
    box-shadow:
        0 0 4px rgba(255, 240, 200, 0.95),
        0 0 12px rgba(255, 195, 40, 0.55);
    transform: translate3d(var(--dx, 0px), 12px, 0) scale(0.2) rotate(0deg);
}

.bcp-loot-piece--lg {
    width: 15px;
    height: 9px;
    margin-left: -7.5px;
    bottom: 2px;
    box-shadow:
        0 0 6px rgba(255, 248, 210, 1),
        0 0 16px rgba(255, 200, 50, 0.65);
}

.bcp-loot-burst {
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 52px;
    height: 52px;
    margin-left: -26px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.12);
    background: radial-gradient(circle, rgba(255, 252, 235, 0.98) 0%, rgba(255, 210, 80, 0.5) 38%, transparent 70%);
    filter: blur(0.5px);
}

.bcp-loot-fountain.bcp-active .bcp-loot-piece {
    animation: bcp-loot-rise 1.08s cubic-bezier(0.28, 0.88, 0.32, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.bcp-loot-fountain.bcp-active .bcp-loot-burst {
    animation: bcp-loot-burst-pop 0.78s ease-out forwards;
    animation-delay: 0.1s;
}

@keyframes bcp-loot-rise {
    0% {
        opacity: 0;
        transform: translate3d(var(--dx, 0px), 16px, 0) scale(0.12) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(calc(var(--dx, 0px) + var(--tx, 0px)), var(--ty, -90px), 0) scale(1.05) rotate(var(--rot, 540deg));
    }
}

@keyframes bcp-loot-burst-pop {
    0% {
        opacity: 0;
        transform: scale(0.08);
    }
    40% {
        opacity: 0.92;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.55) translateY(-42px);
    }
}

/* Baú — shell transparente; caixa (corpo) e tampa (dobradiça) são partes separadas */
.bcp-chest {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 12px 12px 20px 20px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    background: transparent;
    box-shadow: none;
}

/* Parte de baixo: só a caixa (madeira + frisos), sem pintar a área da tampa */
.bcp-chest-body {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 38%;
    bottom: 0;
    border-radius: 2px 2px 18px 18px;
    border-top: 1px solid rgba(45, 28, 18, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 210, 160, 0.18),
        0 13px 0 #070403,
        0 22px 44px rgba(0, 0, 0, 0.62),
        inset 0 4px 5px rgba(255, 200, 140, 0.12),
        inset 0 -14px 22px rgba(0, 0, 0, 0.52),
        inset 4px 0 10px rgba(0, 0, 0, 0.16),
        inset -4px 0 10px rgba(0, 0, 0, 0.16);
    background:
        linear-gradient(180deg, rgba(60, 36, 22, 0.55) 0%, rgba(35, 22, 14, 0.35) 10%, transparent 22%),
        linear-gradient(168deg, #7a4220 0%, #5c3014 30%, #452010 58%, #281208 88%, #140a05 100%);
}

.bcp-chest-body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 14% 28%, rgba(0, 0, 0, 0.22) 0%, transparent 26%),
        radial-gradient(circle at 86% 52%, rgba(0, 0, 0, 0.18) 0%, transparent 24%),
        radial-gradient(circle at 52% 82%, rgba(0, 0, 0, 0.12) 0%, transparent 24%),
        repeating-linear-gradient(
            93deg,
            rgba(0, 0, 0, 0) 0 8px,
            rgba(0, 0, 0, 0.055) 8px 9px
        ),
        linear-gradient(122deg, rgba(255, 235, 200, 0.14) 0%, transparent 30%, rgba(0, 0, 0, 0.2) 100%);
}

/* Frisos metálicos horizontais só no corpo */
.bcp-chest-body::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0.92;
    background:
        linear-gradient(
            to bottom,
            transparent 32%,
            rgba(255, 220, 160, 0.48) 33%,
            rgba(55, 38, 22, 0.95) 34.2%,
            rgba(200, 155, 80, 0.48) 36%,
            transparent 38%
        ),
        linear-gradient(
            to bottom,
            transparent 58%,
            rgba(255, 215, 150, 0.42) 59%,
            rgba(55, 38, 22, 0.95) 60.2%,
            rgba(190, 145, 75, 0.45) 62%,
            transparent 64%
        );
}

.bcp-chest.bcp-open .bcp-chest-body {
    animation: bcp-chest-body-glow 1.4s ease-out 0s 1;
}

@keyframes bcp-chest-body-glow {
    0% {
        box-shadow:
            inset 0 1px 0 rgba(255, 210, 160, 0.18),
            0 13px 0 #070403,
            0 22px 44px rgba(0, 0, 0, 0.62),
            inset 0 4px 5px rgba(255, 200, 140, 0.12),
            inset 0 -14px 22px rgba(0, 0, 0, 0.52),
            inset 4px 0 10px rgba(0, 0, 0, 0.16),
            inset -4px 0 10px rgba(0, 0, 0, 0.16),
            0 0 0 0 rgba(255, 200, 80, 0);
    }
    38% {
        box-shadow:
            inset 0 1px 0 rgba(255, 210, 160, 0.18),
            0 13px 0 #070403,
            0 24px 50px rgba(0, 0, 0, 0.55),
            inset 0 4px 6px rgba(255, 235, 190, 0.22),
            inset 0 -14px 22px rgba(0, 0, 0, 0.42),
            inset 4px 0 10px rgba(0, 0, 0, 0.12),
            inset -4px 0 10px rgba(0, 0, 0, 0.12),
            0 0 40px 14px rgba(255, 195, 55, 0.48);
    }
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 210, 160, 0.18),
            0 13px 0 #070403,
            0 22px 44px rgba(0, 0, 0, 0.62),
            inset 0 4px 5px rgba(255, 200, 140, 0.12),
            inset 0 -14px 22px rgba(0, 0, 0, 0.52),
            inset 4px 0 10px rgba(0, 0, 0, 0.16),
            inset -4px 0 10px rgba(0, 0, 0, 0.16),
            0 0 0 0 rgba(255, 200, 80, 0);
    }
}

/* Interior da caixa (dentro do corpo): ganhou = ouro; perdeu = vazio */
.bcp-chest-interior {
    position: absolute;
    z-index: 2;
    left: 10%;
    right: 10%;
    top: 5%;
    height: 50%;
    border-radius: 6px 6px 12px 12px;
    overflow: hidden;
    pointer-events: none;
    clip-path: polygon(3% 0, 97% 0, 94% 100%, 6% 100%);
    opacity: 0;
    transform: perspective(520px) rotateX(18deg) translateY(-10px) scale(0.88);
    transform-origin: 50% 0;
    transition:
        opacity 0.55s ease 0.28s,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.28s;
    box-shadow:
        inset 0 6px 28px rgba(0, 0, 0, 0.82),
        inset 0 -2px 0 rgba(255, 200, 120, 0.06);
}

.bcp-chest.bcp-open .bcp-chest-interior {
    opacity: 1;
    transform: perspective(520px) rotateX(0deg) translateY(0) scale(1);
}

/* Baú vazio */
.bcp-chest-interior--lose {
    background:
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(35, 28, 22, 0.9) 0%, transparent 55%),
        linear-gradient(185deg, #0a0705 0%, #16100c 45%, #0d0907 100%);
}

.bcp-chest-interior--lose::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 22%;
    bottom: 18%;
    border-radius: 4px;
    border: 1px dashed rgba(90, 70, 55, 0.22);
    background: radial-gradient(ellipse at 50% 80%, rgba(0, 0, 0, 0.35) 0%, transparent 55%);
}

/* Baú com ouro */
.bcp-chest-interior--win {
    background: linear-gradient(180deg, #120a06 0%, #2a1a0c 35%, #3d240e 100%);
}

.bcp-chest-gold-pile {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 130% 95% at 50% 108%, #ffec8b 0%, #ffc400 18%, #d4a017 42%, #6b4510 72%, #1a0f06 100%),
        radial-gradient(circle at 22% 58%, rgba(255, 252, 235, 0.95) 0%, transparent 18%),
        radial-gradient(circle at 78% 52%, rgba(255, 236, 160, 0.85) 0%, transparent 16%),
        radial-gradient(circle at 48% 38%, rgba(255, 220, 100, 0.55) 0%, transparent 22%),
        radial-gradient(circle at 62% 72%, rgba(180, 120, 30, 0.5) 0%, transparent 20%);
    animation: bcp-gold-glow 2.2s ease-in-out infinite;
}

.bcp-chest-gold-pile::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 8%;
    height: 42%;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    background: linear-gradient(
        180deg,
        rgba(255, 248, 200, 0.5) 0%,
        rgba(255, 200, 40, 0.35) 40%,
        transparent 100%
    );
    filter: blur(0.5px);
}

@keyframes bcp-gold-glow {
    0%, 100% {
        filter: brightness(1) saturate(1);
    }
    50% {
        filter: brightness(1.12) saturate(1.15);
    }
}

/* Correias de couro nas laterais do corpo */
.bcp-chest-vstrap {
    position: absolute;
    bottom: 0;
    z-index: 3;
    width: 19%;
    height: 94%;
    border-radius: 4px 4px 2px 2px;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            180deg,
            transparent 0 5px,
            rgba(0, 0, 0, 0.06) 5px 6px
        ),
        linear-gradient(
            90deg,
            #2a1a10 0%,
            #4e3220 22%,
            #5c3a26 50%,
            #4a2c1c 78%,
            #26160e 100%
        );
    box-shadow:
        inset 0 0 0 1px rgba(255, 200, 140, 0.1),
        inset -2px 0 6px rgba(0, 0, 0, 0.35),
        inset 2px 0 6px rgba(0, 0, 0, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.35);
}

.bcp-chest-vstrap--l {
    left: 8%;
}

.bcp-chest-vstrap--r {
    right: 8%;
}

/* Rebites metálicos nos cantos */
.bcp-chest-rivets {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.bcp-chest-rivets span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff8e8 0%, #e8c87b 28%, #9a7428 72%, #3d2a14 100%);
    box-shadow:
        inset 0 -3px 4px rgba(0, 0, 0, 0.45),
        inset 0 2px 2px rgba(255, 255, 255, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Rebites inferiores no corpo (acompanham o baú aberto) */
.bcp-chest-rivets span:nth-child(1) {
    bottom: 12%;
    left: 10px;
}

.bcp-chest-rivets span:nth-child(2) {
    bottom: 12%;
    right: 10px;
}

/* Rebites superiores presos à tampa */
.bcp-lid-rivet {
    position: absolute;
    top: 10px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(circle at 32% 28%, #fff8e8 0%, #e8c87b 28%, #9a7428 72%, #3d2a14 100%);
    box-shadow:
        inset 0 -3px 4px rgba(0, 0, 0, 0.45),
        inset 0 2px 2px rgba(255, 255, 255, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.45);
}

.bcp-lid-rivet--tl {
    left: 10px;
}

.bcp-lid-rivet--tr {
    right: 10px;
}

.bcp-chest.bcp-shake:not(.bcp-open) {
    animation: bcp-shake 0.6s ease-in-out infinite;
}

@keyframes bcp-shake {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-3deg) translateY(2px); }
    75% { transform: rotate(3deg) translateY(2px); }
}

/* Dobradiça: tampa + fechaduro — abre para trás (topo da tampa afunda na cena); ângulo moderado + translateZ- evita “saltar” pra frente */
.bcp-chest-lid-hinge {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    transform-origin: bottom center;
    transform-style: preserve-3d;
    transition: transform 0.95s cubic-bezier(0.34, 0.72, 0.22, 1);
}

.bcp-chest.bcp-open .bcp-chest-lid-hinge {
    transform: rotateX(-76deg) translateZ(-22px);
    animation: bcp-lid-glare 0.78s ease-out;
}

.bcp-chest-lid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    border-radius: 12px 12px 6px 6px;
    transform: none;
    transform-style: preserve-3d;
    backface-visibility: visible;
    transition: none;
    background:
        linear-gradient(180deg, rgba(255, 250, 230, 0.28) 0%, transparent 26%),
        repeating-linear-gradient(88deg, transparent 0 7px, rgba(0, 0, 0, 0.04) 7px 8px),
        linear-gradient(178deg, #c4703a 0%, #8c481f 38%, #5c3014 72%, #3a1e0c 100%);
    box-shadow:
        inset 0 3px 6px rgba(255, 240, 200, 0.25),
        inset 0 -6px 12px rgba(0, 0, 0, 0.32),
        0 5px 0 rgba(30, 16, 8, 0.65),
        0 8px 14px rgba(0, 0, 0, 0.35);
}

/* Dobradiças na base da tampa */
.bcp-chest-lid::before,
.bcp-chest-lid::after {
    content: '';
    position: absolute;
    bottom: -1px;
    width: 11px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(90deg, #4a3c28 0%, #c4b090 42%, #8a7a60 55%, #3d3224 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.bcp-chest-lid::before {
    left: 10%;
    transform: rotate(-6deg);
}

.bcp-chest-lid::after {
    right: 10%;
    transform: rotate(6deg);
}

/* Friso metálico na frente da tampa */
.bcp-lid-band {
    position: absolute;
    left: -1%;
    right: -1%;
    bottom: -3px;
    height: 11px;
    z-index: 2;
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        #fff9e6 0%,
        #e8c76b 22%,
        #a67c28 55%,
        #5c4018 88%
    );
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

@keyframes bcp-lid-glare {
    0% {
        filter: brightness(1.45) drop-shadow(0 0 12px rgba(255, 220, 140, 0.75));
    }
    100% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
}

.bcp-lock-stack {
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    z-index: 4;
    width: 52px;
    height: 60px;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.bcp-shackle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 34px;
    height: 22px;
    transform: translateX(-50%);
    border: 5px solid #9a7b28;
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, #5a4a1c 0%, #d4af37 48%, #8a7020 100%);
    box-shadow:
        inset 0 3px 5px rgba(255, 252, 230, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25),
        0 -1px 5px rgba(0, 0, 0, 0.35);
}

.bcp-lock-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 36px;
    border-radius: 7px 7px 5px 5px;
    background: linear-gradient(192deg, #fff8d8 0%, #ffd54f 28%, #e6ac00 62%, #8a6820 100%);
    box-shadow:
        0 5px 8px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.65),
        inset 0 -4px 10px rgba(100, 70, 20, 0.4),
        inset 0 0 0 1px rgba(120, 90, 40, 0.35);
    overflow: hidden;
}

.bcp-lock-face {
    position: absolute;
    inset: 5px 6px 8px;
    border-radius: 4px;
    border: 1px solid rgba(120, 85, 30, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 45%);
    pointer-events: none;
}

.bcp-keyhole {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #4a3220 0%, #0a0604 100%);
    box-shadow:
        0 12px 0 -1px #080604,
        inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.bcp-status {
    min-height: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.bcp-scroll {
    background: linear-gradient(180deg, #f5e6c8 0%, #e8d4a8 100%);
    color: #2a1810;
    border-radius: 6px;
    padding: 1rem 1.1rem;
    margin: 0 auto 1.25rem;
    max-width: 300px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(139, 90, 43, 0.35);
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    display: none;
}

.bcp-scroll.bcp-visible {
    display: block;
    animation: bcp-unroll 0.5s ease;
}

@keyframes bcp-unroll {
    from {
        opacity: 0;
        transform: scaleY(0.3);
        transform-origin: top center;
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.bcp-actions .btn {
    min-width: 140px;
}

.bcp-final {
    display: none;
}

.bcp-final.bcp-visible {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .bcp-sparkle-burst.bcp-active .bcp-sparkle,
    .bcp-sparkle-burst.bcp-active .bcp-sparkle.bcp-sparkle--late {
        animation-duration: 0.35s;
    }

    .bcp-chest.bcp-open .bcp-chest-body {
        animation: none;
    }

    .bcp-chest.bcp-open .bcp-chest-lid-hinge {
        animation: none;
    }

    .bcp-chest-interior {
        transition: none;
    }

    .bcp-chest-lid-hinge {
        transition: none;
    }

    .bcp-chest-gold-pile {
        animation: none;
    }

    .bcp-loot-fountain.bcp-active .bcp-loot-piece,
    .bcp-loot-fountain.bcp-active .bcp-loot-burst {
        animation-duration: 0.35s;
    }

    .bcp-win-shout.bcp-visible {
        animation-duration: 0.25s;
    }
}

/* Identidade visual: esmeralda / violeta (distinto da Dupla Chance dourada) */
.bcp-panel {
    background: linear-gradient(
        168deg,
        rgba(32, 36, 58, 0.98) 0%,
        rgba(18, 22, 40, 0.99) 45%,
        rgba(10, 12, 24, 1) 100%
    );
    box-shadow:
        0 0 0 1px rgba(180, 200, 255, 0.35),
        0 0 0 3px rgba(56, 64, 110, 0.95),
        0 0 0 5px rgba(118, 90, 200, 0.55),
        0 0 0 7px rgba(24, 28, 48, 0.98),
        0 0 0 9px rgba(56, 200, 160, 0.45),
        0 0 0 10px rgba(12, 14, 22, 1),
        0 22px 48px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(200, 255, 230, 0.14),
        inset 0 -2px 12px rgba(0, 0, 0, 0.4);
}
.bcp-panel::before {
    border-color: rgba(120, 200, 180, 0.28);
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(80, 220, 170, 0.12);
}
.bcp-title {
    color: #e8fff6;
    text-shadow:
        0 0 8px rgba(120, 255, 210, 0.88),
        0 0 22px rgba(60, 200, 160, 0.65),
        0 0 42px rgba(120, 90, 255, 0.45),
        0 2px 0 rgba(10, 48, 40, 0.9),
        0 4px 18px rgba(0, 0, 0, 0.72);
    filter: drop-shadow(0 0 2px rgba(100, 255, 200, 0.45));
}
.bcp-sub { color: #dceee9; }

/* Prêmio: label + valor em destaque (fonte e cor próprias) */
.bcp-prize-block {
    margin: 0 auto 1.35rem;
    padding: 0.85rem 0.75rem 1rem;
    text-align: center;
}
.bcp-prize-label {
    display: block;
    font-family: 'Exo 2', system-ui, sans-serif;
    font-size: clamp(0.78rem, 3vw, 0.95rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    text-transform: uppercase;
    color: rgba(160, 235, 215, 0.92);
    margin-bottom: 0.45rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.bcp-prize-value {
    display: block;
    font-family: 'Anton', 'Impact', Haettenschweiler, sans-serif;
    font-size: clamp(2.25rem, 11vw, 3.45rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.05em;
    color: #ffe082;
    font-variant-numeric: tabular-nums;
    text-shadow:
        0 0 10px rgba(255, 236, 153, 0.95),
        0 0 26px rgba(255, 200, 60, 0.75),
        0 0 48px rgba(255, 160, 40, 0.45),
        0 3px 0 rgba(120, 70, 12, 0.9),
        0 6px 20px rgba(0, 0, 0, 0.55);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.bcp-open-btn { background: linear-gradient(185deg, #2dd4bf, #0d9488) !important; border-color: #0f766e !important; color: #041c1a !important; }
