:root{
    --gradient-light:linear-gradient(135deg, #ffebc4 0%, #de9206a2 100%);
    --gradient-dark:linear-gradient(45deg, #dfab46 40%, #dfb86d 40%, #dfab46 61%);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
.tools-parent-container .header {
  text-align: center;
  margin-bottom: 40px;
  animation: slideDown 0.8s ease-out;
  padding-top: 0px;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tools-parent-container .header h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #fff;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.tools-parent-container .header .emoji {
  font-size: clamp(3rem, 6vw, 5rem);
  animation: bounce 2s infinite;
  margin-bottom: 10px;
  display: block;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
.tools-parent-container {
  /* Total Score Card - Enhanced Design */
}
.tools-parent-container .total-score-card {
  position: absolute;
  top: 80px;
  right: 20px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 50%, #ff8c00 100%);
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 -3px 10px rgba(0, 0, 0, 0.15);
  border: 4px solid #fff;
  animation: pulse 2s infinite, glow-card 3s ease-in-out infinite;
  z-index: 10;
  min-width: 220px;
  backdrop-filter: blur(10px);
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}
@keyframes glow-card {
  0%,
  100% {
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4),
      0 5px 15px rgba(0, 0, 0, 0.3), inset 0 -3px 10px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.6),
      0 8px 25px rgba(255, 140, 0, 0.4), inset 0 -3px 10px rgba(0, 0, 0, 0.15);
  }
}
.tools-parent-container .total-score-card h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: #8b0000;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3),
    -1px -1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}
.tools-parent-container .total-score-display {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4),
    -2px -2px 4px rgba(255, 255, 255, 0.2), 0 0 20px rgba(139, 0, 0, 0.3);
  background: linear-gradient(180deg, #fff 0%, #ffe4b5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.tools-parent-container {
  /* Progress Bar in Total Score Card */
}
.tools-parent-container .total-score-card .progress-container {
  width: 100%;
  background: rgba(139, 0, 0, 0.3);
  border-radius: 15px;
  padding: 4px;
  margin: 15px 0 0 0;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .total-score-card .progress-bar {
  height: 12px;
  background: linear-gradient(90deg, #ff0000 0%, #ff6347 50%, #ffd700 100%);
  border-radius: 12px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(255, 99, 71, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.tools-parent-container .total-score-card .progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: progress-shine 2s infinite;
}
@keyframes progress-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.tools-parent-container {
  /* Learning Path Container - Horizontal Carousel */
}
.tools-parent-container .learning-path {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 20px;
  min-height: 550px;
}
.tools-parent-container {
  /* Level Container - Carousel Style */
}
.tools-parent-container .level-container {
  position: absolute;
  width: 90%;
  max-width: 450px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.tools-parent-container .level-container.center {
  transform: translateX(0) scale(1);
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}
.tools-parent-container .level-container.left {
  transform: translateX(-100%) scale(0.7);
  z-index: 1;
  opacity: 0.4;
  filter: brightness(0.7);
}
.tools-parent-container .level-container.right {
  transform: translateX(100%) scale(0.7);
  z-index: 1;
  opacity: 0.4;
  filter: brightness(0.7);
}
.tools-parent-container .level-container.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.3);
}
.tools-parent-container {
  /* Level Card */
}
.tools-parent-container .level-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 35px;
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border: 6px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.tools-parent-container .level-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}
.tools-parent-container .level-card:hover::before {
  left: 100%;
}
.tools-parent-container .level-card.locked {
  cursor: not-allowed;
  background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
}
.tools-parent-container .level-card.locked::after {
  position: absolute;
  inset: 0;
  background: rgba(131, 131, 131, 0.3882352941);
  content: "";
  border-radius: 30px;
}
.tools-parent-container .level-card.unlocked {
  border-color: #4a00e0;
  animation: glow 2s infinite;
}
.tools-parent-container .level-card.completed {
  border-color: #ffd700;
  background: linear-gradient(135deg, #fff9e6 0%, #fffacd 100%);
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 15px 40px rgba(74, 0, 224, 0.3),
      0 0 30px rgba(74, 0, 224, 0.2);
  }
  50% {
    box-shadow: 0 15px 50px rgba(74, 0, 224, 0.5),
      0 0 50px rgba(74, 0, 224, 0.4);
  }
}
.tools-parent-container {
  /* Level Header */
}
.tools-parent-container .level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}
.tools-parent-container .level-number {
  font-size: clamp(1.2rem, 2vw, 2.3rem);
  font-weight: bold;
  color: #4a00e0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tools-parent-container .level-icon {
  width: clamp(55px, 10vw, 75px);
  height: clamp(55px, 10vw, 75px);
  background: linear-gradient(135deg, #26d0ce 0%, #1a2980 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 8px 25px rgba(26, 41, 128, 0.4), 0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.15);
  padding: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.tools-parent-container .level-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: icon-shine 3s infinite;
}
@keyframes icon-shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}
.tools-parent-container .level-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}
.tools-parent-container .level-icon.completed-icon {
  animation: float 3s infinite ease-in-out, icon-glow 2s infinite;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 50%, #ff8c00 100%);
  border-color: #ffd700;
}
@keyframes icon-glow {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.2),
      inset 0 -2px 8px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.7),
      0 6px 15px rgba(255, 140, 0, 0.4), inset 0 -2px 8px rgba(0, 0, 0, 0.15);
  }
}
.tools-parent-container .stars-display {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #8b0000;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: var(--fs-12-20);
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4), 0 3px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5),
    -1px -1px 1px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}
.tools-parent-container .level-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #2d3436;
  margin-bottom: 20px;
  font-weight: bold;
}
.tools-parent-container {
  /* Tools List */
}
.tools-parent-container .tools-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.tools-parent-container .tools-list li {
  padding: 12px 20px;
  margin: 8px 0;
  background: linear-gradient(135deg, #ffebc4 0%, #ffebc4ad 100%);
  border-radius: 15px;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: #2d3436;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: default;
  display: flex;
  justify-content: space-between;
}

.tools-parent-container .tool-item {
  padding: 12px 20px;
  margin: 8px 0;
  background: linear-gradient(135deg, #8ec5fc 0%, #e0c3fc 100%);
  border-radius: 15px;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: #2d3436;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: default;
}
.tools-parent-container .tool-item:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, #7bb5f5 0%, #d4b2fc 100%);
}
.tools-parent-container .tool-item::before {
  content: "";
  display: inline-block;
  width: 20px; /* image width */
  height: 20px; /* image height */
  background-image: url("https://easyshiksha.com/online_courses/assets/learningPaths/sst/games/level-1/images/star2.svg"); /* your image path */
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
  vertical-align: middle;
}
.tools-parent-container {
  /* Games List */
}
.tools-parent-container .games-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}
.tools-parent-container .game-item {
  padding: 10px 16px;
  margin: 8px 0;
  background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
  border-radius: 12px;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: #2d3436;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tools-parent-container .game-item:hover {
  transform: translateX(5px);
}
.tools-parent-container .game-item::before {
  content: "🎮 ";
  margin-right: 6px;
}
.tools-parent-container {
  /* Start Button */
}
.tools-parent-container .start-button {
  background: linear-gradient(135deg, #26d0ce 0%, #1a2980 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-family: inherit;
  margin-top: 15px;
  width: 100%;
}
.tools-parent-container .start-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
}
.tools-parent-container .start-button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}
.tools-parent-container {
  /* Navigation Buttons */
}
.tools-parent-container .nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #26d0ce 0%, #1a2980 100%);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools-parent-container .nav-button:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
}
.tools-parent-container .nav-button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  opacity: 0.5;
}
.tools-parent-container .nav-button.prev {
  left: 10px;
}
.tools-parent-container .nav-button.next {
  right: 10px;
}
.tools-parent-container {
  /* Level Indicator Dots */
}
.tools-parent-container .level-indicators {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.tools-parent-container .indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.tools-parent-container .indicator-dot.active {
  background: #ffd700;
  box-shadow: 0 0 15px #ffd700;
  transform: scale(1.5);
}
.tools-parent-container .indicator-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}
.tools-parent-container {
  /* Lights Effect for Completed Levels */
}
.tools-parent-container .level-lights {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
}
.tools-parent-container .level-lights.active {
  opacity: 1;
  animation: lightsOn 0.5s ease-out;
}
@keyframes lightsOn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
.tools-parent-container .light-bulb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  animation: bulbBlink 1.5s infinite;
}
.tools-parent-container .light-bulb:nth-child(1) {
  background: #ffd700;
  box-shadow: 0 0 15px #ffd700;
}
.tools-parent-container .light-bulb:nth-child(2) {
  background: #26d0ce;
  box-shadow: 0 0 15px #26d0ce;
  animation-delay: 0.3s;
}
.tools-parent-container .light-bulb:nth-child(3) {
  background: #4a00e0;
  box-shadow: 0 0 15px #4a00e0;
  animation-delay: 0.6s;
}
.tools-parent-container .light-bulb:nth-child(4) {
  background: #ff6b6b;
  box-shadow: 0 0 15px #ff6b6b;
  animation-delay: 0.9s;
}
@keyframes bulbBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.tools-parent-container {
  /* Status Badge */
}
.tools-parent-container .status-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .status-badge.locked {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: white;
}
.tools-parent-container .status-badge.unlocked {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  animation: tada 1s ease-out;
}
.tools-parent-container .status-badge.completed {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #2d3436;
}
@keyframes tada {
  0% {
    transform: scale(1) rotate(0deg);
  }
  10%,
  20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%,
  50%,
  70%,
  90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%,
  60%,
  80% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
.tools-parent-container {
  /* Progress Bar in Level Card */
}
.tools-parent-container .progress-container {
  width: 100%;
  background: rgba(26, 41, 128, 0.2);
  border-radius: 20px;
  padding: 5px;
  margin: 20px 0;
}
.tools-parent-container .progress-bar {
  height: 15px;
  background: linear-gradient(90deg, #26d0ce 0%, #1a2980 100%);
  border-radius: 15px;
  transition: width 0.5s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.tools-parent-container {
  /* Lock Icon */
}
.tools-parent-container .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}
.tools-parent-container {
  /* Confetti Effect */
}
.tools-parent-container .confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #ffd700;
  position: absolute;
  animation: confetti-fall 3s linear;
  z-index: 1000;
}
@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
.tools-parent-container #levelsContainer {
  width: 99%;
  height: 59vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tools-parent-container {
  /* Floating Animation for Emoji */
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
  }
  75% {
    transform: translateY(-5px) rotate(-5deg);
  }
}
.tools-parent-container .level-icon.completed-icon {
  animation: float 3s infinite ease-in-out;
}
.tools-parent-container {
  /* ========== TOOL CONTAINER STYLES ========== */
}
.tools-parent-container .tool-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
  z-index: 100;
  padding: 20px;
  overflow-y: auto;
}
.tools-parent-container .tool-container.hidden {
  display: none;
}
.tools-parent-container .tool-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}
.tools-parent-container .back-button {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #8b0000;
  border: none;
  padding: 12px 24px;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tools-parent-container .back-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}
.tools-parent-container .tool-header h2 {
  font-size: 2rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  flex-grow: 1;
  text-align: center;
}
.tools-parent-container .tool-content {
  background: white;
  border-radius: 25px;
  padding: 30px;
  min-height: 400px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.tools-parent-container {
  /* Loading Overlay */
}
.tools-parent-container .loading-overlay {
  position: fixed;
  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;
  z-index: 2000;
  backdrop-filter: blur(5px);
}
.tools-parent-container .loading-overlay.hidden {
  display: none;
}
.tools-parent-container .spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #26d0ce;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.tools-parent-container .loading-overlay p {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.tools-parent-container {
  /* Success Animation */
}
@keyframes successPop {
  0% {
    transform: scale(0) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}
.tools-parent-container .success-icon {
  animation: successPop 0.6s ease-out;
}
.tools-parent-container {
  /* Responsive Design */
}
@media (max-width: 992px) {
  .tools-parent-container .total-score-card {
    position: relative;
    top: 0;
    right: 0;
    margin: 0 auto 35px;
    max-width: 320px;
    padding: 18px 25px;
  }
  .tools-parent-container .total-score-card h3 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 10px;
  }
  .tools-parent-container .total-score-display {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }
}
@media (max-width: 768px) {
  .tools-parent-container .learning-path {
    min-height: 500px;
    padding: 40px 10px;
  }
  .tools-parent-container .level-container {
    max-width: 350px;
  }
  .tools-parent-container .level-container.left {
    transform: translateX(-110%) scale(0.65);
  }
  .tools-parent-container .level-container.right {
    transform: translateX(110%) scale(0.65);
  }
  .tools-parent-container .nav-button {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  .tools-parent-container .nav-button.prev {
    left: 5px;
  }
  .tools-parent-container .nav-button.next {
    right: 5px;
  }
  .tools-parent-container .level-indicators {
    bottom: 5px;
    gap: 10px;
  }
  .tools-parent-container .indicator-dot {
    width: 10px;
    height: 10px;
  }
  .tools-parent-container .tool-header {
    flex-direction: column;
    gap: 15px;
  }
  .tools-parent-container .back-button {
    align-self: flex-start;
  }
  .tools-parent-container .tool-header h2 {
    font-size: 1.5rem;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .tools-parent-container body {
    padding: 10px;
  }
  .tools-parent-container .header {
    margin-bottom: 20px;
  }
  .tools-parent-container .learning-path {
    min-height: 450px;
    padding: 30px 5px;
  }
  .tools-parent-container .level-container {
    max-width: 300px;
  }
  .tools-parent-container .level-card {
    padding: 20px;
  }
  .tools-parent-container .tool-item {
    padding: 10px 15px;
  }
  .tools-parent-container .start-button {
    padding: 12px 30px;
  }
  .tools-parent-container .nav-button {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  .tools-parent-container .lock-icon {
    font-size: 3rem;
  }
  .tools-parent-container .tool-content {
    padding: 20px;
  }
}
@media (max-width: 380px) {
  .tools-parent-container .level-container {
    max-width: 280px;
  }
  .tools-parent-container .level-container.left,
  .tools-parent-container .level-container.right {
    opacity: 0.2;
  }
  .tools-parent-container .header h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  .tools-parent-container .header .emoji {
    font-size: clamp(2rem, 4vw, 3rem);
  }
}
.tools-parent-container {
  /* Game Stars */
}
.tools-parent-container .game-stars {
  display: flex;
  gap: 2px;
}
.tools-parent-container .game-star {
  font-size: 1em;
  opacity: 0.4;
}
.tools-parent-container .game-star.earned {
  opacity: 1;
  animation: starBurst 0.5s ease-out;
}
@keyframes starBurst {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.tools-parent-container {
  /* Star Icon Animation */
}
.tools-parent-container .star-icon {
  font-size: 1.2em;
  animation: starTwinkle 1.5s infinite;
}
@keyframes starTwinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
