/* Forçar cores originais - bloquear modo escuro */
:root {
    color-scheme: only light;
}

html {
    color-scheme: only light;
}

@media (prefers-color-scheme: dark) {
    html, body, * {
        color-scheme: only light !important;
    }
    
    img, video {
        filter: none !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #0d1b2a;
    background: url('../images/logo.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

body {
    font-family: 'Roboto', 'Orbitron', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background-color: #0d1b2a;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: 100% 100%;
    color: white;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    align-items: stretch;
    padding: 0;
    background: #0d1b2a url('../images/background.png') no-repeat center center; background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Partículas de fumaça — fundo com profundidade */
.smoke-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.smoke-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 190, 210, 0.12) 0%, rgba(180, 190, 210, 0.04) 40%, transparent 70%);
    filter: blur(10px);
    opacity: 0;
    animation: smokeFloat linear infinite;
}

.smoke-particle:nth-child(1) {
    width: 80px; height: 80px;
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
}
.smoke-particle:nth-child(2) {
    width: 120px; height: 120px;
    left: 30%;
    animation-duration: 22s;
    animation-delay: 3s;
}
.smoke-particle:nth-child(3) {
    width: 60px; height: 60px;
    left: 55%;
    animation-duration: 16s;
    animation-delay: 6s;
}
.smoke-particle:nth-child(4) {
    width: 100px; height: 100px;
    left: 75%;
    animation-duration: 20s;
    animation-delay: 2s;
}
.smoke-particle:nth-child(5) {
    width: 140px; height: 140px;
    left: 20%;
    animation-duration: 25s;
    animation-delay: 8s;
}
.smoke-particle:nth-child(6) {
    width: 70px; height: 70px;
    left: 65%;
    animation-duration: 17s;
    animation-delay: 5s;
}
.smoke-particle:nth-child(7) {
    width: 90px; height: 90px;
    left: 45%;
    animation-duration: 21s;
    animation-delay: 10s;
}
.smoke-particle:nth-child(8) {
    width: 110px; height: 110px;
    left: 85%;
    animation-duration: 19s;
    animation-delay: 7s;
}

@keyframes smokeFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.4);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(40vh) translateX(-30px) scale(0.8);
        opacity: 0.3;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-20vh) translateX(20px) scale(1.2);
        opacity: 0;
    }
}

/* Container horizontal: Chat (~2/3) + Resultado (~1/3) no topo */
.top-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 6px;
    align-items: stretch;
    margin-bottom: 6px;
    flex-shrink: 0;
}

/* Container Principal (Abaixo do Chat + Resultado) - Não usado mais, mantido para compatibilidade */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    padding: 0 5px 5px 5px;
    width: 100%;
}

/* Chat Sidebar (Lado Esquerdo) - ~2/3 da largura, ao lado do resultado */
.chat-sidebar {
    flex: 2;
    min-width: 0;
    max-width: 50%;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: auto;
    min-height: 100px;
    max-height: 110px;
    align-self: stretch;
    margin-top: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 8px;
    padding: 6px;
    background: transparent;
    border-radius: 6px;
    min-height: 60px;
    max-height: 95px;
    font-size: 11px;
    line-height: 1.35;
}

/* Scrollbar personalizada para chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.chat-message {
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    word-wrap: break-word;
    padding: 2px 0;
    animation: fadeMessage 0.25s ease;
}

/* Nomes de usuários no chat em laranja */
.chat-message strong,
.chat-message b,
.chat-message .chat-username,
.chat-message .username {
    color: #ff8c42;
    font-weight: bold;
}

.chat-input {
    width: 100%;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: white;
    font-size: 16px;
    outline: none;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cabeçalho da missão (apenas título) */
.mission-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

/* Bloco de resultado separado (lado direito, ~1/3 da largura) */
.resultado-box-separado {
    flex: 1;
    min-width: 0;
    max-width: 34%;
    background: transparent;
    border-radius: 10px;
    padding: 0;
    margin-left: auto;
    box-shadow: none;
    margin-bottom: 0;
    min-height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    align-self: flex-start;
}

.resultado-title-separado {
    background: linear-gradient(180deg, #ff8c00, #e65100);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 6px;
    box-shadow: 0 0 10px rgba(255, 120, 0, 0.3), inset 0 0 10px rgba(255, 200, 100, 0.1);
}

.resultado-content-separado {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
}

.resultado-content-separado .btn-aguardando-jogadores {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: bold;
    cursor: default;
    pointer-events: none;
    background: linear-gradient(180deg, #ff8c00, #e65100);
    color: #fff;
    border: 1px solid rgba(255, 160, 30, 0.4);
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-shadow: none;
}

/* Estilos mantidos para compatibilidade (caso ainda existam elementos com essas classes) */
.mission-result-title {
    background: linear-gradient(90deg, #ff9800, #ff5722);
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mission-result-content {
    max-height: 96px;
    overflow-y: auto;
}

.mission-result-empty {
    font-size: 11px;
    opacity: 0.75;
}

.resultado-simples {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 3px;
    width: 100%;
}

.resultado-simples .username {
    font-weight: bold;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.resultado-simples .numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    font-weight: bold;
    font-size: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.resultado-simples.ganhou {
    border-left: 3px solid #4caf50;
}

.resultado-simples.perdeu {
    border-left: 3px solid #f44336;
}

.resultado-simples.perdeu .numero {
    background: #f44336;
}

.resultados-ocultos {
    display: none;
}

.btn-ver-todos {
    background: #ff8c42;
    color: #000;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 6px;
    width: 100%;
    font-size: 11px;
}

.btn-ver-todos:hover {
    background: #ff7a2e;
}

.main-container {
    width: 100%;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 8px 12px;
    border-bottom: none;
    position: relative;
    z-index: 1;
    top: 0;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    flex-wrap: nowrap;
    gap: 6px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    width: 100%;
    flex-shrink: 0;
    min-height: 50px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.user-icon {
    font-size: 0;
    background: none;
    width: 32px;
    height: 32px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
    flex-shrink: 0;
    border: none;
    overflow: hidden;
}

.user-icon-img {
    width: 150%;
    height: auto;
    object-fit: contain;
    transform: scale(3.5);
}

.username-top {
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-entrar {
    background: #00ff00;
    color: #000;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-entrar:hover {
    background: #00cc00;
    transform: translateY(-2px);
}

.top-bar-center {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.top-bar-coins {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

.flame-icon-small {
    font-size: 16px;
}
.flame-icon-small img {
    height: 35px;
    width: auto;
}

.coins-info {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 8px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.username {
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 34px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
    padding: 5px 5px 30px 5px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Botão Aguardando Jogadores */
.waiting-players-container {
    text-align: center;
    margin-bottom: 8px;
}

.btn-aguardando-jogadores {
    background: linear-gradient(180deg, #ff8c00, #e65100);
    color: #fff;
    border: 1px solid rgba(255, 160, 30, 0.4);
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 9px;
    cursor: default;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: none;
}

.btn-aguardando-jogadores:hover {
    transform: none;
    box-shadow: none;
}

.round-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    margin: 0;
    flex-shrink: 0;
    display: block !important;
    z-index: 5;
}

.round-number {
    font-size: 13px;
    font-weight: 800;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #ffd700;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

/* Missão de Resistência - centralizada, texto ao lado da barra */
.resistance-mission {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
    margin-top: 4px;
    padding: 4px 10px;
    width: 80%;
    max-width: 80%;
    flex-shrink: 0;
}

.mission-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.mission-title {
    font-size: 15px;
    font-weight: 800;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    width: 100%;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mission-round-id {
    color: #ffd700;
    margin-right: 8px;
    display: none !important;
}

.mission-progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    margin-bottom: 8px;
    width: 100%;
    max-width: 100%;
}

.mission-progress-bar {
    flex: none;
    width: 84%;
    height: 45px;
    min-height: 45px;
    max-height: 45px;
    border-radius: 25px;
    overflow: hidden;
    background-size: 140% 140%;
    animation: missionFlow 7s ease infinite;
    display: flex;
    position: relative;
    box-sizing: border-box;
    background: linear-gradient(45deg, #e48005, #8a3800, #14cc97);
    box-shadow: 0 0 0 2px rgba(255, 200, 0, 0.95), 0 0 8px rgba(255, 200, 0, 0.3), 0 0 14px rgba(255, 180, 0, 0.12);
}

/* Brilho rodando na borda dourada */
@property --shine-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.mission-progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    margin-bottom: 8px;
    width: 100%;
    max-width: 100%;
}

.mission-progress-container::before {
    content: "";
    position: absolute;
    width: calc(84% + 4px);
    height: 49px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 27px;
    background: conic-gradient(from var(--shine-angle), transparent 0%, transparent 60%, rgba(255, 230, 150, 0.7) 75%, rgba(255, 255, 255, 0.95) 80%, rgba(255, 230, 150, 0.7) 85%, transparent 100%);
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorderShine 3.5s linear infinite;
    pointer-events: none;
    z-index: 6;
}

@keyframes rotateBorderShine {
    to { --shine-angle: 360deg; }
}

@keyframes missionFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Brilho interno móvel na barra de missão */
.mission-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    filter: blur(6px);
    animation: missionShine 3.5s linear infinite;
    z-index: 3;
    pointer-events: none;
}

/* Texto "CONCLUA: 0/10" posicionado à direita da barra */
.mission-status-text {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    white-space: nowrap;
    z-index: 2;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mission-progress-orange {
    background: transparent !important;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    z-index: 2;
    border-radius: 50px;
}

.mission-prize-value-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
    position: relative;
    z-index: 3;
    margin-top: 2px;
}

.mission-prize-text {
    font-size: 10px;
    color: white;
    font-weight: 700;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    background: none;
    padding: 0;
    border-radius: 0;
}

.mission-prize-value {
    font-size: 20px;
    color: white;
    font-weight: 900;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

.mission-flame-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.mission-prize-extra {
    font-size: 10px;
    font-weight: 700;
    color: #ffe082;
    text-align: center;
    margin-top: 6px;
    line-height: 1.35;
    max-width: 100%;
    padding: 0 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.mission-extra-label {
    color: #fff9c4;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mission-progress-green {
    background: linear-gradient(135deg, #4caf50, #45a049);
    height: 100%;
    flex: 1;
}

.mission-checkmark {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* When checkmark is visible, hide the status text behind it */
.mission-checkmark:not([style*="display: none"]) ~ .mission-status-text,
.mission-checkmark:not([style*="display:none"]) ~ .mission-status-text {
    visibility: hidden;
}

/* Pop-up Missão de Resistência */
.missao-resistencia-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.missao-resistencia-popup.missao-resistencia-popup--open {
    display: flex;
}

.missao-resistencia-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 30, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.missao-resistencia-popup-card {
    position: relative;
    max-width: 340px;
    width: 100%;
    padding: 0;
    border-radius: 20px;
    background: rgba(10, 22, 38, 0.82);
    border: 1px solid rgba(255, 140, 66, 0.3);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 120, 40, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.missao-resistencia-popup-icon {
    display: none;
}

/* Header do popup */
.missao-resistencia-popup-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    padding: 18px 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow:
        0 0 10px rgba(255, 140, 0, 0.6),
        0 0 30px rgba(255, 100, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, rgba(255, 120, 40, 0.15) 0%, rgba(255, 120, 40, 0.03) 100%);
    border-bottom: 1px solid rgba(255, 140, 66, 0.25);
    position: relative;
}

.missao-resistencia-popup-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 160, 60, 0.6), transparent);
}

.missao-resistencia-popup-body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    padding: 20px;
    text-align: left;
}

.missao-resistencia-popup-body strong {
    color: #ffd700;
}

.missao-resistencia-popup-prize {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 20px 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.25);
    box-shadow: 0 0 15px rgba(255, 120, 40, 0.08) inset;
}

.missao-resistencia-popup-prize-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
}

.missao-resistencia-popup-prize-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.missao-resistencia-popup-prize-value {
    font-family: 'Orbitron', 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #ffd700;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

.missao-resistencia-popup-flame {
    font-size: 26px;
    line-height: 1;
}

.missao-resistencia-popup-hint {
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.55);
    max-width: 280px;
}

.missao-resistencia-popup-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 180, 100, 0.25);
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    box-shadow:
        0 0 10px rgba(255, 120, 40, 0.3),
        0 0 20px rgba(255, 120, 40, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.missao-resistencia-popup-btn:active {
    transform: scale(0.98);
}

/* Barra "Sua aposta": traços = histórico das etapas (10) */
.mission-bet-track {
    width: 84%;
    max-width: 84%;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: center;
    gap: 6px;
    box-sizing: border-box;
}

.mission-bet-track-label {
    font-size: 10px;
    font-weight: 800;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.mission-slots {
    margin-top: 0;
    display: flex;
    justify-content: stretch;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    width: 100%;
}

.mission-slot {
    flex: 1 1 0;
    min-width: 0;
    height: 10px;
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.mission-slot-inner {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.22);
    transition: background 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: visible;
}

.mission-slot.filled .mission-slot-inner {
    background: linear-gradient(180deg, #ff8c20 0%, #e65100 100%);
    box-shadow: 0 0 4px rgba(255, 160, 0, 0.5), 0 0 8px rgba(255, 140, 0, 0.3);
    animation: breatheNeonSlot 2.5s ease-in-out infinite;
}

.mission-slot--win .mission-slot-inner {
    background: linear-gradient(180deg, #ff8c20 0%, #e65100 100%);
    box-shadow: 0 0 4px rgba(255, 160, 0, 0.5), 0 0 8px rgba(255, 140, 0, 0.3);
    animation: breatheNeonSlot 2.5s ease-in-out infinite;
}

.mission-slot--loss .mission-slot-inner {
    background: linear-gradient(180deg, #ff8c20 0%, #e65100 100%);
    box-shadow: 0 0 4px rgba(255, 160, 0, 0.5), 0 0 8px rgba(255, 140, 0, 0.3);
    animation: breatheNeonSlot 2.5s ease-in-out infinite;
}

/* Faíscas nos slots ativos */
.mission-slot.filled .mission-slot-inner::before,
.mission-slot.filled .mission-slot-inner::after,
.mission-slot--win .mission-slot-inner::before,
.mission-slot--win .mission-slot-inner::after,
.mission-slot--loss .mission-slot-inner::before,
.mission-slot--loss .mission-slot-inner::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffb040;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    filter: blur(0.5px);
    box-shadow: 0 0 3px rgba(255, 160, 0, 0.8), 0 0 6px rgba(255, 120, 0, 0.4);
}

.mission-slot.filled .mission-slot-inner::before,
.mission-slot--win .mission-slot-inner::before,
.mission-slot--loss .mission-slot-inner::before {
    left: 30%;
    top: 0;
    animation: sparkUp 2.5s ease-in-out infinite;
}

.mission-slot.filled .mission-slot-inner::after,
.mission-slot--win .mission-slot-inner::after,
.mission-slot--loss .mission-slot-inner::after {
    right: 25%;
    bottom: 0;
    animation: sparkDown 2.5s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* Delays diferentes por slot pra parecer orgânico */
.mission-slot:nth-child(1) .mission-slot-inner::before { animation-delay: 0s; }
.mission-slot:nth-child(1) .mission-slot-inner::after { animation-delay: 1.5s; }
.mission-slot:nth-child(2) .mission-slot-inner::before { animation-delay: 0.4s; }
.mission-slot:nth-child(2) .mission-slot-inner::after { animation-delay: 1.8s; }
.mission-slot:nth-child(3) .mission-slot-inner::before { animation-delay: 0.8s; }
.mission-slot:nth-child(3) .mission-slot-inner::after { animation-delay: 0.3s; }
.mission-slot:nth-child(4) .mission-slot-inner::before { animation-delay: 1.2s; }
.mission-slot:nth-child(4) .mission-slot-inner::after { animation-delay: 0.6s; }
.mission-slot:nth-child(5) .mission-slot-inner::before { animation-delay: 0.2s; }
.mission-slot:nth-child(5) .mission-slot-inner::after { animation-delay: 1.0s; }
.mission-slot:nth-child(6) .mission-slot-inner::before { animation-delay: 0.9s; }
.mission-slot:nth-child(6) .mission-slot-inner::after { animation-delay: 2.0s; }
.mission-slot:nth-child(7) .mission-slot-inner::before { animation-delay: 1.5s; }
.mission-slot:nth-child(7) .mission-slot-inner::after { animation-delay: 0.4s; }
.mission-slot:nth-child(8) .mission-slot-inner::before { animation-delay: 0.6s; }
.mission-slot:nth-child(8) .mission-slot-inner::after { animation-delay: 1.3s; }
.mission-slot:nth-child(9) .mission-slot-inner::before { animation-delay: 1.1s; }
.mission-slot:nth-child(9) .mission-slot-inner::after { animation-delay: 0.7s; }
.mission-slot:nth-child(10) .mission-slot-inner::before { animation-delay: 0.3s; }
.mission-slot:nth-child(10) .mission-slot-inner::after { animation-delay: 1.6s; }

@keyframes sparkUp {
    0%, 85%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.3);
    }
    88% {
        opacity: 1;
        transform: translateY(-8px) scale(0.8);
    }
    92% {
        opacity: 0.8;
        transform: translateY(-14px) scale(0.5);
    }
    96% {
        opacity: 0;
        transform: translateY(-18px) scale(0.2);
    }
}

@keyframes sparkDown {
    0%, 80%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.3);
    }
    83% {
        opacity: 1;
        transform: translateY(6px) scale(0.7);
    }
    88% {
        opacity: 0.7;
        transform: translateY(12px) scale(0.4);
    }
    93% {
        opacity: 0;
        transform: translateY(16px) scale(0.2);
    }
}

/* Número grande (15) */
.big-number-container {
    text-align: center;
    margin: 0 0 4px 0;
    flex-shrink: 0;
    width: 100%;
}

.big-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.big-number {
    font-size: 72px;
    font-weight: 900;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: white;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.12), 0 0 14px rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1;
    letter-spacing: -2px;
    animation: counterBreath 4s ease-in-out infinite, breatheGlowText 3.5s ease-in-out infinite;
}

/* Chamas ao lado do número quando rodada termina */
.big-number-flame {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-radius: 25px;
    padding: 8px 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    min-width: 60px;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.big-number-flame-left {
    order: -1;
}

.big-number-flame-right {
    order: 1;
}

/* Classes dinâmicas para vitória/derrota */
.big-number-flame.flame-winner {
    background: rgba(40, 120, 60, 0.75);
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.4);
}

.big-number-flame.flame-loser {
    background: rgba(180, 40, 40, 0.75);
    border-color: rgba(244, 67, 54, 0.5);
    box-shadow: 0 2px 12px rgba(244, 67, 54, 0.3);
}

.big-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
}

.flame-icon {
    font-size: 16px;
    line-height: 1;
    filter: drop-shadow(0 0 2px rgba(255, 140, 0, 0.8));
}

.flame-value {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1), 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Forma oval com número e chama */
.oval-number-container {
    text-align: center;
    margin: 5px 0 5px 0;
    flex-shrink: 0;
}

.oval-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(128, 128, 128, 0.6);
    border-radius: 25px;
    padding: 6px 12px;
    min-width: 50px;
}

.oval-number-value {
    font-size: 16px;
    font-weight: 800;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: white;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.oval-flame-icon {
    font-size: 12px;
}

/* Botão INICIAR */
.start-button-container {
    text-align: center;
    margin: 10px 0 12px 0;
    flex-shrink: 0;
}

.start-button-main {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 800;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.start-button-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.timer-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    display: none; /* Ocultar timer visualmente conforme imagem */
}

.timer {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.timer-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #ff9800, #f44336);
    transition: width 1s linear;
}

.timer-fase {
    font-size: 14px;
    color: #ccc;
}

.bombs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -30px 0 0 0;
    gap: 0px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    width: 100%;
    padding: 0 5px;
}

.bomb-item {
    position: relative;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: none;
    border: none !important;
    min-width: 150px;
    min-height: 180px;
    max-width: 48%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
    margin: 0 -10px;
}

.bomb-item[data-bomba="azul"] {
    background: transparent !important; /* SEM BACKGROUND */
    border: none !important; /* SEM BORDA */
}

.bomb-item[data-bomba="laranja"] {
    background: transparent !important; /* SEM BACKGROUND */
    border: none !important; /* SEM BORDA */
}

.bomb-item:hover {
    transform: translateY(-5px);
    /* Sem sombra no hover - apenas movimento */
}

.bomb-item.selected {
    border: none !important; /* SEM BORDA mesmo quando selecionado */
    background: transparent !important; /* SEM BACKGROUND */
    color: #000;
    /* Glow será aplicado na imagem, não no container */
}

/* Glow removido daqui - foi movido para .bomb-img acima */

.bomb-item.blinking {
    animation: blink 0.5s infinite;
}

.bomb-item.exploded {
    background: transparent !important; /* SEM BACKGROUND mesmo quando explodida */
    opacity: 1; /* Manter opacidade normal */
}

/* Ocultar textos de moedas */
.bomb-name,
.bomb-stats {
    display: none !important;
}

/* Container da bomba - APENAS BOMBA */
.bomb-with-explosion {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centralizar apenas a bomba */
    width: auto;
    height: auto;
    padding: 0;
    gap: 0;
    background: transparent;
    min-height: auto; /* Altura automática - apenas bomba */
    visibility: visible !important;
}

.bomb-image {
    width: 100%;
    height: 100%;
    max-width: 247px;
    max-height: 247px;
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    background: transparent;
    visibility: visible !important;
}

.bomb-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: bombFloat 5s ease-in-out infinite;
    transition: filter 0.12s linear;
}

.bomb-item[data-bomba="laranja"] .bomb-img {
    animation: bombFloat 5s ease-in-out infinite;
    animation-delay: -2.5s;
}

/* Glow circular embaixo das bombas */
.bomb-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 85%;
    height: 40px;
    border-radius: 50%;
    z-index: 0;
    filter: blur(10px);
    opacity: 1;
    animation: breatheGlowBomb 3s ease-in-out infinite;
}

/* Luz embaixo da bomba branca (azul) */
.bomb-item[data-bomba="azul"] .bomb-image::after {
    background: radial-gradient(ellipse at center, rgba(50,130,255,0.85) 0%, rgba(50,130,255,0.45) 22%, rgba(80,160,255,0.16) 48%, transparent 74%);
    box-shadow: 0 0 18px rgba(50,130,255,0.45), 0 0 42px rgba(50,130,255,0.18);
}

/* Luz embaixo da bomba laranja */
.bomb-item[data-bomba="laranja"] .bomb-image::after {
    background: radial-gradient(ellipse at center, rgba(255,140,0,0.9) 0%, rgba(255,140,0,0.48) 22%, rgba(255,180,60,0.16) 48%, transparent 74%);
    box-shadow: 0 0 18px rgba(255,140,0,0.45), 0 0 42px rgba(255,140,0,0.18);
}

/* Glow sutil ao redor da bomba (especialmente quando selecionada) */
.bomb-item.selected .bomb-img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) 
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) 
            drop-shadow(0 0 25px rgba(255, 255, 255, 0.4))
            drop-shadow(0 0 35px rgba(255, 255, 255, 0.2)) !important;
}

.bomb-item[data-bomba="laranja"].selected .bomb-img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) 
            drop-shadow(0 0 15px rgba(255, 152, 0, 0.6)) 
            drop-shadow(0 0 25px rgba(255, 152, 0, 0.4))
            drop-shadow(0 0 35px rgba(255, 152, 0, 0.2)) !important;
}

/* Conector curvo (pavio) - OCULTO */
.explosion-connector {
    display: none !important; /* OCULTAR PAVIO */
}

/* Explosão acima da bomba: oculta no jogo normal, visível na bomba perdedora (.exploded) */
.explosion-image {
    display: none;
}

.bomb-item.exploded .explosion-image {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 140%;
    height: auto;
    max-width: none;
    max-height: none;
    margin-left: -20%;
}

.explosion-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    opacity: 1 !important;
    position: relative;
    z-index: 2;
    display: block !important;
    visibility: visible !important;
}

/* Ajustar para bombas específicas */
.bomb-item[data-bomba="azul"] .explosion-connector {
    background: rgba(220, 220, 220, 1); /* Cinza quase branco (quase branco) */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateX(5px) rotate(15deg); /* Curvatura para direita */
}

.bomb-item[data-bomba="laranja"] .explosion-connector {
    background: rgba(255, 152, 0, 1); /* Laranja vibrante */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 200, 100, 0.5);
    border-right: 1px solid rgba(200, 100, 0, 0.3);
    transform: translateX(5px) rotate(15deg); /* Curvatura para direita */
}

.bomb-name {
    display: none !important;
}

.bet-section {
    background: transparent;
    border-radius: 0;
    padding: 6px 0;
    margin-top: 0;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}

.bet-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    width: 100%;
}

.bet-value-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bet-adjust-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.bet-adjust-btn:hover {
    background: rgba(255, 140, 66, 0.3);
    border-color: rgba(255, 140, 66, 0.5);
}

.bet-adjust-btn:active {
    transform: scale(0.95);
}

.bet-value-display {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(128, 128, 128, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 6px 14px;
}

.bet-fire-icon {
    height: 22px;
    width: auto;
    flex-shrink: 0;
}

.bet-input {
    flex: none;
    width: 60px;
    text-align: center;
    padding: 4px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: white;
    font-size: 18px;
    font-weight: bold;
    min-width: 0;
}

.bet-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.bet-input:focus {
    outline: none;
}

.bet-button {
    background: linear-gradient(180deg, #ff8c00, #e65100);
    color: white;
    border: 2px solid rgba(255, 180, 50, 0.9);
    padding: 18px 0;
    border-radius: 14px;
    font-weight: 800;
    font-family: 'Orbitron', 'Roboto', sans-serif;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 120, 0, 0.35), 0 0 22px rgba(255, 100, 0, 0.18), inset 0 0 18px rgba(255, 200, 100, 0.12), inset 0 -4px 8px rgba(0, 0, 0, 0.12);
    width: 92%;
    max-width: 450px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.bet-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    filter: blur(6px);
    animation: missionShine 3.5s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.bet-button:disabled::after {
    display: none;
}

.bet-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 16px rgba(255, 120, 0, 0.5), 0 0 32px rgba(255, 100, 0, 0.25), inset 0 0 24px rgba(255, 220, 120, 0.18);
    border-color: rgba(255, 220, 80, 1);
}

.bet-button:active:not(:disabled) {
    transform: scale(0.985);
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.25);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.bet-button:disabled {
    background: rgba(80, 80, 80, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    text-shadow: none;
    color: rgba(255, 255, 255, 0.4);
}

.admin-stats {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.admin-stats h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 5px;
}

.stat-value {
    font-weight: bold;
    font-size: 16px;
}

.guest-banner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.guest-banner h3 {
    display: none !important;
}

.guest-banner p {
    display: none !important;
}

.guest-buttons {
    display: none !important;
}

.guest-btn {
    display: none !important;
}

/* Remover qualquer banner de visitante criado dinamicamente */
#visitante-banner,
.visitante-banner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes breatheGlow {
    0%, 100% { 
        filter: brightness(1);
        box-shadow: 0 0 10px rgba(255, 140, 66, 0.3), 0 0 20px rgba(255, 140, 66, 0.15);
    }
    50% { 
        filter: brightness(1.08);
        box-shadow: 0 0 20px rgba(255, 140, 66, 0.5), 0 0 40px rgba(255, 140, 66, 0.25);
    }
}

@keyframes breatheGlowText {
    0%, 100% { 
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.6);
    }
    50% { 
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.9), 0 0 50px rgba(255, 255, 255, 0.5), 0 0 70px rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.6);
    }
}

@keyframes breatheGlowBomb {
    0%, 100% { 
        opacity: 0.4;
        transform: scaleX(1);
    }
    50% { 
        opacity: 0.7;
        transform: scaleX(1.1);
    }
}

@keyframes breatheNeonSlot {
    0%, 100% { 
        box-shadow: 0 0 4px rgba(255, 160, 0, 0.5), 0 0 8px rgba(255, 140, 0, 0.3);
    }
    50% { 
        box-shadow: 0 0 8px rgba(255, 160, 0, 0.8), 0 0 16px rgba(255, 140, 0, 0.5), 0 0 24px rgba(255, 120, 0, 0.2);
    }
}

@keyframes breatheGlowBtn {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 120, 0, 0.4), 0 0 30px rgba(255, 100, 0, 0.2), inset 0 0 25px rgba(255, 200, 100, 0.15), inset 0 -4px 10px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 160, 30, 0.7);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 120, 0, 0.6), 0 0 50px rgba(255, 100, 0, 0.35), inset 0 0 40px rgba(255, 220, 120, 0.25), inset 0 -4px 10px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 180, 50, 0.95);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes explosionOverlay {
    0% {
        opacity: 0;
        transform: scale(0.1);
    }
    20% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes explosionEffect {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
        filter: brightness(3) blur(0px);
    }
    10% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
        filter: brightness(2.5) blur(1px);
    }
    30% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
        filter: brightness(2) blur(0px);
    }
    60% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
        filter: brightness(1.5) blur(0px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
        filter: brightness(1) blur(2px);
    }
}

@keyframes explosion {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-5px); }
}

@keyframes valorRevelado {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

@keyframes pulseVencedora {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes resultadoJogador {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.bomb-stats {
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
}

/* Histórico de Partidas - bottom right */
.history-section {
    position: absolute;
    bottom: 8px;
    right: 12px;
    margin: 0;
    padding: 0;
    text-align: right;
    flex-shrink: 0;
    z-index: 5;
}

.history-dots {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.history-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.history-dot:hover {
    transform: scale(1.1);
}

/* Bomba Azul ganhou (Branco) */
.history-dot.azul {
    background: white;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Bomba Laranja ganhou (Laranja) */
.history-dot.laranja {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.4);
}

/* Slot sem rodada ainda (não confundir com vitória branca) */
.history-dot.historico-vazio {
    background: rgba(80, 80, 90, 0.85);
    box-shadow: none;
    opacity: 0.55;
}

/* Padrão de alvo (para a rodada atual no meio) */
.history-dot.atual {
    position: relative;
}

.history-dot.atual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.history-dot.atual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: white;
    z-index: 2;
}

/* Se for branca (azul) com padrão de alvo, usar borda escura */
.history-dot.azul.atual::before {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.history-dot.azul.atual::after {
    background: rgba(0, 0, 0, 0.3);
}

/* Empate: metade branca / metade laranja (distinto de vitória laranja) */
.history-dot.empate {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #ff6b35 50%, #ff8c42 100%);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
    position: relative;
}

.history-dot.empate::before,
.history-dot.empate::after {
    content: none;
}

/* Media query para telas maiores - centralizar como celular */
@media (min-width: 769px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .main-wrapper {
        max-width: 650px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .main-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-width: 100%;
    }

    .top-content-wrapper {
        flex-direction: row;
        gap: 4px;
        padding: 3px;
    }

    .content-wrapper {
        padding: 0 3px 3px 3px;
    }

    .chat-sidebar {
        flex: 2;
        min-width: 0;
        max-width: 50%;
        height: auto;
        max-height: 140px;
        padding: 6px;
        margin-top: 0;
    }

    .chat-messages {
        max-height: 95px;
        min-height: 60px;
        font-size: 11px;
        padding: 5px;
    }

    .main-container {
        padding: 0;
        margin: 0;
        min-height: auto;
        flex: 1;
    }

    .resultado-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        order: 3; /* Resultado aparece por último em mobile */
        max-height: none;
    }

    .top-bar {
        padding: 3px 0;
        gap: 5px;
        margin-bottom: 5px;
    }

    .user-icon {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .username-top {
        font-size: 11px;
    }

    .top-bar-coins {
        font-size: 12px;
    }

    .flame-icon-small {
        font-size: 12px;
    }

    .menu-toggle {
        padding: 4px;
        font-size: 44px;
        width: 52px;
        height: 52px;
    }

    .btn-aguardando-jogadores {
        padding: 6px 12px;
        font-size: 10px;
    }

    .mission-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .mission-progress-bar {
        height: 45px;
        min-height: 45px;
        max-height: 45px;
        border-radius: 25px;
    }

    .mission-prize-text {
        font-size: 10px;
    }

    .mission-prize-value {
        font-size: 18px;
    }

    .mission-flame-icon {
        font-size: 18px;
    }

    .mission-status-text {
        font-size: 10px;
    }

    .mission-checkmark {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .big-number {
        font-size: 70px;
    }

    .bombs-container {
        gap: 0px;
        flex-direction: row;
        margin: 0;
    }

    .bomb-item {
        padding: 0;
        min-width: 200px;
        min-height: 320px;
        max-width: 48%;
        margin: 0 -10px;
    }

    .bomb-image {
        max-width: 266px;
        max-height: 266px;
    }

    .bomb-name {
        display: none !important;
    }
    
    .bomb-stats {
        display: none !important;
    }

    .timer {
        font-size: 28px;
    }

    .bet-section {
        padding: 8px 10px;
    }

    .bet-input {
        padding: 4px 0;
        font-size: 16px;
    }

    .bet-button {
        padding: 18px 0;
        font-size: 26px;
        width: 90%;
    }

    .history-section {
        margin-top: 0;
        padding: 0;
        position: fixed;
        bottom: 8px;
        right: 10px;
        z-index: 100;
    }

    .round-info {
        position: fixed;
        bottom: 8px;
        left: 10px;
        z-index: 100;
    }

    .oval-number {
        padding: 6px 12px;
        min-width: 50px;
    }

    .oval-number-value {
        font-size: 16px;
    }

    .oval-flame-icon {
        font-size: 12px;
    }

    .start-button-main {
        padding: 8px 20px;
        font-size: 12px;
        min-width: 120px;
    }

    .history-dot {
        width: 14px;
        height: 14px;
    }

    .history-dots {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .main-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .top-content-wrapper {
        flex-direction: row;
        gap: 2px;
        padding: 2px;
        margin-bottom: 2px;
    }

    .content-wrapper {
        padding: 0 2px 2px 2px;
    }

    .chat-sidebar {
        flex: 2;
        min-width: 0;
        max-width: 50%;
        max-height: 120px;
        padding: 4px;
    }

    .chat-messages {
        max-height: 85px;
        font-size: 10px;
        min-height: 60px;
        padding: 3px;
        margin-bottom: 4px;
    }

    .chat-input {
        padding: 4px 6px;
        font-size: 10px;
    }

    .main-container {
        padding: 0;
        margin: 0;
        order: 1;
        min-height: auto;
    }
    
    .resultado-box-separado {
        flex: 1;
        min-width: 0;
        max-width: 34%;
        max-height: 120px;
        padding: 4px;
        margin-left: auto;
    }

    .top-bar {
        padding: 3px 0;
        gap: 6px;
    }

    .coins-info {
        padding: 5px 8px;
        font-size: 11px;
    }

    .username {
        font-size: 13px;
    }

    .mission-title {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .mission-progress-container {
        gap: 8px;
        margin-bottom: 5px;
    }

    .mission-progress-bar {
        height: 45px;
        min-height: 45px;
        max-height: 45px;
        border-radius: 25px;
    }

    .mission-progress-orange {
        padding: 0 8px;
        gap: 4px;
    }

    .mission-prize-text {
        font-size: 11px;
    }

    .mission-prize-value {
        font-size: 20px;
    }

    .mission-slots {
        margin-top: 4px;
        gap: 4px;
    }

    .mission-flame-icon {
        font-size: 20px;
    }

    .mission-checkmark {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .game-area {
        padding: 3px 2px 15px 2px;
        gap: 2px;
    }

    .resistance-mission {
        margin-bottom: 0;
        margin-top: 0;
        padding: 2px 2px;
    }

    .mission-header {
        margin-bottom: 2px;
    }

    .bombs-container {
        gap: 0px;
        flex-direction: row;
        margin: -50px 0 0 0;
    }

    .bomb-item {
        padding: 0;
        min-width: 0;
        min-height: 280px;
        max-width: 48%;
        flex: 1;
        margin: 0 -5px;
    }

    .bomb-image {
        width: 95%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }

    .bomb-item.exploded .explosion-image {
        width: 140%;
        height: auto;
        max-width: none;
        max-height: none;
        margin-left: -20%;
    }

    .bomb-name {
        display: none !important;
    }
    
    .bomb-stats {
        display: none !important;
    }

    .timer {
        font-size: 24px;
    }

    .big-number-container {
        margin: 4px 0 8px 0;
    }

    .oval-number-container {
        margin: 3px 0 3px 0;
    }

    .bet-section {
        padding: 0 10px;
        margin-bottom: 0;
        margin-top: -15px;
    }

    .bet-input {
        padding: 4px 0;
        font-size: 16px;
        width: 50px;
    }

    .bet-button {
        padding: 16px 0;
        font-size: 24px;
        width: 92%;
        max-width: none;
        letter-spacing: 1.2px;
    }

    .bet-adjust-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .bet-value-display {
        padding: 5px 12px;
    }

    .bet-fire-icon {
        height: 20px;
    }

    .history-section {
        margin-top: 0;
        padding: 0;
        position: fixed;
        bottom: 8px;
        right: 10px;
        z-index: 100;
    }

    .history-dot {
        width: 16px;
        height: 16px;
    }

    .history-dots {
        gap: 6px;
    }

    /* Ajustes para novos elementos em mobile */
    .round-info {
        position: fixed;
        bottom: 8px;
        left: 10px;
        z-index: 100;
    }

    .big-number {
        font-size: 60px;
    }

    .big-number-container {
        margin: 4px 0 4px 0;
    }

    .oval-number {
        padding: 4px 10px;
        min-width: 50px;
    }

    .oval-number-value {
        font-size: 18px;
    }

    .start-button-main {
        padding: 8px 20px;
        font-size: 14px;
        min-width: 150px;
        margin: 5px 0;
    }

    .btn-aguardando-jogadores {
        padding: 10px 20px;
        font-size: 12px;
    }

    .top-bar-left {
        gap: 8px;
    }

    .user-icon {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }

    .btn-entrar {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 18, 30, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.show {
    display: flex;
    opacity: 1;
}

.menu-content {
    background: #030b12;
    border: 1.5px solid rgba(255, 140, 66, 0.65);
    border-radius: 22px;
    padding: 0;
    text-align: center;
    width: 100%;
    position: relative;
    box-shadow: 0 0 26px rgba(255,122,24,0.38), 0 0 70px rgba(255,122,24,0.18), 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-overlay.show .menu-content {
    transform: scale(1);
}

.menu-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.menu-close:hover {
    background: rgba(255, 100, 40, 0.3);
    border-color: rgba(255, 140, 66, 0.4);
    color: #fff;
}

/* Banner MENU no topo */
.menu-banner {
    background: linear-gradient(180deg, rgba(255, 120, 40, 0.15) 0%, rgba(255, 120, 40, 0.03) 100%);
    border-radius: 20px 20px 0 0;
    padding: 18px 15px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 140, 66, 0.25);
    position: relative;
    overflow: hidden;
}

.menu-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 160, 60, 0.6), transparent);
}

.menu-title {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 5px;
    text-shadow: 
        0 0 10px rgba(255, 140, 0, 0.6),
        0 0 30px rgba(255, 100, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-title-icon {
    font-size: 20px;
    margin-right: 8px;
    filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.5));
}

/* Container dos botões */
.menu-buttons-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-button {
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    color: white;
    border: 1px solid rgba(255, 180, 100, 0.25);
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 0 10px rgba(255, 120, 40, 0.3),
        0 0 20px rgba(255, 120, 40, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.menu-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s ease;
}

.menu-button:hover::after {
    left: 100%;
}

.menu-button-icon {
    font-size: 18px;
    margin-right: 12px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    min-width: 24px;
    text-align: center;
}

.menu-button-text {
    flex: 1;
    text-align: left;
}

.menu-flame-icon {
    font-size: 16px;
    margin-left: 8px;
}

.menu-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 15px rgba(255, 120, 40, 0.5),
        0 0 30px rgba(255, 120, 40, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 200, 120, 0.4);
}

/* Logo no rodapé do menu */
.menu-logo {
    padding: 22px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.25) 100%);
    margin-top: auto;
    border-top: 1px solid rgba(255, 140, 66, 0.1);
}

.menu-logo-img {
    width: auto;
    height: 90px;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.3));
}

/* Botão INÍCIO fora do menu-content */
.menu-start-button {
    background: linear-gradient(135deg, #ff8c42, #e05f00);
    color: white;
    border: 1px solid rgba(255, 200, 100, 0.25);
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(255, 120, 40, 0.4),
        0 0 30px rgba(255, 100, 20, 0.2),
        0 4px 18px rgba(200, 80, 0, 0.4);
}

.menu-start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(220, 100, 0, 0.55);
    filter: brightness(1.08);
}

/* Pop-up "Como jogar" — Bottom Sheet com slides */
.como-jogar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.6);
}

.como-jogar-overlay.is-open {
    display: block;
}

.como-jogar-dialog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    height: 52vh;
    min-height: 300px;
    max-height: calc(100vh - 100px);
    background: linear-gradient(180deg, #1e3a5f 0%, #0d1b2a 100%);
    border-radius: 20px 20px 0 0;
    border-top: 2px solid rgba(255, 140, 66, 0.35);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.como-jogar-overlay.is-open .como-jogar-dialog {
    transform: translateY(0);
}

/* Handle de arrastar */
.como-jogar-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    margin: 10px auto 6px;
    flex-shrink: 0;
}

.como-jogar-close {
    position: absolute;
    top: 8px;
    left: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.como-jogar-close:hover {
    background: rgba(255, 100, 40, 0.3);
    color: #fff;
}

/* Container dos slides — horizontal */
.como-jogar-slides-track {
    flex: 1 1 0;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.como-jogar-slides-inner {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.como-jogar-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.como-jogar-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Indicadores (dots) */
.como-jogar-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    flex-shrink: 0;
}

.como-jogar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.como-jogar-dot.active {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
    transform: scale(1.2);
}

/* Botão PRÓXIMO no bottom sheet */
.como-jogar-next {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    display: block;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-transform: uppercase;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.45);
    flex-shrink: 0;
}

.como-jogar-next:hover {
    filter: brightness(1.08);
}

.visually-hidden-como-jogar {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Esconder texto original do modal - script inline substitui */
#resultado-vencedor {
    display: none !important;
}

#resultado-detalhes {
    color: transparent;
    transition: color 0s;
}

#resultado-detalhes[data-ready="true"] {
    color: white;
}

/* ============================================
   MICRO-MOVIMENTO ATMOSFÉRICO
   ============================================ */

/* 1. CONTADOR CENTRAL - respiração de tensão */
@keyframes counterBreath {
    0%, 100% {
        transform: scale(1);
        opacity: 0.96;
    }
    50% {
        transform: scale(1.025);
        opacity: 1;
    }
}

/* 3. BOMBAS - flutuação mínima */
@keyframes bombFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* 5. BARRA MISSÃO - brilho interno móvel */
@keyframes missionShine {
    0% { left: -30%; }
    100% { left: 130%; }
}

/* 7. CHAT - mensagens entrando suave */
@keyframes fadeMessage {
    0% { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 8. FUNDO - gradiente ambiente respirando */
@keyframes ambientMove {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* 8. FUNDO - gradiente ambiente respirando */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 140, 0, 0.03), transparent 60%);
    animation: ambientMove 12s ease infinite;
    pointer-events: none;
    z-index: 0;
}

/* Neutralizar quadrado verde da bomba vencedora */
.bomb-item.vencedora {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Seta de seleção - triângulo laranja neon */
#seta-aposta-usuario {
    position: absolute !important;
    bottom: 5% !important;
    left: 45% !important;
    transform: translateX(-50%) !important;
    z-index: 20 !important;
    text-align: center !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

#seta-aposta-usuario img {
    display: none !important;
}

#seta-aposta-usuario::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 17px solid #ff8c00;
    filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.8)) drop-shadow(0 0 12px rgba(255, 120, 0, 0.4));
    animation: setaNeon 1.5s ease-in-out infinite;
}

@keyframes setaNeon {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.6)) drop-shadow(0 0 8px rgba(255, 120, 0, 0.3));
        transform: translateY(0);
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.9)) drop-shadow(0 0 16px rgba(255, 120, 0, 0.5));
        transform: translateY(-3px);
    }
}

/* Sparkles/faíscas nos slots ativos da missão */
@keyframes sparkUp1 {
    0%, 85%, 100% { opacity: 0; transform: translateY(0) scale(0.3); }
    10% { opacity: 1; transform: translateY(-8px) scale(0.6); }
    25% { opacity: 0.6; transform: translateY(-16px) scale(0.4); }
    40% { opacity: 0; transform: translateY(-22px) scale(0.2); }
}

@keyframes sparkUp2 {
    0%, 70%, 100% { opacity: 0; transform: translateY(0) scale(0.2); }
    15% { opacity: 0.9; transform: translateY(-6px) scale(0.5); }
    30% { opacity: 0.4; transform: translateY(-14px) scale(0.3); }
    45% { opacity: 0; transform: translateY(-20px) scale(0.1); }
}

@keyframes sparkSide {
    0%, 80%, 100% { opacity: 0; transform: translate(0, 0) scale(0.2); }
    8% { opacity: 0.8; transform: translate(4px, -6px) scale(0.5); }
    20% { opacity: 0.3; transform: translate(7px, -12px) scale(0.3); }
    35% { opacity: 0; transform: translate(10px, -16px) scale(0.1); }
}

.mission-slot.filled .mission-slot-inner::before,
.mission-slot--win .mission-slot-inner::before,
.mission-slot--loss .mission-slot-inner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 30%;
    width: 3px;
    height: 3px;
    background: #ffaa00;
    border-radius: 50%;
    box-shadow: 0 0 4px #ff8c00, 0 0 8px rgba(255, 140, 0, 0.5);
    animation: sparkUp1 2.5s ease-out infinite;
    pointer-events: none;
    z-index: 10;
}

.mission-slot.filled .mission-slot-inner::after,
.mission-slot--win .mission-slot-inner::after,
.mission-slot--loss .mission-slot-inner::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 25%;
    width: 2px;
    height: 2px;
    background: #ffd060;
    border-radius: 50%;
    box-shadow: 0 0 3px #ff8c00, 0 0 6px rgba(255, 160, 0, 0.4);
    animation: sparkUp2 2.5s ease-out infinite;
    animation-delay: 0.8s;
    pointer-events: none;
    z-index: 10;
}

/* Stagger the spark timing per slot */
.mission-slot:nth-child(2) .mission-slot-inner::before { animation-delay: 0.3s; }
.mission-slot:nth-child(2) .mission-slot-inner::after { animation-delay: 1.1s; }
.mission-slot:nth-child(3) .mission-slot-inner::before { animation-delay: 0.7s; }
.mission-slot:nth-child(3) .mission-slot-inner::after { animation-delay: 1.5s; }
.mission-slot:nth-child(4) .mission-slot-inner::before { animation-delay: 0.1s; }
.mission-slot:nth-child(4) .mission-slot-inner::after { animation-delay: 0.9s; }
.mission-slot:nth-child(5) .mission-slot-inner::before { animation-delay: 0.5s; }
.mission-slot:nth-child(5) .mission-slot-inner::after { animation-delay: 1.3s; }
.mission-slot:nth-child(6) .mission-slot-inner::before { animation-delay: 0.9s; }
.mission-slot:nth-child(6) .mission-slot-inner::after { animation-delay: 1.7s; }
.mission-slot:nth-child(7) .mission-slot-inner::before { animation-delay: 0.2s; }
.mission-slot:nth-child(7) .mission-slot-inner::after { animation-delay: 1.0s; }
.mission-slot:nth-child(8) .mission-slot-inner::before { animation-delay: 0.6s; }
.mission-slot:nth-child(8) .mission-slot-inner::after { animation-delay: 1.4s; }
.mission-slot:nth-child(9) .mission-slot-inner::before { animation-delay: 0.4s; }
.mission-slot:nth-child(9) .mission-slot-inner::after { animation-delay: 1.2s; }
.mission-slot:nth-child(10) .mission-slot-inner::before { animation-delay: 0.8s; }
.mission-slot:nth-child(10) .mission-slot-inner::after { animation-delay: 1.6s; }

/* Garantir position relative no slot-inner */
.mission-slot-inner {
    position: relative;
    overflow: visible !important;
}

/* Remove blue tap highlight and text selection on everything except bet input */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

/* Allow selection only on bet input and chat input */
.bet-input,
.chat-input,
input[type="text"],
input[type="number"],
textarea {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

/* Parar animação na bomba explodida pra scale funcionar */
.bomb-item.exploded .bomb-img {
    animation: none !important;
}

/* ===== BBCH RESULTADO V2 (glow + cascata + sweep + scroll) ===== */

/* Banner RESULTADO: degrade + acabamento */
.resultado-title-separado {
    background: linear-gradient(90deg, #ff9800, #ff5722);
    color: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    text-align: center;
    font-weight: 800;
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(255, 87, 34, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* Sweep de luz no banner (classe .sweep adicionada pelo JS na revelacao) */
.resultado-title-separado.sweep::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    animation: bbchSweep 1.1s ease-out;
}
@keyframes bbchSweep { from { left: -60%; } to { left: 120%; } }

/* AGUARDANDO JOGADORES: mesmo estilo do banner RESULTADO (opcao B) */
.resultado-content-separado .btn-aguardando-jogadores {
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: default;
    pointer-events: none;
    background: linear-gradient(90deg, #ff9800, #ff5722);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-shadow: 0 3px 8px rgba(255, 87, 34, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Box: nao clipar a lista (a propria lista limita a altura) */
.resultado-box-separado {
    max-height: none;
}

/* Lista unica: tudo rola junto */
.lista-jogadores {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 108px;   /* fechado: mostra ~3 */
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.lista-jogadores.aberto {
    max-height: 168px;   /* aberto: ~4-5 + scroll interno */
    overflow-y: auto;
    padding-right: 2px;
}
.lista-jogadores::-webkit-scrollbar { width: 4px; }
.lista-jogadores::-webkit-scrollbar-thumb { background: rgba(255,140,66,0.5); border-radius: 4px; }
.lista-jogadores::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }

/* Numero: pilula (mais espaco pro nome) */
.resultado-simples .numero {
    min-width: 26px;
    height: 22px;
    border-radius: 999px;
    padding: 0 7px;
}

/* GLOW VERDE ESTATICO nos vencedores */
.lista-jogadores.fx-glow .resultado-simples.ganhou {
    background: rgba(76, 175, 80, 0.12);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.45), inset 0 0 0 1px rgba(76, 175, 80, 0.25);
}
.lista-jogadores.fx-glow .resultado-simples.ganhou .numero {
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.8);
}

/* ENTRADA EM CASCATA (classe .revelando adicionada pelo JS na revelacao) */
.lista-jogadores.revelando .resultado-simples {
    opacity: 0;
    transform: translateY(6px);
    animation: bbchEntrar 0.35s ease forwards;
}
@keyframes bbchEntrar { to { opacity: 1; transform: translateY(0); } }
.lista-jogadores.revelando .resultado-simples:nth-child(1) { animation-delay: 0s; }
.lista-jogadores.revelando .resultado-simples:nth-child(2) { animation-delay: 0.06s; }
.lista-jogadores.revelando .resultado-simples:nth-child(3) { animation-delay: 0.12s; }
.lista-jogadores.revelando .resultado-simples:nth-child(4) { animation-delay: 0.18s; }
.lista-jogadores.revelando .resultado-simples:nth-child(5) { animation-delay: 0.24s; }
.lista-jogadores.revelando .resultado-simples:nth-child(6) { animation-delay: 0.30s; }
.lista-jogadores.revelando .resultado-simples:nth-child(n+7) { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
    .lista-jogadores.revelando .resultado-simples { animation: none; opacity: 1; transform: none; }
    .resultado-title-separado.sweep::after { animation: none; }
}
/* ===== FIM BBCH RESULTADO V2 ===== */


/* ===== Menu redesign (arte no topo + glow + sparkles) ===== */
.menu-stage {
    position: relative;
    width: 90%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
.menu-hero {
    display: block;
    width: 100%;
    height: auto;
}
.menu-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 3;
}
.menu-sk {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle, #fff 0%, #ffd48a 38%, #ff7a18 72%, rgba(255,122,24,0) 100%);
    filter: drop-shadow(0 0 5px rgba(255,150,60,0.85));
    animation: menu-twk var(--d, 2s) ease-in-out forwards;
}
@keyframes menu-twk {
    0%   { opacity: 0; transform: translate(0,0) scale(.2); }
    25%  { opacity: 1; transform: translate(calc(var(--dx,0px)*.4), calc(var(--dy,0px)*.4)) scale(1); }
    65%  { opacity: .85; }
    100% { opacity: 0; transform: translate(var(--dx,0px), var(--dy,0px)) scale(.4); }
}
