@charset "UTF-8";


@keyframes twinkle {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}
.tools-parent-container .container {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.tools-parent-container .header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}
.tools-parent-container .title {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #FFD700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  animation: glow 2s ease-in-out infinite alternate;
  padding: var(--fs-16-32);
}
@keyframes glow {
  from {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px #FFD700;
  }
  to {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 30px #FFD700, 0 0 40px #FFD700;
  }
}
.tools-parent-container .fullscreen-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(45deg, #FF6B6B, #FF8E53);
  border: none;
  border-radius: 15px;
  padding: 10px 20px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.tools-parent-container .fullscreen-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.tools-parent-container .start-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 40px;
  margin: 20px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.tools-parent-container .start-btn {
  background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
  border: none;
  border-radius: 25px;
  padding: 25px 60px;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin: 20px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.tools-parent-container .start-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.tools-parent-container .instruction {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #FFD700;
  margin: 15px 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.tools-parent-container .select-text {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #000;
  background: #FFD700;
  padding: 10px 20px;
  border-radius: 15px;
  margin: 20px 0;
  font-weight: bold;
  display: inline-block;
}
.tools-parent-container .info-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .info-paragraph {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
  text-align: justify;
}
.tools-parent-container .loader-section {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.tools-parent-container .loader {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  position: relative;
}
.tools-parent-container .rocket-loader {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rocket-spin 2s linear infinite;
}
@keyframes rocket-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.tools-parent-container .loader-text {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fade-in-out 1.5s ease-in-out infinite alternate;
}
@keyframes fade-in-out {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.tools-parent-container .game-section {
  display: none;
  text-align: center;
}
.tools-parent-container .game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 15px 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.tools-parent-container .level-display,
.tools-parent-container .moves-display {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: bold;
  color: #333;
}
.tools-parent-container .maze-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}
.tools-parent-container .maze {
  display: grid;
  gap: 2px;
  margin: 0 auto;
  background: #333;
  border-radius: 10px;
  padding: 10px;
}
.tools-parent-container .cell {
  aspect-ratio: 1;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}
.tools-parent-container .wall {
  background: #2C3E50;
}
.tools-parent-container .path {
  background: #ECF0F1;
}
.tools-parent-container .start {
  background: #3498DB;
}
.tools-parent-container .end {
  background: #27AE60;
  animation: earth-glow 2s ease-in-out infinite alternate;
}
@keyframes earth-glow {
  0% {
    box-shadow: 0 0 10px #27AE60;
  }
  100% {
    box-shadow: 0 0 20px #27AE60, 0 0 30px #27AE60;
  }
}
.tools-parent-container .player {
  background: #E74C3C;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  animation: rocket-hover 1s ease-in-out infinite alternate;
}
@keyframes rocket-hover {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}
.tools-parent-container .player::before {
  content: "🚀";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 70%;
}
.tools-parent-container .end::before {
  content: "🌍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 70%;
}
.tools-parent-container .congratulations {
  display: none;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  margin: 20px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .congrats-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #FF6B6B;
  margin-bottom: 20px;
  animation: celebration 1s ease-in-out infinite alternate;
}
@keyframes celebration {
  0% {
    transform: scale(1) rotate(-2deg);
  }
  100% {
    transform: scale(1.1) rotate(2deg);
  }
}
.tools-parent-container .congrats-message {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #333;
  line-height: 1.6;
  margin-bottom: 30px;
}
.tools-parent-container .play-again-btn {
  background: linear-gradient(45deg, #4ECDC4, #44A08D);
  border: none;
  border-radius: 20px;
  padding: 15px 40px;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.tools-parent-container .play-again-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.tools-parent-container .confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #FFD700;
  animation: confetti-fall 3s linear infinite;
}
@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
.tools-parent-container {
  /* Mobile optimizations */
}
@media (max-width: 768px) {
  .tools-parent-container .container {
    padding: 10px;
  }
  .tools-parent-container .fullscreen-btn {
    position: relative;
    margin: 10px 0;
  }
  .tools-parent-container .game-info {
    flex-direction: column;
    text-align: center;
  }
  .tools-parent-container .maze-container {
    padding: 15px;
  }
}
@media (max-width: 480px) {
  .tools-parent-container .start-section {
    padding: 20px;
    margin: 10px;
  }
  .tools-parent-container .info-section {
    padding: 20px;
    margin: 10px 0;
  }
}
.tools-parent-container {
  /* Touch-friendly controls */
}
.tools-parent-container .touch-controls {
  display: none;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.tools-parent-container .control-btn {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.tools-parent-container .control-btn:active {
  transform: scale(0.95);
}
@media (max-width: 768px) {
  .tools-parent-container .touch-controls {
    display: flex;
  }
}