/* .tools-parent-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.tools-parent-container body {
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow: hidden;
}
.tools-parent-container {
  /* Welcome Screen */
} */
.tools-parent-container .welcome-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  animation: gradientShift 10s ease infinite;
}
@keyframes gradientShift {
  0%, 100% {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  }
  50% {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  }
}
.tools-parent-container .welcome-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: 500px;
}
.tools-parent-container .welcome-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ff6b6b;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .bounce-emoji {
  display: inline-block;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
.tools-parent-container .welcome-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #6c5ce7;
  margin-bottom: 2rem;
}
.tools-parent-container .welcome-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.tools-parent-container .play-btn, .tools-parent-container .how-btn {
  background: linear-gradient(45deg, #00b894, #00cec9);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}
.tools-parent-container .how-btn {
  background: linear-gradient(45deg, #fd79a8, #fdcb6e);
}
.tools-parent-container .play-btn:hover, .tools-parent-container .how-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .btn-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}
.tools-parent-container .character-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 2rem;
  animation: slideIn 1s ease;
}
.tools-parent-container .robot-character, .tools-parent-container .treasure-character {
  font-size: 3rem;
  animation: wiggle 2s infinite;
}
@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}
.tools-parent-container .path-dots {
  color: #b2bec3;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
.tools-parent-container {
  /* Modal Styles */
}
.tools-parent-container .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.tools-parent-container .modal-content {
  position: relative;
  background: white;
  margin: 5% auto;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  border-radius: 30px;
  animation: slideDown 0.5s ease;
  max-height: 80vh;
  overflow-y: auto;
}
@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.tools-parent-container .close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #e74c3c;
  transition: transform 0.3s;
}
.tools-parent-container .close-btn:hover {
  transform: rotate(90deg);
}
.tools-parent-container {
  /* How to Play Modal */
}
.tools-parent-container .how-to-play h2 {
  text-align: center;
  color: #6c5ce7;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.tools-parent-container .instructions {
  margin-bottom: 2rem;
}
.tools-parent-container .instruction-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 15px;
  transition: transform 0.3s;
}
.tools-parent-container .instruction-item:hover {
  transform: translateX(10px);
  background: #e8f5e9;
}
.tools-parent-container .instruction-icon {
  font-size: 2rem;
  margin-right: 1rem;
}
.tools-parent-container .block-examples {
  margin-top: 2rem;
}
.tools-parent-container .block-examples h3 {
  color: #00b894;
  margin-bottom: 1rem;
}
.tools-parent-container .example-block {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .example-block.move {
  background: #a29bfe;
  color: white;
}
.tools-parent-container .example-block.turn {
  background: #fd79a8;
  color: white;
}
.tools-parent-container .example-block.repeat {
  background: #fdcb6e;
  color: white;
}
.tools-parent-container .got-it-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, #00b894, #00cec9);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s;
  font-family: inherit;
}
.tools-parent-container .got-it-btn:hover {
  transform: scale(1.05);
}
.tools-parent-container {
  /* Level Selection Screen */
}
.tools-parent-container .level-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 2rem;
}
.tools-parent-container .level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tools-parent-container .level-header h1 {
  color: #6c5ce7;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.tools-parent-container .back-btn {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.3s;
  font-family: inherit;
}
.tools-parent-container .back-btn:hover {
  transform: translateX(-5px);
}
.tools-parent-container .levels-container {
  max-width: 1200px;
  margin: 0 auto;
}
.tools-parent-container .levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.tools-parent-container .level-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}
.tools-parent-container .level-card:hover:not(.locked) {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .level-card.locked {
  background: #e0e0e0;
  cursor: not-allowed;
  opacity: 0.7;
}
.tools-parent-container .level-number {
  font-size: 2rem;
  font-weight: bold;
  color: #6c5ce7;
  margin-bottom: 0.5rem;
}
.tools-parent-container .level-status {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.tools-parent-container .level-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.tools-parent-container .level-star {
  font-size: 1.5rem;
  opacity: 0.3;
}
.tools-parent-container .level-star.filled {
  opacity: 1;
  animation: starPop 0.5s ease;
}
@keyframes starPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
.tools-parent-container .level-score {
  font-size: 0.9rem;
  color: #7f8c8d;
}
.tools-parent-container .random-level-container {
  text-align: center;
}
.tools-parent-container .random-level-btn {
  background: linear-gradient(45deg, #e17055, #fdcb6e);
  color: white;
  border: none;
  padding: 1.5rem 3rem;
  border-radius: 30px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}
.tools-parent-container .random-level-btn:hover {
  transform: scale(1.1);
}
.tools-parent-container .random-icon {
  font-size: 2rem;
  margin-right: 1rem;
  animation: rotate 2s linear infinite;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.tools-parent-container {
  /* Game Screen */
}
.tools-parent-container .game-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.tools-parent-container .game-header {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}
.tools-parent-container .game-info, .tools-parent-container .game-stats, .tools-parent-container .game-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.tools-parent-container .level-info, .tools-parent-container .blocks-info {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  color: #6c5ce7;
}
.tools-parent-container .timer, .tools-parent-container .score {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}
.tools-parent-container .timer-icon, .tools-parent-container .score-icon {
  font-size: 1.2rem;
}
.tools-parent-container .run-btn, .tools-parent-container .reset-btn, .tools-parent-container .menu-btn {
  background: #00b894;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s;
  font-weight: bold;
  font-family: inherit;
}
.tools-parent-container .reset-btn {
  background: #fdcb6e;
}
.tools-parent-container .menu-btn {
  background: #a29bfe;
}
.tools-parent-container .run-btn:hover, .tools-parent-container .reset-btn:hover, .tools-parent-container .menu-btn:hover {
  transform: scale(1.1);
}
.tools-parent-container .game-content {
  display: flex;
  flex: 1;
  gap: 1rem;
  padding: 1rem;
  min-height: 0;
}
.tools-parent-container {
  /* Maze Container */
}
.tools-parent-container .maze-container {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .maze-wrapper {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
}
.tools-parent-container .maze {
  display: grid;
  gap: 2px;
  background: #2c3e50;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .cell {
  aspect-ratio: 1;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(1rem, 2vw, 1.5rem);
}
.tools-parent-container .cell.wall {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .cell.path {
  background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
  cursor: pointer;
}
.tools-parent-container .cell.path:hover {
  background: linear-gradient(135deg, #d5dbdd, #95a5a6);
  transform: scale(0.95);
}
.tools-parent-container .cell.start {
  background: linear-gradient(135deg, #3498db, #2980b9);
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.4);
}
.tools-parent-container .cell.end {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  animation: earth-pulse 2s ease-in-out infinite;
}
@keyframes earth-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.8), 0 0 30px rgba(46, 204, 113, 0.4);
  }
}
.tools-parent-container .cell.player {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  animation: player-glow 1s ease-in-out infinite alternate;
  z-index: 10;
}
@keyframes player-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
  }
  100% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.8), 0 0 30px rgba(231, 76, 60, 0.4);
  }
}
.tools-parent-container .cell.player::after {
  content: "";
  background-image: url("image/rocket-svgrepo-com.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 70%;
  height: 70%;
  position: absolute;
  font-size: 70%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: rocket-float 2s ease-in-out infinite;
}
@keyframes rocket-float {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-3px) rotate(5deg);
  }
}
.tools-parent-container .cell.end::after {
  content: "";
  background-image: url("image/globe-2-svgrepo-com.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 70%;
  height: 70%;
  position: absolute;
  font-size: 70%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: earth-rotate 10s linear infinite;
}
.tools-parent-container .robot-character img, .tools-parent-container .treasure-character img {
  display: block;
  animation: wiggle 2s infinite;
}
@keyframes earth-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.tools-parent-container .cell.player[data-direction=up]::after {
  transform: rotate(-90deg);
}
.tools-parent-container .cell.player[data-direction=down]::after {
  transform: rotate(90deg);
}
.tools-parent-container .cell.player[data-direction=left]::after {
  transform: rotate(180deg);
}
.tools-parent-container .cell.player[data-direction=right]::after {
  transform: rotate(0deg);
}
.tools-parent-container #mazeCanvas {
  display: none;
}
.tools-parent-container .maze-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.tools-parent-container {
  /* Blockly Workspace */
}
.tools-parent-container .workspace-wrapper {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  min-width: 300px;
}
.tools-parent-container .blockly-workspace {
  height: 100%;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}
.tools-parent-container {
  /* Result Card */
}
.tools-parent-container .result-card {
  text-align: center;
  background: linear-gradient(135deg, #fff, #f8f9fa);
}
.tools-parent-container .result-animation {
  margin-bottom: 1rem;
}
.tools-parent-container .result-emoji {
  font-size: 5rem;
  animation: celebrate 1s ease;
}
@keyframes celebrate {
  0% {
    transform: scale(0) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}
.tools-parent-container .result-title {
  color: #6c5ce7;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.tools-parent-container .stars-container {
  font-size: 3rem;
  margin: 1rem 0;
}
.tools-parent-container .star {
  display: inline-block;
  opacity: 0.2;
  transition: opacity 0.5s, transform 0.5s;
}
.tools-parent-container .star.earned {
  opacity: 1;
  animation: starBurst 0.5s ease;
}
@keyframes starBurst {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
.tools-parent-container .result-stats {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.tools-parent-container .stat-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 15px;
  min-width: 100px;
}
.tools-parent-container .stat-label {
  display: block;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.tools-parent-container .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
}
.tools-parent-container .result-message {
  font-size: 1.2rem;
  color: #6c5ce7;
  margin: 1.5rem 0;
  line-height: 1.5;
}
.tools-parent-container .result-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.tools-parent-container .result-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s;
  font-weight: bold;
  color: white;
  font-family: inherit;
}
.tools-parent-container .play-again {
  background: linear-gradient(45deg, #fdcb6e, #e17055);
}
.tools-parent-container .next-level {
  background: linear-gradient(45deg, #00b894, #00cec9);
}
.tools-parent-container .result-btn:hover {
  transform: scale(1.1);
}
.tools-parent-container .maze-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
  animation: gradient-rotate 5s linear infinite;
}
@keyframes gradient-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.tools-parent-container {
  /* Responsive Design */
}
@media (max-width: 768px) {
  .tools-parent-container .game-content {
    flex-direction: column;
  }
  .tools-parent-container .workspace-wrapper {
    min-width: auto;
    height: 300px;
  }
  .tools-parent-container .game-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .tools-parent-container .game-info, .tools-parent-container .game-stats, .tools-parent-container .game-controls {
    width: 100%;
    justify-content: center;
  }
  .tools-parent-container .levels-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }
  .tools-parent-container .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 1.5rem;
  }
  .tools-parent-container .maze-wrapper {
    max-width: 350px;
  }
  .tools-parent-container .maze {
    gap: 1px;
    padding: 8px;
  }
  .tools-parent-container .cell {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
  }
}
@media (max-width: 480px) {
  .tools-parent-container .maze-wrapper {
    max-width: 280px;
  }
  .tools-parent-container .maze {
    padding: 5px;
  }
  .tools-parent-container .welcome-content {
    padding: 2rem 1rem;
  }
  .tools-parent-container .welcome-buttons {
    flex-direction: column;
    width: 100%;
  }
  .tools-parent-container .play-btn, .tools-parent-container .how-btn {
    width: 100%;
  }
  .tools-parent-container .level-card {
    padding: 1rem;
  }
  .tools-parent-container .result-stats {
    flex-direction: column;
  }
  .tools-parent-container .stat-item {
    width: 100%;
  }
}
.tools-parent-container {
  /* Tablet and larger screens */
}
@media (min-width: 769px) and (max-width: 1024px) {
  .tools-parent-container .game-content {
    flex-direction: row;
  }
  .tools-parent-container .maze-container {
    flex: 1.5;
  }
}
.tools-parent-container {
  /* Large screens */
}
@media (min-width: 1025px) {
  .tools-parent-container .levels-grid {
    max-width: 1000px;
    margin: 0 auto 3rem;
  }
  .tools-parent-container .game-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }
}
.tools-parent-container {
  /* Special styles for TV and very large screens */
}
@media (min-width: 1920px) {
  .tools-parent-container body {
    font-size: 1.2rem;
  }
  .tools-parent-container .welcome-content {
    width: 700px;
    padding: 4rem;
  }
  .tools-parent-container .level-card {
    padding: 2rem;
  }
  .tools-parent-container .game-header {
    padding: 1.5rem 2rem;
  }
}
.tools-parent-container .block-limit-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: shake 0.5s ease;
}
@keyframes shake {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  25% {
    transform: translate(-52%, -50%) rotate(-2deg);
  }
  75% {
    transform: translate(-48%, -50%) rotate(2deg);
  }
}
.tools-parent-container #timer {
  transition: all 0.3s ease;
}
.tools-parent-container #timer.warning {
  color: #f39c12 !important;
  font-size: 1.2em;
}
.tools-parent-container #timer.danger {
  color: #e74c3c !important;
  font-size: 1.3em;
  font-weight: bold;
}
.tools-parent-container .blockly-flyout-background {
  transition: opacity 0.3s ease;
}
.tools-parent-container .blockly-flyout-background.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.tools-parent-container #blocksLeft {
  transition: all 0.3s ease;
  font-weight: bold;
}
.tools-parent-container #blocksLeft.at-limit {
  color: #e74c3c !important;
  animation: pulse 1s infinite;
}
.tools-parent-container .timer {
  position: relative;
  overflow: hidden;
}
.tools-parent-container .timer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.tools-parent-container .timer.critical::before {
  left: 100%;
  animation: timer-sweep 2s linear infinite;
}
@keyframes timer-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.tools-parent-container #resultTime {
  position: relative;
}
.tools-parent-container #resultTime.good-time {
  color: #27ae60;
}
.tools-parent-container #resultTime.average-time {
  color: #f39c12;
}
.tools-parent-container #resultTime.poor-time {
  color: #e74c3c;
}
.tools-parent-container .block-limit-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}
.tools-parent-container .block-limit-indicator.warning {
  background: #fff3cd;
  color: #856404;
  border: 2px solid #ffc107;
}
.tools-parent-container .block-limit-indicator.danger {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  animation: pulse 1s infinite;
}
@keyframes slideInBounce {
  0% {
    transform: translate(-50%, -100px);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, 10px);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.tools-parent-container .result-emoji.spinning {
  animation: spin 2s linear infinite;
}
.tools-parent-container {
  /* Infinite loop warning styles */
}
.tools-parent-container .infinite-loop-warning {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 10px 0;
  font-weight: bold;
  text-align: center;
  animation: pulse 1s infinite;
}
.tools-parent-container .total-score-display {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .total-score-display h3 {
  color: #6c5ce7;
  font-size: 1.5rem;
  margin: 0;
}