body {
  margin: 0;
  padding: 12px;
  font-family: system-ui, Arial, sans-serif;
  background: #f1f5f9;
}

.container {
  max-width: 900px;
  margin: auto;
}

h2 {
  text-align: center;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
}

.question-box, .zone {
  background: #ffffff;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 1.1em;
}

.zones {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.zone {
  flex: 1;
  min-height: 240px;
}

.zone h3 {
  text-align: center;
  margin-top: 0;
}

.block {
  background: #e0e7ff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: grab;
  border-left: 6px solid #4f46e5;
}

.solution .block {
  background: #ecfeff;
  border-left-color: #0891b2;
}

.correct {
  background: #dcfce7 !important;
  border-left-color: #16a34a !important;
}

.wrong {
  background: #fee2e2 !important;
  border-left-color: #dc2626 !important;
}

button {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  font-size: 1em;
  border-radius: 12px;
  border: none;
  background: #4f46e5;
  color: white;
}

.hidden {
  display: none;
}
.top-bar, .stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
}

.timer-warning {
  color: red;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.block.disabled {
  opacity: 0.5;
  pointer-events: none;
}
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  padding: 10px;
  background: #f4f6f8;
}

.container {
  max-width: 1100px;
  margin: auto;
  background: white;
  padding: 12px;
  border-radius: 12px;
}

/* HEADERS */
h2 {
  text-align: center;
  font-size: 1.2rem;
}

/* TOP BAR */
.top-bar, .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* QUESTION */
.question-box {
  margin: 12px 0;
  padding: 10px;
  background: #eef2f7;
  border-radius: 8px;
  font-size: 1rem;
}

/* ZONES */
.zones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* DROP AREAS */
.zone {
  min-height: 180px;
  padding: 10px;
  border: 2px dashed #ccc;
  border-radius: 10px;
}

.zone h3 {
  margin-top: 0;
  font-size: 0.9rem;
}

/* BLOCKS (TOUCH FRIENDLY) */
.block {
  padding: 12px;
  margin: 8px 0;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  cursor: grab;
  touch-action: none;
}

/* BUTTONS */
button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: white;
}

button:active {
  transform: scale(0.98);
}

.hidden {
  display: none;
}

/* TIMER WARNING */
.timer-warning {
  color: red;
  font-weight: bold;
}
/* TABLET */
@media (min-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }

  .zones {
    flex-direction: row;
  }

  .zone {
    width: 50%;
    min-height: 300px;
  }

  button {
    width: auto;
    padding: 12px 24px;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .container {
    padding: 20px;
  }

  .top-bar, .stats {
    font-size: 1rem;
  }

  .block {
    font-size: 1rem;
    padding: 14px;
  }
}
.zone.solution {
  background: #f9fafb;
}

.block.correct {
  border-color: #16a34a;
  background: #dcfce7;
}

.block.wrong {
  border-color: #dc2626;
  background: #fee2e2;
}
.block.selected {
  outline: 3px solid #2563eb;
  background: #bfdbfe;
  cursor: pointer;
}
