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

 body {
     font-family: 'Comic Sans MS', cursive, sans-serif;
     background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
     display: flex;
     justify-content: center;
     align-items: center;

 }

 .scale-wrapper {
     display: flex;
     justify-content: center;
     align-items: center;
     width: 100vw;
     height: 100vh;
     overflow: hidden;
 }


 .game-container {
     width: 780px;
     height: 750px;
     background: white;
     border-radius: 20px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
     position: relative;
     overflow: hidden;
 }

 .header {
     height: 80px;
     background: linear-gradient(90deg, #00b894, #00cec9);
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0 20px;
     color: white;
     font-weight: bold;
 }

 .score {
     font-size: 24px;
 }

 .lives {
     font-size: 24px;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .timer {
     font-size: 24px;
     color: white;
     font-weight: bold;
 }

 .timer.warning {
     color: #e74c3c;
     animation: pulse 1s infinite;
 }

 @keyframes pulse {

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

     50% {
         transform: scale(1.1);
     }
 }

 .life-heart {
     color: #e74c3c;
     font-size: 28px;
 }

 .home-btn {
     background: #e74c3c;
     color: white;
     border: none;
     padding: 12px 20px;
     border-radius: 25px;
     cursor: pointer;
     font-weight: bold;
     font-size: 16px;
     transition: all 0.3s ease;
 }

 .home-btn:hover {
     background: #c0392b;
     transform: scale(1.05);
 }

 .game-area {
     height: 670px;
     padding: 20px;
     display: flex;
     flex-direction: column;
     gap: 20px;
 }

 .baskets {
     display: flex;
     justify-content: space-around;
     gap: 20px;
     margin-bottom: 30px;
 }

 .basket {
     width: 300px;
     height: 150px;
     border: 4px dashed #ddd;
     border-radius: 20px;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     font-size: 24px;
     font-weight: bold;
     transition: all 0.3s ease;
     position: relative;
 }

 .healthy-basket {
     background: linear-gradient(135deg, #00b894, #55efc4);
     color: white;
     border-color: #00b894;
 }

 .unhealthy-basket {
     background: linear-gradient(135deg, #e74c3c, #fd79a8);
     color: white;
     border-color: #e74c3c;
 }

 .basket.drag-over {
     transform: scale(1.05);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
 }

 .foods-container {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 20px;
     justify-items: center;
 }

 .food-item {
     width: 120px;
     height: 80px;
     background: white;
     border: 3px solid #74b9ff;
     border-radius: 15px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: bold;
     font-size: 16px;
     cursor: grab;
     transition: all 0.3s ease;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
     text-align: center;
     padding: 10px;
 }

 .food-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
 }

 .food-item:active {
     cursor: grabbing;
     transform: scale(0.95);
 }

 .food-item.dragging {
     opacity: 0.7;
     transform: rotate(5deg);
 }

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

 .start-screen {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(135deg, #a0f0df 0%, #0984e3 100%);
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     color: white;
     text-align: center;
     z-index: 1001;
 }

 .game-title {
     font-size: 48px;
     font-weight: bold;
     margin-bottom: 20px;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
 }

 .game-subtitle {
     font-size: 24px;
     margin-bottom: 30px;
     opacity: 0.9;
 }

 .start-instructions {
     font-size: 18px;
     margin-bottom: 40px;
     max-width: 500px;
     line-height: 1.6;
     opacity: 0.8;
 }

 .start-btn {
     background: #00b894;
     color: white;
     border: none;
     padding: 20px 40px;
     border-radius: 50px;
     font-size: 24px;
     font-weight: bold;
     cursor: pointer;
     transition: all 0.3s ease;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
 }

 .start-btn:hover {
     background: #00a085;
     transform: scale(1.05);
     box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
 }

 .game-content {
     display: none;
 }

 .game-over-title {
     font-size: 48px;
     font-weight: bold;
     margin-bottom: 20px;
 }

 .health-status {
     font-size: 32px;
     margin-bottom: 30px;
     padding: 20px;
     border-radius: 15px;
     background: rgba(255, 255, 255, 0.1);
 }

 .replay-btn {
     background: #00b894;
     color: white;
     border: none;
     padding: 15px 30px;
     border-radius: 25px;
     font-size: 20px;
     font-weight: bold;
     cursor: pointer;
     transition: all 0.3s ease;
 }

 .replay-btn:hover {
     background: #00a085;
     transform: scale(1.05);
 }

 .feedback {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     font-size: 32px;
     font-weight: bold;
     color: white;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
     pointer-events: none;
     opacity: 0;
     transition: opacity 0.5s ease;
 }

 .feedback.show {
     opacity: 1;
 }

 .instructions {
     text-align: center;
     font-size: 18px;
     color: #333;
     margin-bottom: 20px;
     font-weight: bold;
 }