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

  body {
      font-family: 'Comic Sans MS', cursive;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      overflow: hidden;
      height: 100vh;
  }

 
/* Wrapper centers and scales the fixed game container */
 .scale-wrapper {
     display: flex;
     justify-content: center;
     align-items: center;
     width: 100vw;
     height: 100vh;
     overflow: hidden;
 }

.game-container {
    width: 780px;
    height: 750px;
    position: absolute; /* so translate works properly */
    top: 0;
    left: 0;
}



 .game-container {
     width: 780px;
     height: 750px;
     background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
     border-radius: 20px;
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
     /* position: relative; */
     /* overflow: hidden; */
 }

  .start-screen {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4);
      background-size: 400% 400%;
      animation: gradientShift 3s ease infinite;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 1000;
  }

  @keyframes gradientShift {

      0%,
      100% {
          background-position: 0% 50%;
      }

      50% {
          background-position: 100% 50%;
      }
  }

  .game-title {
      font-size: 48px;
      color: white;
      text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
      margin-bottom: 30px;
      animation: bounce 2s infinite;
  }

  @keyframes bounce {

      0%,
      20%,
      50%,
      80%,
      100% {
          transform: translateY(0);
      }

      40% {
          transform: translateY(-10px);
      }

      60% {
          transform: translateY(-5px);
      }
  }

  .start-button {
      padding: 15px 40px;
      font-size: 24px;
      background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
      color: white;
      border: none;
      border-radius: 25px;
      cursor: pointer;
      transition: transform 0.3s, box-shadow 0.3s;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .start-button:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }

  .home-button {
      position: absolute;
      top: 20px;
      right: 20px;
      padding: 10px 20px;
      background: #FF6B6B;
      color: white;
      border: none;
      border-radius: 20px;
      cursor: pointer;
      font-size: 16px;
      z-index: 100;
      transition: transform 0.3s;
  }

  .home-button:hover {
      transform: scale(1.1);
  }

  .game-ui {
      position: absolute;
      top: 20px;
      left: 20px;
      color: #333;
      font-size: 20px;
      font-weight: bold;
      z-index: 50;
  }

  .lives {
      margin-bottom: 10px;
  }

  .score {
      margin-bottom: 10px;
  }

  .timer {
      color: #FF6B6B;
  }

  .balloon {
      position: absolute;
      width: 80px;
      height: 100px;
      border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: bold;
      color: white;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
      animation: float 3s ease-in-out infinite;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  @keyframes float {

      0%,
      100% {
          transform: rotate(0deg);
      }

      25% {
          transform: rotate(2deg);
      }

      75% {
          transform: rotate(-2deg);
      }
  }

  .balloon::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 2px;
      height: 20px;
      background: #666;
  }

  .nails {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 30px;
      background: repeating-linear-gradient(90deg,
              #8B4513 0px,
              #8B4513 10px,
              #A0522D 10px,
              #A0522D 20px);
      border-top: 3px solid #654321;
  }

  .nail {
      position: absolute;
      width: 0;
      height: 0;
      border-left: 8px solid transparent;
      border-right: 8px solid transparent;
      border-bottom: 20px solid #2F4F4F;
      bottom: 30px;
  }

  .answer-box {
      position: absolute;
      bottom: 150px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255, 255, 255, 0.9);
      padding: 20px;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      display: flex;
      gap: 10px;
      align-items: center;
  }

  .answer-input {
      padding: 10px;
      font-size: 18px;
      border: 2px solid #4ECDC4;
      border-radius: 10px;
      width: 100px;
      text-align: center;
  }

  .submit-button {
      padding: 10px 20px;
      background: #4ECDC4;
      color: white;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-size: 16px;
      transition: transform 0.3s;
  }

  .submit-button:hover {
      transform: scale(1.1);
  }

  .pop-effect {
      position: absolute;
      font-size: 24px;
      font-weight: bold;
      animation: popAnimation 1s ease-out;
      pointer-events: none;
      z-index: 200;
  }

  @keyframes popAnimation {
      0% {
          transform: scale(0);
          opacity: 1;
      }

      50% {
          transform: scale(1.2);
          opacity: 1;
      }

      100% {
          transform: scale(1);
          opacity: 0;
      }
  }

  .correct {
      color: #00FF00;
  }

  .wrong {
      color: #FF0000;
  }

  .game-over {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: white;
      font-size: 36px;
      z-index: 1000;
  }

  .clouds {
      position: absolute;
      width: 100px;
      height: 40px;
      background: white;
      border-radius: 50px;
      opacity: 0.8;
      animation: cloudFloat 20s infinite linear;
  }

  .clouds::before,
  .clouds::after {
      content: '';
      position: absolute;
      background: white;
      border-radius: 50px;
  }

  .clouds::before {
      width: 50px;
      height: 50px;
      top: -25px;
      left: 10px;
  }

  .clouds::after {
      width: 60px;
      height: 30px;
      top: -15px;
      right: 15px;
  }

  @keyframes cloudFloat {
      0% {
          transform: translateX(-100px);
      }

      100% {
          transform: translateX(780px);
      }
  }