/* ==========================================================
   PIX DO MILHÃO - AÇÃO OFICIAL "RASPOU, ACHOU, É PIX"
   Layout Oficial Completo 100% Tela Cheia Dourada
   ========================================================== */

:root {
    --pdm-gold-bg: #c98811;
    --pdm-green-btn: #00a84f;
    --pdm-green-hover: #008f43;
}

/* CONTAINER 100% TELA CHEIA (FULLSCREEN OVERLAY) */
.fullscreen-raspadinha-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: radial-gradient(circle at 50% 20%, #e09d1e 0%, #c4830b 55%, #8f5702 100%);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 16px 36px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

/* CONTEÚDO CENTRALIZADO */
.official-raspadinha-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* BOTÃO DE FECHAR NO TOPO DIREITO (X) */
.official-top-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(4px);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.15s ease, transform 0.15s ease;
}

.official-top-close-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

/* LOGO IMAGEM OFICIAL /raspou.png */
.official-logo-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.official-logo-img {
    width: 82%;
    max-width: 250px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
    animation: gentleFloat 3s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-4px); }
}

/* SUB HEADER: COMO JOGAR & CONTADOR DE TENTATIVAS */
.official-subbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.btn-como-jogar-pill {
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-como-jogar-pill:hover {
    background: rgba(0, 0, 0, 0.38);
}

.tentativas-counter-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.counter-digits-box {
    display: flex;
    gap: 3px;
}

.counter-digit-box {
    background: #facc15;
    color: #713f12;
    font-weight: 900;
    font-size: 14.5px;
    width: 23px;
    height: 25px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #fef08a;
}

/* AS 3 BARRAS RETANGULARES VERTICAIS */
.scratch-bars-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 16px;
}

.scratch-bar-row {
    width: 100%;
    height: 84px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 3.5px solid #fde047;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    cursor: pointer;
    touch-action: none;
}

.scratch-bar-row.winner-bar-glow {
    border-color: #22c55e;
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.95), inset 0 0 12px rgba(34, 197, 94, 0.4);
    animation: pulseWinnerBar 1.2s infinite alternate;
}

@keyframes pulseWinnerBar {
    0% { transform: scale(1); }
    100% { transform: scale(1.025); }
}

/* Conteúdo revelado debaixo da barra */
.scratch-bar-underneath {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.scratch-bar-underneath.is-winner {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.bar-prize-icon {
    font-size: 34px;
}

.bar-prize-val {
    font-size: 21px;
    font-weight: 900;
    color: #111827;
    letter-spacing: 0.2px;
}

.scratch-bar-underneath.is-winner .bar-prize-val {
    color: #15803d;
    font-size: 23px;
}

.bar-prize-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.scratch-bar-underneath.is-winner .bar-prize-label {
    color: #166534;
}

/* Canvas da raspadinha na barra */
.scratch-bar-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

/* BOTÃO VERDE RASPAR TODAS */
.btn-raspar-todas-official {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 60%, #15803d 100%);
    color: #ffffff;
    border: 2px solid #86efac;
    width: 100%;
    height: 52px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-raspar-todas-official:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-raspar-todas-official:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* CHECKBOX RASPAR AUTOMATICAMENTE */
.auto-scratch-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.custom-white-checkbox {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2);
    color: #16a34a;
    font-size: 13px;
    font-weight: 900;
}

/* CARD DE RESULTADO DA TENTATIVA (1 A 8) */
.official-attempt-result-box {
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 14px;
    margin-top: 14px;
    text-align: center;
    animation: fadeIn 0.25s ease;
}

.attempt-result-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.btn-proxima-tentativa {
    background: #ffffff;
    color: #111827;
    border: none;
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.15s ease;
}

.btn-proxima-tentativa:hover {
    background: #f8fafc;
}

/* POPUP CELEBRATÓRIO "PARABÉNS VOCÊ GANHOU 9 RASPADINHAS" */
.welcome-raspadinhas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.25s ease;
}

.welcome-raspadinhas-modal {
    background: #ffffff;
    border-radius: 24px;
    padding: 26px 20px 22px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 2px solid #fde047;
    animation: scaleUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes scaleUpModal {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.welcome-badge-icon {
    width: 68px;
    height: 68px;
    margin: -10px auto 10px;
    font-size: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIcon 1s infinite alternate ease-in-out;
}

@keyframes bounceIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

.welcome-tag-pill {
    background: #fef08a;
    color: #713f12;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-modal-title {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.25;
}

.welcome-modal-subtitle {
    font-size: 13.5px;
    color: #4b5563;
    margin: 0 0 16px;
    line-height: 1.4;
}

.welcome-highlight-box {
    background: #fdfaf3;
    border: 1.5px dashed #f59e0b;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.welcome-highlight-box strong {
    color: #b45309;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.welcome-highlight-box span {
    color: #6b7280;
    font-size: 12px;
}

.btn-start-raspadinhas-cta {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 60%, #15803d 100%);
    color: #ffffff;
    border: 2px solid #86efac;
    width: 100%;
    height: 50px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
    transition: transform 0.15s ease;
}

.btn-start-raspadinhas-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

/* CARD FINAL DO ATENDENTE WHATSAPP (RODADA 9) */
.official-inpage-victory-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 26px 20px;
    color: #111827;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.victory-check-circle {
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    background: #dcfce7;
    border: 2px solid #86efac;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #15803d;
    font-size: 32px;
}

.victory-h2 {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
    margin: 0 0 6px;
}

.victory-sub {
    color: #4b5563;
    font-size: 13.5px;
    margin: 0 0 16px;
}

.victory-whatsapp-card {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 14px;
    padding: 14px;
    text-align: left;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.victory-whatsapp-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.victory-whatsapp-body h4 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 800;
    color: #166534;
}

.victory-whatsapp-body p {
    margin: 0;
    font-size: 12.5px;
    color: #374151;
    line-height: 1.4;
}

.victory-lead-table {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    margin-bottom: 14px;
}

.victory-lead-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
}

.victory-lead-row:last-child {
    border-bottom: none;
}

.victory-lead-lbl {
    color: #64748b;
}

.victory-lead-val {
    color: #111827;
    font-weight: 700;
}

.pdm-legal-note {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    margin-top: 14px;
    line-height: 1.35;
}
