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

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: #0a2a1f; 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    overflow: hidden;
    touch-action: manipulation;
}

body { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px;
}

.container-principal { 
    max-width: 1400px; 
    width: 100%; 
    height: 100%;
    margin: 0 auto; 
    background: #fffaf0; 
    border-radius: 30px; 
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); 
    display: flex;
    flex-direction: column;
}

.cabecalho-geforte { 
    background: linear-gradient(135deg, #0a2a1f, #1a5e4a); 
    padding: 15px 15px 10px; 
    text-align: center; 
    flex-shrink: 0;
}
.cabecalho-geforte h1 { color: #f5a623; margin: 0; font-size: 24px; letter-spacing: 1px; }
.cabecalho-geforte .subtitulo { color: white; margin: 4px 0 0; font-size: 13px; font-weight: 500; }
.linha-dourada { width: 40px; height: 2px; background: #f5a623; margin: 8px auto 0; }

.conteudo-jogo { 
    position: relative;
    flex: 1;
    width: 100%;
    background: #05140f; 
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hud-interface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: auto !important; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow-y: auto;
}

/* Layout Inicial */
.grid-inicial {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    align-items: stretch;
    margin: auto;
}

.bloco-card {
    padding: 25px;
    border-radius: 20px;
    flex: 1;
    min-width: 300px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.bloco-aluno {
    background: rgba(139, 195, 74, 0.1);
    border: 2px solid #8bc34a;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bloco-professor {
    background: rgba(5, 20, 15, 0.95);
    border: 2px solid #f5a623;
}

.titulo-verde { color: #8bc34a; margin-bottom: 10px; font-size: 20px; }
.titulo-dourado { color: #f5a623; margin-bottom: 5px; font-size: 20px; }
.texto-instrucao { font-size: 13px; color: #cddfb0; margin-bottom: 15px; }

.form-coluna { display: flex; flex-direction: column; gap: 10px; }
.input-pin {
    padding: 12px; border-radius: 8px; border: 1px solid #8bc34a; background: #0a2a1f; 
    color: white; outline: none; font-size: 18px; text-align: center; letter-spacing: 3px; text-transform: uppercase;
}
.input-padrao {
    padding: 10px; border-radius: 8px; border: 1px solid #1a5e4a; background: #0a2a1f; color: white; outline: none;
}
.btn-verde { padding: 12px; border-radius: 8px; border: none; background: #8bc34a; color: #05140f; font-weight: bold; cursor: pointer; font-size: 14px; }
.btn-dourado { padding: 10px; border-radius: 8px; border: none; background: #f5a623; color: #05140f; font-weight: bold; cursor: pointer; }

.abas-container {
    display: flex; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid #1a5e4a; padding-bottom: 10px;
}
.aba-btn {
    flex: 1; padding: 8px; background: #0a2a1f; color: #cddfb0; border: 1px solid #1a5e4a; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 13px;
}
.aba-ativa { background: #f5a623 !important; color: #05140f !important; border: none !important; }
#erro-auth { color: #ff6b6b; font-size: 11px; margin-top: 10px; min-height: 15px; }

/* Rodapé */
.rodape-geforte { 
    background: #0a2a1f; 
    padding: 12px 15px; 
    border-top: 2px solid #f5a623; 
    text-align: center; 
    flex-shrink: 0;
    max-height: 160px;
    overflow-y: auto;
}
.rodape-geforte .logos { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 8px; }
.rodape-geforte .logos img { height: 35px; object-fit: contain; }
.rodape-geforte .texto-institucional { max-width: 800px; margin: 0 auto; color: #cddfb0; font-size: 11px; line-height: 1.4; text-align: justify; }
.rodape-geforte .texto-institucional strong { color: #f5a623; }
.linha-rodape { width: 50px; height: 1px; background: #f5a623; margin: 8px auto; }
.linha-divisor-rodape { width: 60px; height: 2px; background: #f5a623; margin: 10px auto; }
.copyright { color: #8aa87d; font-size: 10px; margin-top: 4px; line-height: 1.4; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1a5e4a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #f5a623; }