.game-stage {
  width: 100vw;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

/* TESTO GIOCO FLUTTUANTE SENZA BOX */
.game-header {
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.game-title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 77, 141, 0.8), 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 0;
  letter-spacing: 1px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-subtitle {
  font-size: 1.1rem;
  color: #7d7d7d;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
  margin-top: 10px;
  opacity: 0.9;
}

/* CONTROLI E BOTTONI ARCADE */
.game-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  min-height: 180px;
  position: relative;
}

.btn-game {
  border: none;
  outline: none;
  border-radius: 50px;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  padding: 18px 45px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  
  /* Animazione fluida da videogioco */
  will-change: transform, left, top;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.2s ease, 
              background-color 0.2s ease;
}

/* TASTO SÌ GAME STYLE */
.btn-si {
  background: linear-gradient(135deg, #2ecc71 0%, #1abc9c 100%);
  box-shadow: 0 10px 25px rgba(46, 204, 113, 0.5), 
              0 4px 0 #1e8449;
  z-index: 100;
}

.btn-si:active {
  transform: scale(0.95);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4), 
              0 2px 0 #1e8449;
}

/* TASTO NO GAME STYLE */
.btn-no {
  background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
  box-shadow: 0 10px 25px rgba(255, 71, 87, 0.5), 
              0 4px 0 #b2bec3;
  z-index: 90;
}

/* QUANDO IL NO SCAPPA USA IL POSIZIONAMENTO FLUIDO FISSO */
.btn-no.game-escaping {
  position: fixed !important;
  transition: left 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              top 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              transform 0.3s ease !important;
}

/* OVERLAY VITTORIA IMMERSIVO */
.victory-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.victory-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* SCHEDA DI VITTORIA POP-UP */
.victory-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff0f5 100%);
  padding: 40px 30px;
  border-radius: 30px;
  text-align: center;
  max-width: 380px;
  width: 85%;
  box-shadow: 0 20px 50px rgba(255, 77, 141, 0.5),
              0 0 0 2px rgba(255, 255, 255, 0.8);
  transform: scale(0.5) translateY(50px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.victory-overlay.active .victory-card {
  transform: scale(1) translateY(0);
}

.victory-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  animation: pulse-heart 1.2s infinite ease-in-out;
}

.victory-title {
  color: #ff3366;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.victory-text {
  color: #666;
  font-size: 1rem;
  margin: 0 0 25px 0;
}

/* TASTO CONTINUA */
.btn-continue {
  background: linear-gradient(135deg, #ff3366 0%, #ff6b81 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 51, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-continue:active {
  transform: scale(0.95);
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}