/* =====================================================================
   Player Piloto — identidade visual Autoescola Piloto
   Paleta: carvão #141010 / #241512, laranja #F25A12 → #F58A3A,
           branco #F4F2EF, amarelo #F2B81C
   Leve para TV: sem filtros de blur, sombras sem desfoque,
   animações apenas com transform.
   ===================================================================== */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'),
       url('/assets/fonts/barlow-condensed-latin-800-italic.woff') format('woff');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-latin-900-italic.woff2') format('woff2'),
       url('/assets/fonts/barlow-condensed-latin-900-italic.woff') format('woff');
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #F4F2EF;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-style: italic;
  font-weight: 800;
  cursor: default;
}
#tela-player, #tela-player * { cursor: none; }
.botao-grande, .tecla, .campo { cursor: pointer; }
.campo { cursor: text; }
body {
  background: #141010;
  background: radial-gradient(ellipse 70% 55% at 50% 100%, #4a1d0a 0%, rgba(20, 16, 16, 0) 70%),
              linear-gradient(180deg, #0b0808 0%, #141010 55%, #241512 100%);
}

#moldura {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.tela {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}
.tela.ativa { display: block; }
.oculto { display: none !important; }

/* ---------------------------------------------------------------------
   Selo "AUTOESCOLA PILOTO — Você entra aluno e sai Piloto" (HTML/CSS)
   Tamanho controlado pelo font-size do .selo (tudo em em).
   --------------------------------------------------------------------- */
.selo {
  display: inline-block;
  background: #FFFFFF;
  border-radius: 1.1em;
  padding: 0.45em 1.3em 0.55em;
  border-bottom: 0.35em solid #F2B81C;
  text-align: center;
  line-height: 1;
  font-size: 22px;
}
.selo span { display: block; }
/* Logo oficial (PNG com a caixa branca e cantos transparentes) */
.selo-logo { display: block; width: 16em; height: auto; margin: 0.2em auto 0.25em; }
.selo-autoescola {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-weight: 900;
  font-size: 2.55em;
  letter-spacing: 0.02em;
  color: #141010;
}
.selo-piloto {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 5.1em;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #F25A12;
  margin: 0.02em 0 0.04em;
  /* contorno escuro + sombra sólida (sem desfoque) */
  text-shadow:
    -0.03em -0.03em 0 #141010, 0.03em -0.03em 0 #141010,
    -0.03em 0.03em 0 #141010, 0.03em 0.03em 0 #141010,
    0 0.04em 0 #141010, 0.04em 0 0 #141010,
    0.07em 0.07em 0 #141010;
}
.selo-slogan {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.3em;
  color: #141010;
}
.selo-slogan sup { font-size: 0.55em; }
.selo-grande  { font-size: 22px; }
.selo-medio   { font-size: 17px; }
.selo-pequeno { font-size: 10px; }

/* ---------------------------------------------------------------------
   Tela inicial
   --------------------------------------------------------------------- */
.selo-cnh {
  position: absolute;
  top: 36px;
  left: 48px;
  width: 210px;
  border-radius: 18px;
  border: 4px solid #141010;
}
.relogio {
  position: absolute;
  top: 44px;
  right: 72px;
  text-align: right;
  line-height: 1;
}
#hora {
  display: block;
  font-weight: 900;
  font-size: 92px;
  color: #F4F2EF;
  letter-spacing: 1px;
}
#data {
  display: block;
  margin-top: 6px;
  font-size: 32px;
  color: #F58A3A;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.centro-inicio {
  position: absolute;
  top: 150px;
  left: 0;
  width: 100%;
  text-align: center;
}
.centro-inicio .selo { display: table; margin: 0 auto 84px; }

/* Personagens (PNG transparente com círculo cinza) + aro laranja */
.personagem {
  position: absolute;
  top: 380px;
  width: 400px;
  height: 413px;
}
.personagem-esq { left: 56px; }
.personagem-dir { right: 56px; }
.personagem img {
  position: relative;
  display: block;
  width: 100%;
  z-index: 1;
}
.personagem .aro {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  box-shadow: 0 0 0 10px #F25A12, 0 0 0 16px #141010, 0 0 0 21px #F2B81C;
}

.botao-grande {
  display: inline-block;
  font-family: inherit;
  font-style: italic;
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #FFFFFF;
  background: #F25A12;
  background: linear-gradient(180deg, #F58A3A 0%, #F25A12 60%, #E04E0C 100%);
  border: 6px solid #F4F2EF;
  border-radius: 999px;
  padding: 26px 76px 26px 34px;
  outline: none;
  text-shadow: 0 4px 0 rgba(20, 16, 16, .35);
  box-shadow: 0 10px 0 #7a2a06;
}
.botao-grande span { vertical-align: middle; }
.icone-play {
  width: 84px;
  height: 84px;
  margin-right: 26px;
  vertical-align: middle;
}
.botao-grande.focado {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 12px #F2B81C, 0 10px 0 12px #7a2a06;
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
}
@-webkit-keyframes pulso {
  0%, 100% { -webkit-transform: scale(1.06); }
  50% { -webkit-transform: scale(1.1); }
}
@keyframes pulso {
  0%, 100% { transform: scale(1.06); }
  50% { transform: scale(1.1); }
}

.mensagem {
  margin-top: 44px;
  font-size: 38px;
  color: #F2B81C;
  min-height: 46px;
}

.rodape {
  position: absolute;
  left: 0;
  bottom: 92px;
  width: 100%;
  text-align: center;
  font-size: 34px;
  color: #F4F2EF;
}
.chip-seta, .chip-ok {
  display: inline-block;
  min-width: 46px;
  height: 46px;
  line-height: 40px;
  margin: 0 3px;
  font-style: normal;
  font-size: 22px;
  text-align: center;
  vertical-align: 2px;
  color: #F58A3A;
  border: 3px solid #F58A3A;
  border-radius: 10px;
}
.chip-ok {
  font-family: inherit;
  font-style: italic;
  font-weight: 900;
  font-size: 28px;
  padding: 0 12px;
  color: #141010;
  background: #F2B81C;
  border-color: #F2B81C;
  border-radius: 999px;
}

/* ---------------------------------------------------------------------
   Tela de senha
   --------------------------------------------------------------------- */
.painel-senha {
  position: relative;
  width: 1560px;
  margin: 44px auto 0;
  text-align: center;
}
.cabecalho-senha {
  position: relative;
  height: 196px;
}
.cabecalho-senha .selo {
  position: absolute;
  left: 0;
  top: 8px;
}
.cabecalho-senha h1 {
  font-weight: 900;
  font-size: 104px;
  line-height: 1;
  letter-spacing: 2px;
  color: #F25A12;
  text-shadow: 0 5px 0 #000000;
}
.pilula {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 40px 8px;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
  color: #FFFFFF;
  background: #F25A12;
  border: 4px solid #F4F2EF;
  border-radius: 999px;
}

.campos {
  margin-top: 22px;
  white-space: nowrap;
}
.grupo {
  display: inline-block;
  width: 600px;
  margin: 0 18px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}
.rotulo {
  display: block;
  margin: 0 0 6px 18px;
  font-size: 28px;
  color: #F58A3A;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.campo {
  display: block;
  width: 100%;
  height: 76px;
  font-family: Arial, sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 40px;
  padding: 0 26px;
  color: #141010;
  background: #F4F2EF;
  border: 5px solid #3d2620;
  border-radius: 18px;
  outline: none;
}
.campo.alvo { border-color: #F25A12; }
.campo.focado {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 7px #F2B81C;
}

.teclado {
  margin: 30px auto 0;
  width: 1300px;
}
.teclado .linha { height: 88px; }
.tecla {
  display: inline-block;
  position: relative;
  width: 108px;
  height: 76px;
  margin: 6px 5px;
  font-family: inherit;
  font-style: italic;
  font-weight: 900;
  font-size: 42px;
  line-height: 1;
  color: #F4F2EF;
  background: #241512;
  border: 3px solid #4a2c24;
  border-bottom: 6px solid #F25A12;
  border-radius: 14px;
  outline: none;
  vertical-align: top;
}
.tecla[data-acao] { font-size: 32px; letter-spacing: 1px; }
.tecla.larga { width: 238px; }
.tecla.extra { width: 372px; }
.tecla.entrar {
  color: #FFFFFF;
  background: #F25A12;
  background: linear-gradient(180deg, #F58A3A 0%, #F25A12 100%);
  border: 4px solid #F4F2EF;
  border-radius: 999px;
}
.tecla.focado {
  z-index: 2;
  color: #141010;
  background: #F2B81C;
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 5px #F25A12;
  -webkit-transform: scale(1.14);
  transform: scale(1.14);
}
#msg-senha { margin-top: 18px; }

/* ---------------------------------------------------------------------
   Player e sobreposições
   --------------------------------------------------------------------- */
#tela-player { background: #000; }
#video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
/* Enquanto não há vídeo na tela (abertura / avisos), mostra a moldura da marca */
body.moldura-player #tela-player { background: transparent; }
body.moldura-player #video { visibility: hidden; }

.abertura {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  padding-top: 250px;
  text-align: center;
}
.barra-carregando {
  position: relative;
  width: 560px;
  height: 16px;
  margin: 80px auto 28px;
  overflow: hidden;
  background: #241512;
  border: 2px solid #4a2c24;
  border-radius: 8px;
}
.barra-carregando span {
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: #F25A12;
  background: linear-gradient(90deg, #F25A12, #F2B81C);
  border-radius: 8px;
  -webkit-animation: correr 1.3s ease-in-out infinite;
  animation: correr 1.3s ease-in-out infinite;
}
@-webkit-keyframes correr {
  0% { -webkit-transform: translateX(-30%); }
  100% { -webkit-transform: translateX(180%); }
}
@keyframes correr {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(180%); }
}
.abertura-txt {
  font-weight: 900;
  font-size: 52px;
  letter-spacing: 2px;
  color: #F4F2EF;
}

.carregando {
  position: absolute;
  right: 48px;
  bottom: 40px;
  padding: 10px 28px 10px 18px;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #F4F2EF;
  background: rgba(20, 16, 16, .85);
  border: 3px solid #F25A12;
  border-radius: 999px;
}
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 14px;
  vertical-align: -4px;
  border: 5px solid rgba(244, 242, 239, .2);
  border-top-color: #F25A12;
  border-right-color: #F2B81C;
  border-radius: 50%;
  -webkit-animation: girar 0.9s linear infinite;
  animation: girar 0.9s linear infinite;
}
@-webkit-keyframes girar { to { -webkit-transform: rotate(360deg); } }
@keyframes girar { to { transform: rotate(360deg); } }

/* Aviso em tela cheia (sem vídeos, erro) */
.aviso-player {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  padding-top: 210px;
  text-align: center;
}
.aviso-player .selo { font-size: 14px; margin-bottom: 70px; }
.aviso-titulo {
  display: block;
  font-weight: 900;
  font-size: 96px;
  line-height: 1;
  letter-spacing: 1px;
  color: #F25A12;
  text-shadow: 0 5px 0 #000000;
}
.aviso-texto {
  display: inline-block;
  margin-top: 34px;
  padding: 8px 44px 10px;
  font-size: 42px;
  color: #FFFFFF;
  background: #241512;
  border: 4px solid #F25A12;
  border-radius: 999px;
}

/* Aviso discreto (som bloqueado, pausado) */
.aviso-player.discreto {
  top: auto; left: auto;
  right: 48px;
  bottom: 120px;
  width: auto;
  height: auto;
  padding: 10px 34px 12px 14px;
  font-weight: 900;
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FFFFFF;
  background: #F25A12;
  border: 4px solid #F4F2EF;
  border-radius: 999px;
}
.aviso-player.discreto .chip-ok {
  height: 50px;
  line-height: 46px;
  margin: 0 12px 0 0;
  font-size: 32px;
  color: #141010;
  background: #F4F2EF;
  border-color: #F4F2EF;
  vertical-align: 2px;
}
