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

:root {
  --p4-yellow: #FFD700;
  --p4-orange: #FF8C00;
  --p4-black: #1A1A1A;
}

.save-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: sans-serif; 
  background: linear-gradient(
    150deg,
    #FFAF00 0%, 
    #FFD72E 45%, 
    #FFF54F 100%
  );
}

.save-header {
  position: absolute;
  top: 40px;
  right: 60px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 0px #000;
}

.save-controls {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  gap: 20px;
}

.save-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-left: 10vw;
  list-style: none;
  gap: 50px;
}

.save-slot {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  height: 150px; 
  transition: transform 0.2s ease;
}

.save-slot:nth-child(1) { transform: translateX(0px); }
.save-slot:nth-child(2) { transform: translateX(40px); }
.save-slot:nth-child(3) { transform: translateX(80px); }
.save-slot:nth-child(4) { transform: translateX(120px); }

.active-banner {
  position: absolute;
  top: 50%;
  left: -50vw; 
  width: 200vw; 
  height: 170px;
  transform: translateY(-50%);
  z-index: -1;
  background-image: url('../media/images/bg-project.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%; 
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.slot-text {
  font-size: 3rem;
  font-weight: 900;
  color: transparent; 
  transform: rotate(-10deg); 
  transition: all 0.2s ease;
  background-image: url('../media/images/bg-letter-hover.png'); 
  
  /* USE UM VALOR FIXO EM PX AQUI: */
  background-size: 152px; 
  background-repeat: repeat; 
  
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
}

/* =========================================
   ESTADOS DE HOVER (Quando o mouse passa)
   ========================================= */

.save-slot:hover {
  z-index: 10; 
  cursor: pointer;
}

.save-slot:hover .active-banner {
  opacity: 1;
}

.save-slot .slot-sphere {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
  transform-origin: center; 
}

/* ========================================================
   ESTADO DE HOVER (Quando o mouse ENTRA na área do slot)
   ======================================================== */
.save-slot:hover .slot-sphere {
  animation: spherePop 0.4s ease-out;
  transform: scale(1.1); 
  filter: brightness(1.1);
}

.save-slot:hover .slot-text {
  background-image: url('../media/images/bg-letter.png'); 
  
  /* O MESMO VALOR FIXO AQUI: */
  background-size: 152px; 
  background-repeat: repeat;
  
  background-position: center; 
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes spherePop {
  0% { 
    transform: scale(1.0) skew(0deg, 0deg); 
  }
  20% { 
    transform: scale(0.8, 1.3) skew(-10deg, 5deg); 
    filter: brightness(1.3); 
  }
  50% {
    transform: scale(1.25, 0.8) skew(5deg, -10deg); 
  }
  80% { 
    transform: scale(1.15) skew(0deg, 0deg); 
  }
  100% { 
    transform: scale(1.1) skew(0deg, 0deg); 
    filter: brightness(1.1); 
  }
}

.back-btn {
  position: absolute;  
  top: 20px;
  left: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 100;
}

.back-btn img {
  width: 35px;
  display: block;
}

.keyboard-hint {
  position: fixed;     
  bottom: 20px;        
  left: 20px;          
  display: flex;       
  align-items: center;             
  transition: opacity 0.3s ease;
  z-index: 100;        
}


.keyboard-hint img {
  width: 115px;         
  height: auto;
}

.keyboard-hint span {
  color: #ffffff;      
  font-family: sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* =========================================
   VERSÃO MOBILE (Telas menores que 768px)
   ========================================= */
@media (max-width: 768px) {
  
  .save-list {
    padding-left: 5vw; 
    gap: 60px;
  }

  .save-slot:nth-child(1),
  .save-slot:nth-child(2),
  .save-slot:nth-child(3),
  .save-slot:nth-child(4) {
    transform: translateX(0px);
  }

  .save-slot {
    height: 110px; 
    gap: 15px;
  }

  .slot-text {
    font-size: 2.2rem;
  }

  .save-slot .slot-sphere img {
    width: 90px;
    height: auto;
  }

  .keyboard-hint {
    display: none;
  }

  .save-slot .slot-sphere {
    width: 160px;
    height: 160px;
  }
}