* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
}

body {
    background: linear-gradient(135deg, #6717cd 30%, #1ab1ff 90%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* --- BALÕES FLUTUANTES NO FUNDO --- */
.floating-bg {
    position: absolute;
    opacity: 0.6;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.bg-amarelo { top: 5%; left: -10%; width: 450px; animation-delay: 0s; }
.bg-rosa { bottom: 15%; right: -5%; width: 500px; animation-delay: 2s; }
.bg-verde { top: 40%; right: 2%; width: 300px; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-35px) rotate(12deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- CARD GLASSMORPHISM --- */
#app {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    
    width: 85%;
    max-width: 900px;
    min-height: 600px; /* Garante que o card não fique espremido na tela inicial */
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    z-index: 10;
    transform: translateY(-40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
}

.logo-sala {
    max-width: 380px; 
    margin-bottom: 40px;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* --- TIPOGRAFIA E ÍCONES --- */
.title-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.title-icon { width: 80px; } /* Engrenagem maior e mais imponente */

.spin-anim {
    animation: spin 12s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

h1 {
    color: #008bd2; 
    font-size: 55px; 
}

.subtitle {
    font-size: 26px;
    color: #555;
    margin-bottom: 50px;
    line-height: 1.4;
}

h2 {
    font-size: 38px;
    margin-bottom: 40px;
    margin-top: 10px;
    color: #222;
    line-height: 1.3;
}

/* Contador Clean com a Lâmpada */
#question-counter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.counter-icon { width: 40px; }

#question-counter {
    color: #008bd2; /* Azul oficial da marca para dar contraste */
    font-weight: 800;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Placar com o Gráfico */
.score-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    background: rgba(192, 207, 47, 0.15);
    padding: 20px 40px;
    border-radius: 20px;
    border: 3px solid #c0cf2f;
}

.score-icon { width: 70px; }
.score-container h2 { margin: 0; color: #333; }

.subtitle-end {
    font-size: 24px;
    color: #555;
    margin-top: 40px;
    margin-bottom: 25px;
}

/* --- BOTÕES GIGANTES --- */
button {
    border: none;
    padding: 25px 30px;
    font-size: 26px;
    border-radius: 16px; 
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 20px;
    font-weight: 600;
}

#options-container { width: 100%; }

.option-btn {
    background-color: rgba(255, 255, 255, 0.95);
    color: #475569;
    border: 3px solid #e2e8f0;
    text-align: left; 
}

.option-btn:hover:not(:disabled) {
    border-color: #008bd2;
    background-color: #f0f9ff;
    color: #008bd2;
    transform: translateY(-3px);
}

.action-btn {
    background-color: #008bd2;
    color: white;
    font-size: 32px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 139, 210, 0.4);
    max-width: 600px;
}

.action-btn:hover { 
    background-color: #006da6; 
    transform: scale(1.02);
}

.outline-btn {
    background-color: transparent;
    color: #008bd2;
    border: 3px solid #008bd2;
    box-shadow: none;
    margin-top: 10px;
}

.pulse-anim { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 139, 210, 0.7); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 20px rgba(0, 139, 210, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 139, 210, 0); }
}

.correct { background-color: #c0cf2f !important; color: white !important; border-color: #a8b820 !important; }
.wrong { background-color: #ef4444 !important; color: white !important; border-color: #dc2626 !important; }

/* --- A MÁGICA DO BALÃO DE QR CODE --- */
.qr-bubble {
    background: #ffffff;
    border: 6px solid #f4c000;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    margin-bottom: 40px;
    display: inline-block;
}

.qr-bubble::after {
    content: '';
    position: absolute;
    bottom: -25px; 
    left: 45px; 
    border-width: 25px 25px 0 0;
    border-style: solid;
    border-color: #f4c000 transparent transparent transparent;
    display: block;
    width: 0;
}

.qr-bubble::before {
    content: '';
    position: absolute;
    bottom: -16px; 
    left: 49px; 
    border-width: 17px 17px 0 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    display: block;
    width: 0;
    z-index: 1;
}

.qr-code-img {
    max-width: 280px; 
    display: block;
}

/* --- RODAPÉ OFICIAL SEBRAE --- */
.sebrae-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background-color: #3963d6; 
    padding: 30px 40px; 
    display: flex;
    justify-content: center; 
    align-items: center;
    z-index: 50; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
}

.sebrae-footer img {
    height: 55px; 
    opacity: 0.95;
}