html, body {
  margin: 0;
  padding: 0;
  background: #2356a8;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  min-width: 100vw;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body, #score-top, #message, #premio-bloco, .popup-title, #ranking-modal h2,
#restart-btn, #ranking-btn, #share-btn, .cadastro-btn, #game-canvas, .popup-box {
  font-family: Verdana, sans-serif !important;
  letter-spacing: 0px;
}




#mobile-frame {
  width: 390px;
  height: 700px;
  background: #333;
  border-radius: 32px;
  box-shadow: 0 0 30px #2229, 0 6px 36px #0008;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  border: 3px solid #222c;
}

#score-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  background: none;
  color: #111;
  font-size: 2.18em;
  padding: 14px 0 8px 0;
  text-align: center;
  z-index: 10;
  letter-spacing: 1px;
  border-radius: 0 0 18px 18px;
  user-select: none;
  font-weight: bold;
  box-shadow: none;
  min-width: 75px;
}

#game-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
}

#game-canvas {
  display: block;
  background: transparent;
  width: 390px;
  height: 700px;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 18px;
  touch-action: none;
  margin-top: 0;
}

#ui {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

#message {
  margin-top: 90px;
  color: #222;
  font-size: 1.08em;
  background: none;
  padding: 10px 18px;
  border-radius: 8px;
  display: none;
  box-sizing: border-box;
  width: calc(100% - 20px);
  margin-left: 10px;
  margin-right: 10px;
  max-width: calc(100% - 20px);
  pointer-events: auto;
}

#restart-btn, #ranking-btn, #share-btn {
  margin-top: 26px;
  padding: 12px 36px;
  background: #69c96c;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  cursor: pointer;
  box-shadow: 0 3px #388e3c;
  transition: background 0.2s;
  pointer-events: auto;
  display: none;
}
#restart-btn:hover, #ranking-btn:hover {
  background: #388e3c;
}

#ranking-btn {
  margin-top: 12px;
  background: #1976d2;
  box-shadow: 0 3px #1565c0;
}
#ranking-btn:hover {
  background: #1565c0;
}

#share-btn {
  background: #1976d2;
  box-shadow: 0 3px #1565c0;
}
#share-btn:hover {
  background: #1565c0;
}

#ranking-timer {
  font-size: 1em;
  color: #111;
  margin-bottom: 30px;
  margin-top: 15px;
  text-shadow: none;
  font-weight: bold;
}

.cadastro-btn {
  margin-top: 12px;
  padding: 10px 24px;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05em;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s;
}
.cadastro-btn:hover {
  background: #1250a7;
}

@media (max-width: 480px) {
  #mobile-frame {
    width: 99vw;
    height: 99vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  #game-canvas {
    width: 99vw;
    height: 99vh;
    border-radius: 0;
  }
}


#ranking-modal ol#ranking-list {
  counter-reset: ranking;
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
  font-size: 1.06em;
  background: #f3f6fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0002;
}
#ranking-modal ol#ranking-list li {
  padding: 7px 13px;
  border-bottom: 1px solid #eef0f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}
#ranking-modal ol#ranking-list li:last-child {
  border-bottom: none;
}


#premio-bloco {
  position: absolute;
  left: 0;
  bottom: 16px;        // <-- Fixado no rodapé por padrão!
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s;
  background: none;
}


#premio-bloco .premio-titulo,
#premio-bloco .premio-valor,
#premio-bloco .premio-cronometro {
  white-space: nowrap;   /* Evita quebra de linha nos textos do bloco */
}


#premio-bloco .cronometro-premio {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  background: none;
  border-radius: 0;
  padding: 0;
 text-shadow:none;
}

#premio-bloco .premio-titulo {


  animation: pisca 1s linear infinite;

  font-size: 1.2em;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 5px;
  background: none;
  border-radius: 0;
  padding: 0;
 text-shadow:none;
}

.premio-titulo {


  animation: pisca 2s linear infinite;

}

@keyframes pisca   {
  50% {
    opacity: 0;
  }
}

@keyframes loader-rotate {
  100% { transform: rotate(360deg);}
}

.hora-recorde {
  font-size: 0.75em;
  color: #888;
  margin-left: 4px;
  vertical-align: middle;
}


#restart-btn {
  margin-top: 26px;
  padding: 12px 36px;
  background: #ff9800;      /* Laranja vibrante */
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  cursor: pointer;
  box-shadow: 0 3px #c66900;
  transition: background 0.2s;
  pointer-events: auto;
  display: none;
}
#restart-btn:hover {
  background: #e65100;      /* Laranja mais escuro no hover */
}


#premio-bloco .cronometro,
#premio-bloco .cronometro-premio,
#cronometro-premio {
  color: #c62828 !important;
}


/* Barra de rolagem dentro do popup-regras */
.popup-regras-scroll {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 6px;
}
.popup-regras-scroll h3 {
  margin-bottom: 2px;
  margin-top: 16px;
  color: #1976d2;
}
.popup-regras-scroll ul, .popup-regras-scroll ol {
  margin-top: 4px;
  margin-bottom: 12px;
  padding-left: 22px;
}
.popup-regras-scroll li {
  margin-bottom: 7px;
}
.popup-regras-scroll em {
  color: #444;
  font-size: 0.96em;
}