@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&family=Tiny5&display=swap");


/* ===== ESTILOS BASE E HORIZONTE ROXO ===== */
body {
  /* Gradiente escuro para roxo de horizonte Tamagotchi */
  background: linear-gradient(180deg, #0d164f 0%, #1a2fb0 50%, #4b2d8a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow-x: hidden; /* Scroll vertical ativo */
}

/* Efeito de Ruído/Grão */
body::before {
  content: "";
  position: fixed; 
  top: 0; left: 0; width: 100%; height: 100%;
  filter: url(#noiseFilter);
  opacity: 0.18; 
  z-index: -1; 
  pointer-events: none;
}

/* ===== CHUVA PIXEL SUAVE ===== */
.rain {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2; 
  pointer-events: none;
}

.drop {
  position: absolute;
  bottom: 100%;
  width:2px;
  height: 80px;
  background: #ffffff;
  opacity: 0.50; 
  image-rendering: pixelated;
  animation: dropMove 1.4s linear infinite;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes dropMove {
  0% { transform: translateY(-10vh); opacity: 0; }
  20% { opacity: 0.12; }
  80% { opacity: 0.12; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* ===== NUVENS GIGANTES COM PIXEL ARREDONDADO E GLOW ===== */
#background-wrap {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -3; 
    pointer-events: none;
}

.cloud-group {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    left: -1200px;
    border-radius: 2px; /* Pixel arredondado */
    /* Brilho suave (Glow) */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Formas Variadas */
.type-a { /* Montanhosa */
    box-shadow: 0 0 #fff, 10px 0 #fff, 20px 0 #fff, 0 -10px #fff, 10px -10px #fff, -10px 10px #fff, 0 10px #fff, 10px 10px #fff, 20px 10px #fff, 30px 10px #fff;
}
.type-b { /* Longa */
    box-shadow: -20px 0 #fff, -10px 0 #fff, 0 0 #fff, 10px 0 #fff, 20px 0 #fff, 30px 0 #fff, 40px 0 #fff, 50px 0 #fff, 10px 10px #fff, 20px 10px #fff, 30px 10px #fff;
}
.type-c { /* Cumulus */
    box-shadow: 10px 0 #fff, 20px 0 #fff, 0 10px #fff, 10px 10px #fff, 20px 10px #fff, 30px 10px #fff, 10px -10px #fff, 5px 20px #fff, 15px 20px #fff;
}

/* Animação Zen */
@keyframes moveCloud {
    from { transform: translateX(0) scale(var(--s)); }
    to { transform: translateX(calc(100vw + 1600px)) scale(var(--s)); }
}

/* Configurações de Escala e Posição */
.x1 { --s: 14.0; top: 12%; animation: moveCloud 240s linear infinite; opacity: 0.10; }
.x2 { --s: 9.0;  top: 38%; animation: moveCloud 310s linear infinite; opacity: 0.07; animation-delay: -60s; }
.x3 { --s: 16.0; top: 65%; animation: moveCloud 210s linear infinite; opacity: 0.12; animation-delay: -110s; }
.x4 { --s: 7.5;  top: 25%; animation: moveCloud 360s linear infinite; opacity: 0.05; animation-delay: -40s; }
.x5 { --s: 15.0; top: 82%; animation: moveCloud 290s linear infinite; opacity: 0.09; animation-delay: -190s; }
.x6 { --s: 10.0; top: 52%; animation: moveCloud 330s linear infinite; opacity: 0.06; animation-delay: -85s; }
.x7 { --s: 12.5; top: 18%; animation: moveCloud 270s linear infinite; opacity: 0.08; animation-delay: -30s; }
.x8 { --s: 8.0;  top: 75%; animation: moveCloud 340s linear infinite; opacity: 0.04; animation-delay: -150s;}


/* Scrollbar geral */
::-webkit-scrollbar {
  width: 20px;
  height: 20px;
}

::-webkit-scrollbar-track {
  background-color: var(--blue-700);
  border: 2px solid var(--blue-700);
  box-shadow: inset 2px 2px 0px var(--blue-300), inset -2px -2px 0px var(--blue-800);
}

::-webkit-scrollbar-thumb {
  background-color: var(--blue-500);
  border: 2px solid var(--blue-500);
  box-shadow: inset 2px 2px 0px var(--blue-200), inset -2px -2px 0px var(--blue-800);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--blue-600);
}

::-webkit-scrollbar-button:single-button:decrement {
  background-color: var(--blue-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon points='5,2 2,7 8,7' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  border: 2px solid var(--blue-800);
  box-shadow: inset 2px 2px 0px var(--blue-200), inset -2px -2px 0px var(--blue-800);
  height: 18px;
  width: 20px;
}

::-webkit-scrollbar-button:single-button:increment {
  background-color: var(--blue-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon points='2,3 8,3 5,8' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  border: 2px solid var(--blue-800);
  box-shadow: inset 2px 2px 0px var(--blue-200), inset -2px -2px 0px var(--blue-800);
  height: 18px;
  width: 20px;
}

::-webkit-scrollbar-button:hover {
  background-color: var(--blue-600);
}

::-webkit-scrollbar-corner {
  background-color: var(--blue-500);
  border: 2px solid var(--blue-800);
  box-shadow: inset 2px 2px 0px var(--blue-200), inset -2px -2px 0px var(--blue-800);
}

footer {
  background: linear-gradient(
    80deg,
    var(--blue-600),
    var(--blue-600)
  );

  backdrop-filter: blur(8px);
  padding: 2rem;
  text-align: center;
  margin-top: 5rem;

  box-shadow:
    inset 0px -4px 0px var(--blue-800);
}

.paragrafo_footer {
  font-family: "Pixelify Sans", sans-serif;
  color: var(--text-main);
  font-size: 1.2rem;
  margin-top: 1.25rem;
}

#retro-loader {
  position: fixed;
  inset: 0;
  background: var(--blue-800);
  color: var(--text-soft);
  font-family: "Pixelify Sans", monospace;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#retro-loader p {
  font-size: 2rem;
  letter-spacing: 0.3rem;
  margin-bottom: 2rem;
}

.barra {
  width: 300px;
  height: 20px;
  border: 2px solid var(--text-soft);
  position: relative;
  image-rendering: pixelated;
}

.progresso {
  width: 0%;
  height: 100%;
  background: #B2F2BB;
  image-rendering: pixelated;
}