body, html {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    background-color: #cc0000;
    height: 100vh;
    overflow: hidden;
    position: relative;
  }
  
  .background-fixed {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #cc0000;
    z-index: -3;
  }
  
  #background-canvas {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /*z-index: -2;*/
  }
  
  /* MASCHERA SOPRA */
  .background-mask {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    height: 380px;
    background-color: #cc0000;
    z-index: 1;
    border-radius: 20px; /* Optional: per angoli morbidi */
  }
  
  .loader {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }
  
  .logo-loader {
    font-size: 32px;
    color: #fff;
    transition: all 1s ease;
  }
  
  .logo-loader.move-up {
    transform: translateY(-120px);
  }
  
  .press-start {
    margin-top: 20px;
    font-size: 12px;
    color: #ffcc00;
    animation: blink 1s infinite;
    transition: opacity 0.5s ease;
  }
  
  @keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
  }
  
  .press-start.fade-out {
    opacity: 0;
  }
  
  .login-container {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .login-container.show {
    opacity: 1;
    transform: translate(-50%, -30%) scale(1);
  }
  
  .login-box {
    background: #fafafa;
    padding: 30px;
    border: 4px solid #ffcc00;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    width: 300px;
    text-align: center;
  }
  
  .login-box h1 {
    font-size: 16px;
    color: #cc0000;
    margin-bottom: 20px;
  }
  
  .login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .login-box input {
    padding: 10px;
    border: 2px solid #cc0000;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    text-align: center;
  }
  
  .login-box button {
    padding: 10px;
    background-color: #cc0000;
    color: #fff;
    border: 2px solid #ffcc00;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
  }
  
  .login-box button:hover {
    background-color: #ffcc00;
    color: #000;
    transform: scale(1.05);
  }
  
  .register-button {
    margin-top: 10px;
    padding: 8px;
    background-color: transparent;
    border: 2px solid #cc0000;
    color: #cc0000;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
  }
  
  .register-button:hover {
    background-color: #cc0000;
    color: #fff;
    transform: scale(1.05);
  }
  .twitch-login {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.twitch-login-button {
  background-color: #6441a5; /* Viola Twitch */
  color: white;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  padding: 10px 20px;
  border: 2px solid #ffcc00; /* Bordo giallo retro */
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.twitch-login-button:hover {
  background-color: #9146FF;
  transform: scale(1.05);
}