* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #74ebd5, #acb6e5);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

.game-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.game-container {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: 400px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  text-align: center;
}

.video-card {
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-card img {
  width: 100%;
  display: block;
}

.video-card h2 {
  font-size: 18px;
  padding: 10px;
  background: #f0f0f0;
  text-align: left;
  word-wrap: break-word;
}

.input-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  gap: 10px;
  flex-wrap: wrap;
}

input {
  padding: 10px;
  flex: 1;
  min-width: 150px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

input:focus {
  border-color: #0073e6;
  outline: none;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #0073e6;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #005bb5;
}

#feedback {
  font-weight: bold;
  margin: 10px 0;
  font-size: 16px;
}

#score {
  font-size: 18px;
  font-weight: bold;
}

.avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background: rgba(255,255,255,0.9);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.avatar-container img {
  width: 130px;
  border-radius: 50%;
  border: 3px solid #0073e6;
}

.avatar-container p {
  font-weight: bold;
  text-align: center;
  font-size: 16px;
}

#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

/* Avatar animations */
@keyframes bounce-small {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes bounce-big {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes lean-forward {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(10deg); }
}

/* Responsive */
@media (max-width: 850px) {
  .game-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .game-container {
    width: 90%;
  }
}

