/* ================================================================
   MatheLand — chamaeleon.css
   Chamäleon-spezifische Styles für Spiel 6: Musterlabor
   Überschreibt style.css wo nötig.
   ================================================================ */

.theme-chamaeleon .chalkboard-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  overflow-y: auto;
  padding-bottom: 16px;
}

.theme-chamaeleon .chalkboard {
  flex-shrink: 0;
  min-height: 200px;
}

.theme-chamaeleon .dot-pattern-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding: 20px;
  flex: 1;
}

.pattern-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 15px rgba(255,255,255,0.8); }
}

/* Make dots colorful based on their nth-child */
.pattern-dot:nth-child(3n+1) { background: #ff477e; box-shadow: 0 0 10px #ff477e; }
.pattern-dot:nth-child(3n+2) { background: #00f5d4; box-shadow: 0 0 10px #00f5d4; }
.pattern-dot:nth-child(3n)   { background: #fee440; box-shadow: 0 0 10px #fee440; }
.pattern-dot:nth-child(4n)   { background: #9b5de5; box-shadow: 0 0 10px #9b5de5; }

/* ── NUMPAD SECTION ── */
.theme-chamaeleon .numpad-section {
  position: relative !important;
  z-index: 2 !important;
  transform: none !important;
  width: 100% !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 30px !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 10px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ── FOX GLOW tinted colorful ── */
.theme-chamaeleon .fox-glow {
  background: radial-gradient(circle at center, rgba(155, 93, 229, 0.4) 0%, transparent 70%);
  animation: color-shift 4s infinite alternate;
}

@keyframes color-shift {
  0% { background: radial-gradient(circle at center, rgba(155, 93, 229, 0.4) 0%, transparent 70%); }
  50% { background: radial-gradient(circle at center, rgba(0, 245, 212, 0.4) 0%, transparent 70%); }
  100% { background: radial-gradient(circle at center, rgba(255, 71, 126, 0.4) 0%, transparent 70%); }
}

/* ── BUTTON OVERRIDE (Fix muddy gradient) ── */
.theme-chamaeleon .btn-start {
  background: linear-gradient(140deg, #9b5de5 0%, #ff477e 100%) !important;
}

/* ── INTRO SCREEN COLOR FIXES ── */
.theme-chamaeleon .intro-title {
  color: #ffffff;
  text-shadow:
    0 0 50px rgba(155,93,229,0.9),
    0 0 100px rgba(155,93,229,0.5),
    4px 4px 0 rgba(10,30,40,0.8) !important;
}
@keyframes titlePulseChameleon {
  0%,100% { text-shadow: 0 0 50px rgba(155,93,229,0.9), 0 0 100px rgba(155,93,229,0.4), 4px 4px 0 rgba(10,30,40,0.8); }
  50%     { text-shadow: 0 0 70px rgba(255,71,126,1),   0 0 140px rgba(255,71,126,0.6), 4px 4px 0 rgba(10,30,40,0.8); }
}
.theme-chamaeleon .intro-title {
  animation: titlePulseChameleon 3s ease-in-out infinite !important;
}
.theme-chamaeleon .intro-badge {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(155,93,229,0.8) !important;
}

/* Allow board-panel to scroll on small landscape devices so action-bar is reachable */
.theme-chamaeleon .board-panel {
  overflow-y: auto !important;
}
