@font-face {
    font-family: 'Gotham-Medium';
    src: url('../fonts/Gotham-Medium.otf') format('opentype');
}

@font-face {
    font-family: 'Gotham-Black';
    src: url('../fonts/Gotham-Black.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gotham-Medium', Arial, sans-serif;
    background: #000 url('../images/pc.png') center center / cover no-repeat;
    overflow: hidden;
    padding-top: 50px;
    margin: 0;
    width: 100vw;
    height: 100vh;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Header com contador */
.top-bar {
    background-color: #48ff4f;
    color: #000;
    font-family: 'Gotham-Medium', sans-serif;
    text-align: center;
    padding: 11px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.top-bar span {
    font-weight: bold;
    font-family: 'Gotham-Black', sans-serif;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
    border-radius: 20px;
    padding: 30px 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/scratch-7.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 0;
}

.modal-content > * {
    position: relative;
    z-index: 1;
}

.top-black-bar {
    background: rgba(0, 0, 0, 0.85);
    margin: -30px -20px 20px -20px;
    padding: 30px 20px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.modal-content h1 {
    font-family: 'Gotham-Black', sans-serif;
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    margin-bottom: 0;
}

.highlight {
    color: #48ff4f;
    font-weight: bold;
}

/* Moldura/Mural */
.mural-frame {
    position: relative;
    margin: 20px auto 0 auto;
    display: flex;
    justify-content: center;
    max-width: 450px;
    z-index: 10;
    pointer-events: none;
}

.mural-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

/* Container da Raspadinha */
.scratch-container {
    background: #48ff4f;
    border-radius: 15px;
    padding: 20px;
    margin: -380px auto 20px auto;
    position: relative;
    border: 3px solid #ffffff;
    z-index: 1;
    max-width: 350px;
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: 350px;
}

#scratch-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    touch-action: none;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

/* Modal de Vitória */
.modal-vitoria {
    background: #000 !important;
    border: 2px solid #48ff4f;
}

.modal-vitoria::before {
    display: none;
}

.mega-title {
    color: #48ff4f;
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(72, 255, 79, 0.5);
}

.vitoria-subtitle {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: bold;
    padding: 0 30px;
}

/* Prêmios */
.premios {
    margin: 30px 0;
}

.premios a {
    text-decoration: none;
    color: inherit;
}

.premio-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(72, 255, 79, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.premio-item:hover {
    border-color: #48ff4f;
    background: rgba(72, 255, 79, 0.1);
}

.premio-emoji {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.premio-content {
    text-align: left;
    flex: 1;
}

.premio-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #48ff4f;
}

.premio-text {
    font-size: 13px;
}

/* Botões */
.botoes {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.btn-resgatar {
    flex: 1;
    background: #48ff4f;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Gotham-Black', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-resgatar:hover {
    background: #3de042;
    transform: scale(1.05);
}

.btn-fechar {
    flex: 1;
    background: transparent;
    color: #999;
    border: 2px solid #333;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Gotham-Medium', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-fechar:hover {
    border-color: #666;
    color: #fff;
}

.logo-jonbet {
    margin-top: 20px;
}

.logo-jonbet img {
    max-width: 150px;
    height: auto;
    border-radius: 15px;
}

/* Responsivo */
@media (max-width: 480px) {
    body {
        background: #000 url('../images/mobile.png') center center / cover no-repeat;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .modal-content h1 {
        font-size: 24px;
    }
    
    .scratch-container {
        max-width: 310px;
        min-height: 310px;
        padding: 20px;
        padding-top: 20px;
        padding-bottom: 30px;
        margin: -330px auto 80px auto;
    }
    
    .mega-title {
        font-size: 28px;
    }
}
