/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
}

html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Barlow', sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Container principal do jogo */
.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Canvas do jogo */
#gameCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    background: transparent;
    image-rendering: pixelated;
    border: none;
    margin: 0;
    padding: 0;
}

/* Overlay UI */
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Telas do jogo */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    padding: clamp(20px, 3vh, 40px);
    box-sizing: border-box;
    margin: 0;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Tela de Capa - Exatamente como a imagem */
.cover-content {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: filter 0.3s ease;
}

/* Performance: remover blur e sombras na capa */
.cover-content,
.cover-content * {
    filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* Texto da versão */
.version-text {
    position: absolute;
    top: 20px;
    right: 50%;
    transform: translateX(50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: normal;
    z-index: 10;
}

/* Botão Admin discreto */
.admin-access {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.admin-access:hover {
    color: rgba(255, 255, 255, 0.8);
}

.cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a237e 0%, #0d1b4d  50%, #0a0e2e 100%);
    z-index: 1;
    margin: 0;
    padding: 0;
}

/* Grid/Grade no fundo */
.cover-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-image: 
        linear-gradient(rgba(0, 150, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 150, 255, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
}

/* Logo do Jogo */
.cover-logo-container {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5;
}

.cover-logo-image {
    width: clamp(300px, 60vw, 500px);
    height: auto;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)) brightness(1);
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 50px rgba(0, 255, 255, 0.4)) brightness(1.1);
    }
}

.cover-middle {
    position: absolute;
    top: 32%;
    left: 0;
    width: 100%;
    height: 67%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2% 5%;
    box-sizing: border-box;
}

.cover-plane {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(3500px, 70vw, 700px);
    height: clamp(2000px, 35vh, 350px);
    background-image: url('imgs/capa/01-AVIAO.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: planeFloat 4s ease-in-out infinite;
    z-index: 4;
    filter: none;
}

.cover-plane::after {
    content: '✈️';
    opacity: 0;
}

@keyframes planeFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

/* Logo Principal acima do Avião */
.cover-main-logo {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    pointer-events: none;
}

.main-logo-image {
    width: clamp(300px, 55vw, 900px);
    height: auto;
    image-rendering: crisp-edges;
    filter: none;
    animation: none;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)) 
                drop-shadow(0 0 30px rgba(0, 150, 255, 0.3));
    }
    50% { 
        transform: translateY(-10px) scale(1.02);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)) 
                drop-shadow(0 0 40px rgba(0, 150, 255, 0.5));
    }
}

.cover-buttons {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(15px, 3vh, 25px);
    width: 100%;
    z-index: 6;
}

.cover-button {
    width: clamp(320px, 60vw, 450px);
    height: clamp(70px, 10vh, 90px);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.button-text {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 900;
    color: #0D47A1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    z-index: 2;
    position: relative;
}

/* Texto do botão 2 em azul escuro */
.cover-button-2 .button-text {
    color: #0D47A1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 3vw, 1.4rem);
}

/* Ícone de troféu */
.trophy-icon {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-right: 8px;
    filter: none;
    animation: none;
}

@keyframes trophyGlow {
    0% {
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8)) brightness(1);
    }
    100% {
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8)) brightness(1.3);
    }
}

.cover-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.cover-button:hover::before {
    transform: translateX(100%);
}

.cover-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.cover-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Botão 1 - COMEÇAR (Azul Claro como na imagem) */
.cover-button-1 {
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 25%, #03A9F4 50%, #0288D1 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cover-button-1::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 13px;
    pointer-events: none;
}

.cover-button-1:hover {
    background: linear-gradient(135deg, #81D4FA 0%, #4FC3F7 25%, #29B6F6 75%, #03A9F4 100%);
    box-shadow: 0 12px 35px rgba(79, 195, 247, 0.4);
}

/* Botão 2 - RANKING (Azul Claro menor como na imagem) */
.cover-button-2 {
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 25%, #03A9F4 50%, #0288D1 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: clamp(280px, 50vw, 380px);
    height: clamp(60px, 8vh, 80px);
}

.cover-button-2:hover {
    background: linear-gradient(135deg, #81D4FA 0%, #4FC3F7 25%, #29B6F6 75%, #03A9F4 100%);
    box-shadow: 0 12px 35px rgba(79, 195, 247, 0.4);
}

/* Animação de pulsação sutil */
@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
}

/* Animações já aplicadas nas regras dos botões acima */

.cover-logo {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 20%;
    max-width: 1000px;
    max-height: 3000px;
    background-image: url('imgs/capa/01-LOGO.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    animation: logoGlow 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.cover-logo::after {
    content: 'QYON PLANE SHOOTER';
    opacity: 0;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6)); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Tela de Ranking - Overlay igual ao registro */
#rankingScreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#rankingScreen.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

#rankingScreen:not(.show) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.ranking-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 40px);
    box-sizing: border-box;
}

/* Container do box de ranking com maior transparência */
.ranking-box {
    position: relative;
    background: rgba(10, 10, 10, 0.1);
    border-radius: clamp(15px, 2vw, 25px);
    padding: clamp(30px, 5vh, 50px);
    border: 2px solid rgba(0, 212, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
    max-width: clamp(400px, 80vw, 600px);
    width: 100%;
    z-index: 1;
    margin-top: clamp(80px, 12vh, 120px);
    max-height: 80vh;
    overflow-y: auto;
}

/* Título do ranking */
.ranking-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(30px, 5vh, 40px);
    z-index: 5;
}

.ranking-title .title-qyon {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(0, 212, 255, 0.6);
    letter-spacing: clamp(2px, 1vw, 6px);
    margin-bottom: clamp(5px, 1vh, 10px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.ranking-title .title-superjet {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd700, #ff6b35);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    letter-spacing: clamp(1px, 0.6vw, 4px);
    animation: gradientShift 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    margin-bottom: clamp(15px, 3vh, 25px);
}

/* Subtítulo "RANKING" */
.ranking-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    color: #00d4ff;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    z-index: 5;
}

/* Display do ranking */
.ranking-display {
    max-width: clamp(400px, 80vw, 600px);
    text-align: left;
    margin-bottom: clamp(30px, 5vh, 40px);
    z-index: 5;
}

.ranking-list {
    max-height: clamp(300px, 40vh, 400px);
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: clamp(8px, 1.5vw, 12px);
    padding: clamp(15px, 3vh, 20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(8px, 2vh, 12px);
    margin: clamp(4px, 1vh, 6px) 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: clamp(6px, 1vw, 8px);
    border-left: 3px solid #00d4ff;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.ranking-item.highlight {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-left-color: gold;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.ranking-position {
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #00d4ff;
    min-width: clamp(40px, 8vw, 60px);
    text-align: left;
}

.ranking-name {
    flex: 1;
    text-align: left;
    margin: 0 clamp(20px, 4vw, 30px);
    color: white;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    font-weight: 500;
}

.ranking-score {
    font-weight: bold;
    color: #00d4ff;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    text-align: right;
    min-width: clamp(60px, 12vw, 80px);
}

/* ===== TELA DE USUÁRIO RETORNANDO ===== */
#returningUserScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#returningUserScreen.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

#returningUserScreen:not(.show) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Logo específica para tela de usuário retornando - posicionada mais acima */
#returningUserScreen .overlay-main-logo {
    top: clamp(50px, 8vh, 120px);
    z-index: 1002;
}

#returningUserScreen .overlay-logo-image {
    width: clamp(250px, 50vw, 350px);
}

.returning-user-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 40px);
    box-sizing: border-box;
}

.returning-user-box {
    position: relative;
    background-image: url('imgs/premio A/06-BOX.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: clamp(15px, 2vw, 25px);
    padding: clamp(70px, 10vh, 100px);
    max-width: clamp(500px, 90vw, 750px);
    width: 100%;
    opacity: 1;
    z-index: 1001;
    margin-top: clamp(80px, 12vh, 120px);
    text-align: center;
    min-height: clamp(1000px, 95vh, 1200px);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.returning-user-top {
    flex: 0.5;
}

.returning-user-middle {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 3vh, 30px);
    margin-top: clamp(60px, 5vh, 45px);
}

.returning-user-bottom {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(30px, 4vh, 40px);
    padding-bottom: clamp(40px, 6vh, 60px);
}

.returning-user-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 700;
    color: #00d4ff;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    line-height: 1.2;
    margin-bottom: clamp(20px, 3vh, 30px);
}

.returning-user-prize {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(10px, 2vh, 15px);
}

.returning-user-prize .prize-image {
    width: clamp(120px, 25vw, 180px);
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.returning-user-competition {
    text-align: center;
    margin-bottom: clamp(20px, 3vh, 30px);
}

.returning-user-competition .competition-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 600;
    color: white;
    margin-bottom: clamp(10px, 2vh, 15px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.returning-user-competition .competition-text {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 400;
    color: white;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.returning-user-competition .highlight-prize {
    color: #00d4ff;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.returning-user-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: clamp(20px, 3vh, 30px);
}

.returning-user-play-again-btn {
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 25%, #03A9F4 50%, #0288D1 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    width: clamp(200px, 40vw, 320px);
    height: clamp(50px, 8vh, 70px);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
    overflow: hidden;
}

.returning-user-play-again-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    border-radius: 50px;
    pointer-events: none;
}

.returning-user-play-again-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 48px;
    pointer-events: none;
}

.returning-user-play-again-btn:hover {
    background: linear-gradient(135deg, #81D4FA 0%, #4FC3F7 25%, #29B6F6 75%, #03A9F4 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 195, 247, 0.4);
}

.returning-user-play-again-btn:hover::before {
    transform: translateX(100%);
}

.returning-user-play-again-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.returning-user-play-again-btn .btn-text {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 900;
    color: #0D47A1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    position: relative;
}

/* ===== TELA DE PRIMEIRO JOGO ===== */
#firstGameScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#firstGameScreen.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

#firstGameScreen:not(.show) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Logo específica para tela de primeiro jogo - posicionada mais acima */
#firstGameScreen .overlay-main-logo {
    top: clamp(50px, 8vh, 120px);
    z-index: 1002;
}

#firstGameScreen .overlay-logo-image {
    width: clamp(250px, 50vw, 350px);
}

.first-game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 40px);
    box-sizing: border-box;
}

.first-game-box {
    position: relative;
    background-image: url('imgs/premio A/06-BOX.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: clamp(15px, 2vw, 25px);
    padding: clamp(70px, 10vh, 100px);
    max-width: clamp(500px, 90vw, 750px);
    width: 100%;
    opacity: 1;
    z-index: 1001;
    margin-top: clamp(80px, 12vh, 120px);
    text-align: center;
    min-height: clamp(1000px, 95vh, 1200px);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.first-game-top {
    flex: 0.5;
}

.first-game-middle {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2vh, 15px);
    margin-top: clamp(60px, 5vh, 45px);
}

.first-game-bottom {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(5px, 1vh, 10px);
    padding-bottom: clamp(40px, 6vh, 60px);
}

.first-game-subtitle {
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin: 0;
    font-weight: 400;
}

.first-game-prize {
    color: #4fc3f7;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
    letter-spacing: 2px;
    /* Animação de suspense */
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.first-game-prize.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Animação de pulsação para dar mais suspense */
@keyframes prize-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.first-game-prize.animate-in {
    animation: prize-pulse 2s ease-in-out infinite;
}

.first-game-competition {
    margin: 0;
    width: 100%;
}

/* Aparição com atraso (genérica, usada no first-game-competition) */
.delayed-show {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.delayed-show.visible {
    opacity: 1;
    transform: translateY(0);
}

.competition-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 3vw, 25px);
    flex-wrap: nowrap;
    flex-direction: row-reverse;
}

.competition-text-section {
    flex: 1 1 auto;
    min-width: clamp(180px, 35vw, 250px);
    max-width: 60%;
}

.competition-title {
    color: #4fc3f7;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: bold;
    margin-bottom: clamp(10px, 2vh, 15px);
    text-align: left;
}

.competition-text {
    color: white;
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    line-height: 1.5;
    text-align: left;
}

.first-game-prize-img {
    flex: 0 0 auto;
    position: relative;
    z-index: 10;
    max-width: 40%;
}

.prize-image {
    max-width: 100%;
    height: auto;
    width: clamp(400px, 70vw, 550px);
    position: relative;
    z-index: 15;
}

.highlight-prize {
    color: #00ffcc;
    font-weight: bold;
}

/* Media query para telas menores */
@media (max-width: 768px) {
    .competition-content {
        flex-direction: column;
        gap: clamp(15px, 4vw, 25px);
    }
    
    .first-game-prize-img {
        max-width: 60%;
        order: 1;
    }
    
    .competition-text-section {
        max-width: 100%;
        order: 2;
        text-align: center;
    }
    
    .prize-image {
        width: clamp(180px, 50vw, 280px);
    }
}

.first-game-buttons {
    margin: 0;
}

.first-game-ranking-btn {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    border: none;
    border-radius: clamp(25px, 4vw, 35px);
    padding: clamp(12px, 2.5vh, 18px) clamp(30px, 6vw, 45px);
    color: #1a237e;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 130px;
}

.first-game-ranking-btn:hover {
    background: linear-gradient(135deg, #5dd1ff 0%, #42c5f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(79, 195, 247, 0.4);
}

.first-game-ranking-btn:active {
    transform: translateY(0);
}

/* Botão do ranking - Igual ao das instruções */
.ranking-buttons {
    display: flex;
    justify-content: center;
    z-index: 5;
}

.ranking-btn {
    width: clamp(200px, 40vw, 300px);
    height: clamp(50px, 8vh, 70px);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 25%, #03A9F4 50%, #0288D1 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ranking-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.ranking-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 13px;
    pointer-events: none;
}

.ranking-btn:hover::before {
    transform: translateX(100%);
}

.ranking-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 195, 247, 0.4);
    background: linear-gradient(135deg, #81D4FA 0%, #4FC3F7 25%, #29B6F6 75%, #03A9F4 100%);
}

.ranking-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ranking-btn .btn-text {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 900;
    color: #0D47A1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    z-index: 2;
    position: relative;
}

/* Menu inicial */
.menu-content {
    text-align: center;
    color: white;
    padding: clamp(40px, 6vh, 80px);
    max-width: 900px;
    width: 100%;
}

.menu-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: clamp(20px, 3vh, 40px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-content p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: clamp(30px, 5vh, 50px);
    opacity: 0.9;
    line-height: 1.4;
}

/* Botões - Otimizados para 1080x1920 */
.btn {
    padding: clamp(15px, 2.5vh, 25px) clamp(30px, 5vw, 50px);
    border: none;
    border-radius: clamp(10px, 1.5vw, 15px);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: clamp(8px, 1.5vh, 15px);
    min-width: clamp(180px, 35vw, 250px);
}

.btn--primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.btn--secondary {
    background: linear-gradient(45deg, #666, #888);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn--error {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.btn--lg {
    padding: 20px 40px;
    font-size: 1.4rem;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 1rem;
    min-width: 120px;
}

.admin-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Tela de registro como overlay sobre a capa */
#registrationScreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 1000;
    opacity: 50;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#registrationScreen.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.registration-form {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 40px);
    box-sizing: border-box;
}

/* Container do formulário com fundo próprio */
.registration-form-content {
    position: relative;
    background: #101010;
    border-radius: clamp(15px, 2vw, 25px);
    padding: clamp(30px, 5vh, 50px);
    border: 1px solid #222222;
    max-width: clamp(400px, 80vw, 600px);
    width: 100%;
    z-index: 1;
    margin-top: clamp(80px, 12vh, 120px);
}

/* Teclado Numérico para CPF */
.cpf-keyboard {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vh, 18px);
    margin: clamp(25px, 4vh, 35px) 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.keyboard-row {
    display: flex;
    gap: clamp(12px, 2vw, 18px);
    justify-content: center;
}

.cpf-key {
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    background: #f2f2f2;
    border: 1px solid #d0d0d0;
    border-radius: clamp(10px, 2vw, 15px);
    color: #2c3e50;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.1s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpf-key:hover {
    background: #eaeaea;
    border-color: #cfcfcf;
}

.cpf-key:active {
    background: #e0e0e0;
}

/* Tecla especial - Backspace */
.cpf-key-backspace {
    background: #e9ecef;
    border: 1px solid #ced4da;
    color: #6c757d;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}

.cpf-key-backspace:hover {
    background: #dee2e6;
    border-color: #cfd3d8;
    color: #495057;
}

/* Título QYON SUPERJET igual à capa */
.registration-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(40px, 6vh, 60px);
    z-index: 5;
}

.registration-title .title-qyon {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    color: white;
    text-shadow: none;
    letter-spacing: clamp(3px, 1vw, 8px);
    margin-bottom: clamp(5px, 1vh, 10px);
    filter: none;
}

.registration-title .title-superjet {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 900;
    color: #ffd700;
    letter-spacing: clamp(2px, 0.8vw, 6px);
    text-shadow: none;
    filter: none;
}

/* Label do CPF */
.cpf-label {
    color: white;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(20px, 3vh, 30px);
    text-shadow: none;
    letter-spacing: 0.5px;
}

/* Container do formulário */
.registration-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(40px, 6vh, 60px);
}

/* Caixa de input do CPF usando imagem 02-BOX.png */
.cpf-input-box {
    position: relative;
    width: clamp(400px, 75vw, 550px);
    height: clamp(70px, 10vh, 90px);
    background-image: url('imgs/registro/02-BOX.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(30px, 5vw, 50px);
    filter: none;
}

/* Input do CPF */
.cpf-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    text-align: center;
    padding: 0;
    font-family: 'Barlow', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.cpf-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Teclado Digital para CPF */
.digital-keyboard {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: clamp(10px, 2vh, 15px);
    margin: clamp(30px, 5vh, 40px) 0;
    padding: clamp(20px, 3vh, 30px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: clamp(15px, 2vw, 20px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.keyboard-row {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    justify-content: center;
}

.key-btn {
    width: clamp(50px, 12vw, 70px);
    height: clamp(50px, 12vw, 70px);
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border: 2px solid #3498db;
    border-radius: clamp(8px, 1.5vw, 12px);
    color: white;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.key-btn:hover {
    background: linear-gradient(145deg, #3498db, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

.key-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.key-backspace, .key-clear {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
}

.key-backspace:hover, .key-clear:hover {
    background: linear-gradient(145deg, #c0392b, #a93226);
}

/* Apenas botão AVANÇAR */
.registration-buttons {
    display: flex;
    justify-content: center;
    margin-top: clamp(30px, 5vh, 50px);
}

/* Botão AVANÇAR menor */
.registration-advance-btn {
    width: clamp(120px, 20vw, 160px) !important;
    height: clamp(40px, 6vh, 50px) !important;
    font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
}

.registration-advance-btn .button-text {
    font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
}

/* Tela de Instruções - Overlay como o formulário */
#instructionsScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    backdrop-filter: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#instructionsScreen.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

#instructionsScreen:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.instructions-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vh, 40px);
    box-sizing: border-box;
}

/* Container do box de instruções com opacidade igual ao formulário */
.instructions-box {
    position: relative;
	background: #101010;
    border-radius: clamp(15px, 2vw, 25px);
    padding: clamp(30px, 5vh, 50px);
	border: 2px solid #00d4ff;
	box-shadow: none;
	backdrop-filter: none;
    max-width: clamp(400px, 80vw, 600px);
    width: 100%;
    z-index: 1;
    margin-top: clamp(80px, 12vh, 120px);
}



/* Subtítulo "Pronto para decolar?" */
.instructions-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 900;
    color: #00d4ff;
    text-align: center;
    margin-bottom: clamp(30px, 5vh, 40px);
	text-shadow: none;
    z-index: 5;
}

/* Texto das instruções */
.instructions-text {
    max-width: clamp(400px, 80vw, 600px);
    text-align: center;
    margin-bottom: clamp(40px, 6vh, 60px);
    z-index: 5;
}

.instructions-text p {
    color: white !important;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: clamp(15px, 3vh, 20px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.instructions-prize {
    color: #00ffaa !important;
    font-weight: 600 !important;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.6) !important;
}

.instructions-luck {
    font-size: clamp(1.2rem, 3vw, 1.6rem) !important;
    font-weight: 700 !important;
    color: #ffd700 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8) !important;
}

/* Botão das instruções - Igual ao da capa */
.instructions-buttons {
    display: flex;
    justify-content: center;
    z-index: 5;
}

.instructions-btn {
    width: clamp(200px, 40vw, 300px);
    height: clamp(50px, 8vh, 70px);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 25%, #03A9F4 50%, #0288D1 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.instructions-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.instructions-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 13px;
    pointer-events: none;
}

.instructions-btn:hover::before {
    transform: translateX(100%);
}

.instructions-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 195, 247, 0.4);
    background: linear-gradient(135deg, #81D4FA 0%, #4FC3F7 25%, #29B6F6 75%, #03A9F4 100%);
}

.instructions-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.instructions-btn .btn-text {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 900;
    color: #0D47A1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    z-index: 2;
    position: relative;
}

/* ===== RETURNING USER SCORE SCREEN ===== */
/* Usa as mesmas classes da tela de score normal, mas com algumas customizações */

#returningUserScoreScreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#returningUserScoreScreen.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

/* Ajustes específicos para a tela de usuário retornando */
#returningUserScoreScreen .score-form-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Manter padding original da tela de score */
}

/* Posicionar mensagem "continue jogando..." acima do score */
.returning-user-info-section {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -80%);
    width: 90%;
    text-align: center;
}

/* Centralizar score e "Parabéns!" abaixo da mensagem */
#returningUserScoreScreen .score-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 90%;
    text-align: center;
}

.returning-user-info-text {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    color: white;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Posicionar botões mais para baixo */
#returningUserScoreScreen .score-buttons {
    position: absolute;
    bottom: clamp(80px, 12vh, 120px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.5vh, 18px);
    align-items: center;
    width: 90%;
}

.secondary-btn {
    opacity: 0.85;
}

.secondary-btn:hover {
    opacity: 1;
}

/* ===== SCORE SCREEN ===== */
#scoreScreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 1000;
    opacity: 1000;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scoreScreen.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.score-form {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(15px, 3vw, 30px);
    box-sizing: border-box;
}

.score-form-content {
    position: relative;
    background: #101010;
    border-radius: clamp(15px, 2vw, 25px);
    padding: clamp(25px, 5vh, 50px);
    border: 1px solid #222222;
    max-width: clamp(400px, 90vw, 650px);
    width: 100%;
    z-index: 1;
    margin-top: clamp(60px, 10vh, 100px);
    text-align: center;
    min-height: clamp(600px, 75vh, 800px);
    max-height: 90vh;
    overflow-y: auto;
}

.score-title-container {
    margin-bottom: clamp(20px, 4vw, 30px);
}

.score-title-image {
    width: clamp(200px, 50vw, 300px);
    height: auto;
    image-rendering: crisp-edges;
}

.score-message {
    margin-bottom: clamp(30px, 6vw, 45px);
}

.score-congratulations {
    color: white;
    font-size: clamp(20px, 4.5vw, 28px);
    font-weight: bold;
    margin: 0 0 clamp(8px, 1.5vw, 12px) 0;
    text-shadow: none;
}

.score-text {
    color: white;
    font-size: clamp(14px, 3vw, 20px);
    margin: 0 0 clamp(12px, 2.5vw, 16px) 0;
    text-shadow: none;
}

.score-value {
    color: #4A9EFF;
    font-size: clamp(28px, 6vw, 40px);
    font-weight: bold;
    text-shadow: none;
    margin-bottom: clamp(16px, 3vw, 24px);
}

.name-section {
    margin-bottom: clamp(25px, 5vw, 35px);
}

.name-label {
    color: white;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: bold;
    display: block;
    margin-bottom: clamp(8px, 1.5vw, 12px);
    text-shadow: none;
}

.name-input-box {
    background-image: url('imgs/registro/02-BOX.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: clamp(45px, 8vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(12px, 2.5vw, 20px);
    box-sizing: border-box;
    margin-bottom: clamp(15px, 3vw, 20px);
}

.name-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: white !important;
    font-size: clamp(14px, 3vw, 18px) !important;
    font-weight: bold !important;
    text-align: center !important;
    width: 100% !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    -webkit-text-fill-color: white !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    font-family: 'Barlow', sans-serif !important;
}

.name-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.name-keyboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(10px, 2vw, 15px);
    padding: clamp(18px, 3.5vw, 25px);
    margin-bottom: clamp(20px, 4vw, 30px);
    backdrop-filter: blur(5px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
    z-index: 50;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: clamp(6px, 1.5vw, 10px);
    margin-bottom: clamp(12px, 2.5vw, 18px);
    flex-wrap: nowrap;
    align-items: center;
}

.keyboard-row:last-child {
    margin-bottom: 0;
}

.name-key {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: 1px solid #cccccc;
    border-radius: clamp(5px, 1vw, 8px);
    padding: clamp(6px, 1vw, 10px);
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    width: clamp(26px, 5vw, 38px);
    height: clamp(26px, 5vw, 38px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    pointer-events: auto;
    z-index: 100;
}

.name-key:hover {
    background: linear-gradient(145deg, #f0f0f0, #d6d6d6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.name-key:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.name-key-space {
    flex: 0 0 auto;
    font-size: clamp(10px, 1.8vw, 12px);
    width: clamp(80px, 15vw, 120px);
    height: clamp(26px, 5vw, 38px);
    pointer-events: auto;
    z-index: 100;
}

.name-key-backspace {
    background: linear-gradient(145deg, #ff6b6b, #e55555);
    color: white;
    font-size: clamp(14px, 2.5vw, 18px);
    width: clamp(50px, 8vw, 70px);
    height: clamp(26px, 5vw, 38px);
    pointer-events: auto;
    z-index: 100;
}

.name-key-backspace:hover {
    background: linear-gradient(145deg, #ff5555, #cc4444);
}

.score-buttons {
    display: flex;
    justify-content: center;
    margin-top: clamp(25px, 5vw, 35px);
}

.score-advance-btn {
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 25%, #03A9F4 50%, #0288D1 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    width: clamp(180px, 35vw, 280px);
    height: clamp(50px, 8vh, 70px);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
    overflow: hidden;
}

.score-advance-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    border-radius: 50px;
    pointer-events: none;
}

.score-advance-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 48px;
    pointer-events: none;
}

.score-advance-btn:hover {
    background: linear-gradient(135deg, #81D4FA 0%, #4FC3F7 25%, #29B6F6 75%, #03A9F4 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 195, 247, 0.4);
}

.score-advance-btn:hover::before {
    transform: translateX(100%);
}

.score-advance-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.score-advance-btn .btn-text {
    color: #0D47A1;
    font-size: clamp(14px, 2.8vw, 18px);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 2;
    position: relative;
}

/* Media Queries para melhor responsividade do Score Box */
@media (max-width: 480px) {
    .score-form-content {
        padding: clamp(20px, 4vh, 30px);
        margin-top: clamp(40px, 8vh, 80px);
        min-height: clamp(500px, 70vh, 650px);
        max-width: clamp(380px, 95vw, 450px);
    }
    
    .score-congratulations {
        font-size: clamp(18px, 4vw, 24px);
    }
    
    .score-value {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .name-keyboard {
        padding: clamp(15px, 3vw, 20px);
    }
    
    .name-key {
        width: clamp(24px, 4.5vw, 32px);
        height: clamp(24px, 4.5vw, 32px);
        font-size: clamp(10px, 2vw, 14px);
        padding: clamp(4px, 0.8vw, 8px);
    }
    
    .name-key-space {
        width: clamp(70px, 12vw, 100px);
        height: clamp(24px, 4.5vw, 32px);
    }
    
    .name-key-backspace {
        width: clamp(45px, 7vw, 60px);
        height: clamp(24px, 4.5vw, 32px);
    }
}

@media (max-height: 700px) {
    .score-form-content {
        min-height: clamp(500px, 70vh, 600px);
        max-height: 95vh;
    }
    
    .score-message {
        margin-bottom: clamp(20px, 4vw, 25px);
    }
    
    .name-section {
        margin-bottom: clamp(18px, 3vw, 22px);
    }
}

/* Logo Principal fora dos Boxes - posicionada mais acima */
.overlay-main-logo {
    position: absolute;
    top: clamp(50px, 8vh, 120px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1001;
    pointer-events: none;
}

/* Logo específica para tela de instruções - posicionada mais acima */
#instructionsScreen .overlay-main-logo {
    top: clamp(50px, 8vh, 120px);
}

/* Logo específica para tela de ranking - posicionada mais acima */
#rankingScreen .overlay-main-logo {
    top: clamp(50px, 8vh, 120px);
}


.overlay-logo-image {
    width: clamp(250px, 50vw, 350px);
    height: auto;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)) 
            drop-shadow(0 0 25px rgba(0, 150, 255, 0.2));
}

/* Título como layer independente sobre o box */
.overlay-title-layer {
    width:  clamp(200px, 45vw, 300px);
    height: auto;
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    pointer-events: none;
}

.overlay-title-image {
    width: clamp(200px, 45vw, 300px);
    height: auto;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

/* Responsividade para tela de registro */
@media (max-width: 768px) {
    .registration-title-image {
        width: clamp(300px, 85vw, 400px);
        height: clamp(80px, 12vh, 100px);
    }
    
    .cpf-input-box {
        width: clamp(320px, 90vw, 400px);
        height: clamp(60px, 8vh, 70px);
    }
    
    .cpf-label {
        font-size: clamp(1rem, 4vw, 1.4rem);
        padding: 0 20px;
    }
    
    .cpf-key {
        width: clamp(50px, 15vw, 65px);
        height: clamp(50px, 15vw, 65px);
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }
    
    .cpf-key-clear, .cpf-key-backspace {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
}

@media (max-width: 480px) {
    .cpf-keyboard {
        padding: clamp(15px, 2vh, 20px);
        gap: clamp(10px, 1.5vh, 15px);
    }
    
    .keyboard-row {
        gap: clamp(8px, 1.5vw, 12px);
    }
    
    .cpf-key {
        width: clamp(45px, 18vw, 55px);
        height: clamp(45px, 18vw, 55px);
        font-size: clamp(1rem, 5vw, 1.4rem);
    }
    
    .registration-advance-btn {
        width: clamp(100px, 25vw, 140px) !important;
        height: clamp(35px, 5vh, 45px) !important;
    }
}

.form-label {
    display: block;
    margin-bottom: clamp(6px, 1vh, 12px);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: #ccc;
}

.form-control {
    width: 100%;
    padding: clamp(12px, 2.5vh, 20px);
    border: 2px solid #333;
    border-radius: clamp(8px, 1.5vw, 12px);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    text-align: center;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Teclados virtuais */
.keyboard-container {
    margin: 20px 0;
}

.numeric-keyboard, .text-keyboard {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.numeric-keyboard {
    grid-template-columns: repeat(3, 1fr);
    max-width: 300px;
    margin: 0 auto;
}

.text-keyboard {
    grid-template-columns: repeat(10, 1fr);
    font-size: 0.9rem;
}

.key {
    padding: 15px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 1.1rem;
}

.key:hover {
    background: rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

.key.wide {
    grid-column: span 2;
}

.registration-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Countdown */
.countdown-content {
    text-align: center;
}

.countdown-number {
    font-size: clamp(8rem, 15vw, 18rem);
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Game Over */
.game-over-content {
    background: rgba(15, 20, 25, 0.95);
    padding: clamp(30px, 5vh, 60px);
    border-radius: clamp(15px, 2vw, 25px);
    border: 2px solid #00d4ff;
    color: white;
    width: clamp(85%, 90vw, 95%);
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
}

.game-over-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(15px, 3vh, 30px);
    color: #00d4ff;
}

.final-score {
    margin: 20px 0;
}

.final-score span {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 10px;
}

.game-over-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.game-over-buttons .btn {
    width: 100%;
}

.score-big {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    margin: clamp(15px, 3vh, 30px) 0;
}

.prize-result {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    border: 1px solid #00d4ff;
}

.prize-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.prize-text {
    font-size: 1.4rem;
    font-weight: bold;
}

.ranking-display {
    margin: 30px 0;
}

.ranking-display h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #00d4ff;
}

.ranking-list {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
}

.ranking-item.top-score {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-left-color: gold;
}

.ranking-position {
    font-weight: bold;
    font-size: 1.2rem;
    color: #00d4ff;
    min-width: 40px;
}

.ranking-name {
    flex: 1;
    text-align: left;
    margin: 0 15px;
}

.ranking-score {
    font-weight: bold;
    color: #00d4ff;
}

/* Painel Admin */
.admin-content {
    background: rgba(15, 20, 25, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #ff6b6b;
    color: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #ff6b6b;
}

.admin-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid #333;
}

.admin-section h3 {
    margin-bottom: 20px;
    color: #ff6b6b;
    font-size: 1.4rem;
}

.prize-config {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prize-config .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prize-config .form-control {
    padding: 10px 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.prize-config .form-control:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.prize-config .form-label {
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 5px;
}

.prize-config .form-help {
    color: #888;
    font-size: 0.8rem;
    margin-top: 3px;
    font-style: italic;
}

.stock-status {
    padding: 10px;
    border-radius: 5px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Gerenciamento de Produtos */
.product-management {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-item:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.product-info {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-name-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.product-name-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.product-stock-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

.product-stock-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn--small {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-height: auto;
}

.btn--success {
    background: #28a745;
    border-color: #28a745;
}

.btn--success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn--error {
    background: #dc3545;
    border-color: #dc3545;
}

.btn--error:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.add-product-form {
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
}

.add-product-form h4 {
    margin: 0 0 15px 0;
    color: #00d4ff;
    font-size: 1.2rem;
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: end;
}

.form-row .form-group {
    flex: 1;
}

.form-row .btn {
    margin-bottom: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .product-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions {
        justify-content: center;
    }
}

.prize-config #updatePrizes {
    margin-top: 20px;
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    min-height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prize-config #updatePrizes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
}

.prize-config #updatePrizes:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .prize-config #updatePrizes {
        padding: 12px 16px;
        font-size: 1rem;
        min-height: 45px;
    }
    
    .admin-section {
        margin: 20px 0;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .prize-config #updatePrizes {
        padding: 10px 14px;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .admin-section {
        margin: 15px 0;
        padding: 12px;
    }
}

.participants-list {
    max-height: 300px;
    overflow-y: auto;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.participant-details {
    font-size: 0.9rem;
    color: #ccc;
}

.delete-participant {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* HUD do jogo */
.game-hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 24px; /* afastar das bordas do canvas */
}

.game-hud.active {
    opacity: 1;
}

/* Overlay de dano */
.damage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 120ms ease;
    background: radial-gradient(ellipse at center, rgba(255,0,0,0.48) 0%, rgba(255,0,0,0.26) 32%, rgba(255,0,0,0.05) 68%, rgba(255,0,0,0) 80%);
    z-index: 999;
}

.damage-overlay.show {
    opacity: 1;
}

.damage-overlay::before,
.damage-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Linhas simples simulando rachaduras (leve para performance) */
.damage-overlay::before {
    background-image:
      linear-gradient(transparent 49%, rgba(255,255,255,0.18) 50%, transparent 51%),
      linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.16) 50%, transparent 51%);
    background-size: 10px 10px, 10px 10px;
    mix-blend-mode: overlay;
    opacity: 0.4;
}

.damage-overlay::after {
    background:
      repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 6px);
    opacity: 0.2;
}

.damage-hit-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff2b2b;
    font-weight: 900;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: 1px;
    text-shadow: none;
    opacity: 0;
}

@keyframes damagePop {
  0% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.0); opacity: 0; }
}

.damage-hit-text.pop {
  animation: damagePop 420ms ease-out both;
}

.hud-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #00d4ff;
    color: white;
    text-align: center;
}

.hud-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.hud-value {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #00d4ff;
}

/* Responsividade */
/* Para telas muito pequenas (mobile portrait) */
@media (max-width: 480px) {
    .cover-logo {
        top: 3%;
        width: 95%;
        height: 18%;
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .cover-middle {
        top: 25%;
        height: 70%;
    }
    
    .cover-plane {
        width: 90%;
        height: 50%;
        font-size: clamp(4rem, 12vw, 8rem);
    }
    
    .cover-button {
        width: clamp(300px, 85vw, 400px);
        height: clamp(75px, 12vh, 100px);
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }
}

/* Para tablets e telas médias */
@media (min-width: 481px) and (max-width: 768px) {
    .cover-logo {
        top: 4%;
        width: 92%;
        height: 18%;
        font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    }
    
    .cover-middle {
        top: 26%;
        height: 68%;
    }
    
    .cover-plane {
        width: 88%;
        height: 52%;
        font-size: clamp(5rem, 10vw, 10rem);
    }
    
    .cover-button {
        width: clamp(320px, 70vw, 450px);
        height: clamp(80px, 13vh, 110px);
        font-size: clamp(1.2rem, 3.2vw, 1.6rem);
    }
}

/* Para telas grandes (desktop) */
@media (min-width: 1200px) {
    .cover-logo {
        max-width: 1200px;
        max-height: 350px;
    }
    
    .cover-plane {
        max-width: 900px;
        max-height: 700px;
    }
    
    .cover-button {
        max-width: 600px;
        max-height: 150px;
    }
}

/* Para orientação landscape em dispositivos móveis */
@media (max-height: 600px) and (orientation: landscape) {
    .cover-logo {
        top: 3%;
        height: 15%;
        font-size: clamp(1.2rem, 3vh, 2rem);
    }
    
    .cover-middle {
        top: 20%;
        height: 75%;
        flex-direction: row;
        align-items: center;
    }
    
    .cover-plane {
        width: 40%;
        height: 60%;
        margin-right: 5%;
    }
    
    .cover-buttons {
        width: 40%;
        gap: clamp(10px, 2vh, 20px);
    }
    
    .cover-button {
        width: 100%;
        height: clamp(50px, 8vh, 70px);
    }
}

@media (max-width: 768px) {
    .menu-content h1 {
        font-size: 2.5rem;
    }
    
    .menu-content p {
        font-size: 1.2rem;
    }
    
    .countdown-number {
        font-size: 8rem;
    }
    
    .text-keyboard {
        grid-template-columns: repeat(8, 1fr);
        font-size: 0.8rem;
    }
    
    .key {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .registration-content {
        width: 95%;
        padding: 30px 20px;
    }
    
    .game-hud {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .hud-item {
        flex: 1;
        min-width: 80px;
        padding: 8px 10px;
    }
    
    .hud-label {
        font-size: 0.8rem;
    }
    
    .hud-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .menu-content h1 {
        font-size: 2rem;
    }
    
    .countdown-number {
        font-size: 6rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 150px;
    }
    
    .btn--lg {
        padding: 15px 25px;
        font-size: 1.2rem;
    }
    
    .registration-content {
        padding: 20px 15px;
    }
    
    .text-keyboard {
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
    }
    
    .key {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* Orientação landscape em mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .menu-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .menu-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .countdown-number {
        font-size: 4rem;
    }
    
    .registration-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

