/* ─────────────────────────────────────────────
   HUNGRY CHAMELEONS — Game Styles
   ───────────────────────────────────────────── */

/* ── Activity cards (hub) ── */
.activity-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 1.25rem; cursor: pointer;
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 0.6rem;
  position: relative; overflow: hidden;
}
.activity-card::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,0 60,17.5 60,52.5 30,70 0,52.5 0,17.5' fill='none' stroke='rgba(74,176,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 70px;
  pointer-events: none;
}
.activity-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(74,176,255,0.3), 0 0 40px rgba(74,176,255,0.1);
  transform: translateY(-3px);
}
.activity-card.completed {
  border-color: var(--green);
  box-shadow: 0 0 15px rgba(57,255,20,0.2);
}
.activity-card.completed::after {
  content: '✓'; position: absolute; top: 10px; right: 12px;
  font-size: 1.2rem; color: var(--green);
  text-shadow: 0 0 8px var(--green);
}
.activity-card.locked {
  opacity: 0.5; cursor: default;
}
.activity-card.locked:hover { transform: none; box-shadow: none; }

.activity-icon { font-size: 2rem; }
.activity-name { font-family: 'Orbitron', monospace; font-size: 0.75rem; letter-spacing: 1px; }
.activity-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.activity-progress { display: flex; gap: 4px; }
.activity-round-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s ease;
}
.activity-round-dot.done { background: var(--green); box-shadow: 0 0 4px var(--green); }
.activity-round-dot.active { background: var(--blue); box-shadow: 0 0 4px var(--blue); animation: neon-pulse 1.5s infinite; }

/* ── Spot the Bug ── */
.scene-container {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: 8px; overflow: hidden; cursor: crosshair;
  user-select: none;
}
.scene-bg {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #0d2a1a, #1a4a1a);
  position: relative;
}
.bug-target {
  position: absolute; width: 36px; height: 36px;
  cursor: pointer; transition: transform 0.2s ease;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.bug-target:hover { transform: translate(-50%, -50%) scale(1.2); }
.bug-target.found {
  animation: bug-caught 0.4s ease forwards;
  pointer-events: none;
}
.bug-hit-indicator {
  position: absolute; border-radius: 50%;
  width: 40px; height: 40px; transform: translate(-50%,-50%);
  pointer-events: none;
  border: 2px solid var(--green);
  animation: hit-ring 0.5s ease-out forwards;
}
@keyframes hit-ring {
  0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(2);   opacity: 0; }
}

.bugs-remaining {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.6); border: 1px solid var(--blue);
  border-radius: 20px; padding: 4px 12px;
  font-family: 'Orbitron', monospace; font-size: 0.75rem; color: var(--blue);
}

/* ── Fix the Recipe / Recipe Disaster (drag-and-drop) ── */
.drag-list {
  display: flex; flex-direction: column; gap: 0.6rem;
  min-height: 60px;
}
.drag-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-border);
  border-radius: 8px; padding: 0.75rem 1rem;
  cursor: grab; user-select: none;
  transition: all var(--transition);
}
.drag-item:hover {
  border-color: var(--blue); background: rgba(74,176,255,0.08);
}
.drag-item.dragging {
  opacity: 0.5; cursor: grabbing;
  box-shadow: 0 4px 20px rgba(74,176,255,0.3);
}
.drag-item.drag-over {
  border-color: var(--green);
  background: rgba(57,255,20,0.08);
}
.drag-item.correct-position { border-color: var(--green); background: rgba(57,255,20,0.08); }
.drag-item.wrong-position   { border-color: #ff3355;       background: rgba(255,0,80,0.08); }
.drag-handle { color: var(--text-muted); font-size: 0.9rem; cursor: grab; }
.drag-emoji  { font-size: 1.5rem; flex-shrink: 0; }
.drag-text   { font-size: 0.9rem; line-height: 1.4; flex: 1; }
.check-btn   { margin-top: 1rem; }

/* ── Which One is Wrong ── */
.pattern-grid {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.pattern-item {
  min-width: 80px; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05); border: 2px solid var(--card-border);
  border-radius: 10px; text-align: center; cursor: pointer;
  transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  font-size: 0.9rem;
}
.pattern-item:hover { border-color: var(--blue); background: rgba(74,176,255,0.08); }
.pattern-item.selected { border-color: var(--pink); background: rgba(255,0,255,0.1); }
.pattern-item.revealed-correct { border-color: var(--green); background: rgba(57,255,20,0.1); }
.pattern-item.revealed-wrong   { border-color: #ff3355; background: rgba(255,0,80,0.1); animation: wrong-shake 0.4s ease; }

/* ── Help the Robot / What Happens Next / Multiple Choice ── */
.choices-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
@media (max-width: 480px) { .choices-grid { grid-template-columns: 1fr; } }

.choice-btn {
  padding: 1rem; background: rgba(255,255,255,0.04);
  border: 2px solid var(--card-border); border-radius: 10px;
  color: var(--white); font-size: 0.9rem; cursor: pointer;
  text-align: left; transition: all var(--transition);
  line-height: 1.4;
}
.choice-btn:hover { border-color: var(--blue); background: rgba(74,176,255,0.08); }
.choice-btn.selected { border-color: var(--pink); background: rgba(255,0,255,0.1); }
.choice-btn.correct  {
  border-color: var(--green); background: rgba(57,255,20,0.1);
  box-shadow: 0 0 12px rgba(57,255,20,0.3);
}
.choice-btn.incorrect {
  border-color: #ff3355; background: rgba(255,0,80,0.1);
  animation: wrong-shake 0.4s ease;
}
.choice-btn:disabled { cursor: default; }

.scenario-box {
  background: rgba(255,255,255,0.03); border: 1px solid var(--card-border);
  border-radius: 8px; padding: 1rem 1.25rem;
  font-size: 0.95rem; line-height: 1.7; white-space: pre-line;
  margin-bottom: 1rem;
}

/* ── Bug Catcher ── */
#bug-catcher-canvas {
  width: 100%; border-radius: 8px;
  cursor: crosshair; touch-action: none;
}
.bug-catcher-hud {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.5rem;
  font-family: 'Orbitron', monospace; font-size: 0.8rem;
}
.bug-counter { color: var(--green); }
.butterfly-counter { color: #ff9900; }
.time-counter { color: var(--blue); }

/* ── Spot the Mistake ── */
.mistake-step {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 1rem; background: rgba(255,255,255,0.04);
  border: 2px solid var(--card-border); border-radius: 8px;
  cursor: pointer; transition: all var(--transition);
  margin-bottom: 0.5rem;
}
.mistake-step:hover { border-color: var(--pink); background: rgba(255,0,255,0.06); }
.mistake-step.selected { border-color: var(--pink); background: rgba(255,0,255,0.1); }
.mistake-step.revealed-correct { border-color: var(--green); background: rgba(57,255,20,0.1); }
.mistake-step.revealed-wrong   {
  border-color: #ff3355; background: rgba(255,0,80,0.1);
  animation: wrong-shake 0.4s ease;
}
.step-num {
  font-family: 'Orbitron', monospace; font-size: 0.7rem;
  color: var(--text-muted); flex-shrink: 0; margin-top: 2px;
}
.step-text { font-size: 0.9rem; line-height: 1.5; }

/* ── True/False Trap ── */
.scenario-highlight {
  background: rgba(191,0,255,0.08); border: 1px solid rgba(191,0,255,0.3);
  border-radius: 8px; padding: 1rem 1.25rem;
  font-size: 0.95rem; line-height: 1.7; white-space: pre-line;
  margin-bottom: 1rem;
}
