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

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

h1 {
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #64748b;
  margin-bottom: 35px;
  font-size: 0.95rem;
  text-align: center;
}

.game-container {
  display: flex;
  gap: 30px;
  max-width: 1100px;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}

#inventory-container {
  width: 280px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

#inventory-list {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.tech-chip {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: grab;
  font-weight: 600;
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  user-select: none;
}

.tech-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 16px rgba(79, 70, 229, 0.25);
}

.tech-chip.dragging {
  opacity: 0.6;
  transform: scale(1.05);
  cursor: grabbing;
}

.drop-zone {
  width: 320px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 22px;
  border: 2px dashed #cbd5f5;
  transition: all 0.2s ease;
}

.drop-zone.drag-over {
  background-color: #e0e7ff;
  border-color: #6366f1;
  transform: scale(1.02);
}

.zone-header {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.zone-content {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.correct-drop {
  background: linear-gradient(135deg, #34d399, #10b981) ;
  cursor: default ;
  transform: none ;
  box-shadow: none ;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 1000;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: white;
  padding: 32px 42px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 420px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.show .modal-card {
  transform: scale(1) translateY(0);
}

#modal-message {
  font-size: 1.05rem;
  margin-bottom: 25px;
  color: #475569;
  line-height: 1.5;
}

.modal-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
}

@media (max-width: 1000px) {
  .game-container {
    gap: 20px;
  }

  .drop-zone {
    width: 280px;
  }
}

@media (max-width: 800px) {
  .game-container {
    flex-direction: column;
    align-items: center;
  }

  #inventory-container {
    width: 100%;
    max-width: 420px;
  }

  .drop-zone {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 25px 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .tech-chip {
    padding: 11px 16px;
    font-size: 0.9rem;
  }

  .zone-header {
    font-size: 1.05rem;
  }
}
