/* ================================================================
   MatheLand — papagei.css
   Papagei-spezifische Styles für Spiel 10: Schatzcode
   Überschreibt style.css wo nötig.
   ================================================================ */

/* ── PAPAGEI CHARACTER & PANEL ── */
.theme-papagei .papagei-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  padding-bottom: 0;
  height: 100%;
  width: 100%;
  max-width: 440px;
  flex: 1;
}

.theme-papagei .papagei-character {
  position: relative;
  width: 100%;
  max-width: 420px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  animation: foxFloat 3.5s ease-in-out infinite;
  transform-origin: bottom center;
  cursor: default;
  user-select: none;
}

.theme-papagei .papagei-character img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 40px rgba(47,208,179,.35));
  display: block;
}

.theme-papagei .papagei-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(47,208,179,0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

/* ── TREASURE CHEST & CODE LOCKS ── */
.theme-papagei .chest-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--r-l);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.theme-papagei .code-locks {
  display: flex;
  gap: 16px;
}

.theme-papagei .code-slot {
  width: 64px;
  height: 84px;
  background: linear-gradient(to bottom, #444, #222);
  border: 3px solid #777;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.2rem;
  font-family: var(--f-num);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.theme-papagei .code-slot.active {
  border-color: var(--c-gold);
  box-shadow: 0 0 22px var(--c-gold);
  transform: scale(1.08);
}

.theme-papagei .code-slot.solved {
  background: linear-gradient(to bottom, var(--c-correct), #136a43);
  border-color: #27c27d;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.theme-papagei .code-slot.error {
  background: linear-gradient(to bottom, var(--c-wrong), #801a2e);
  border-color: #f75571;
  animation: shake 0.4s;
}

/* ── CHALKBOARD-WRAPPER: Clean column layout, no scrollbars ── */
.theme-papagei .chalkboard-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  width: 100%;
  overflow: visible;
  padding-bottom: 8px;
  margin: 0 auto;
}

/* ── CHALKBOARD: Prominent frame for mini task display ── */
.theme-papagei .chalkboard {
  position: relative;
  z-index: 1;
  min-height: 140px;
  margin: 10px;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.theme-papagei .mini-task-display {
  font-size: 2.8rem;
  font-family: var(--f-board);
  color: var(--c-chalk);
  text-align: center;
  padding: 12px 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255,248,231,0.4);
}

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

.theme-papagei .numpad-info {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: var(--f-board) !important;
  color: var(--c-chalk) !important;
  font-size: 1.3rem !important;
}

.theme-papagei .numpad {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}

.theme-papagei .numpad-btn {
  width: 66px !important;
  height: 66px !important;
  font-size: 2.2rem !important;
  border-radius: 50% !important;
}

.theme-papagei #next-task-section {
  position: relative !important;
  z-index: 2 !important;
  transform: none !important;
  width: 100% !important;
  margin: 15px auto !important;
  padding: 10px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ── BUTTON OVERRIDE ── */
.theme-papagei .btn-start {
  background: linear-gradient(140deg, #f4a020 0%, #e88a10 100%) !important;
}

/* ── INTRO SCREEN COLOR FIXES ── */
.theme-papagei .intro-title {
  color: #ffffff;
  text-shadow:
    0 0 50px rgba(47,208,179,0.9),
    0 0 100px rgba(47,208,179,0.5),
    4px 4px 0 rgba(10,30,40,0.8) !important;
  animation: titlePulsePapagei 2.5s ease-in-out infinite !important;
}

@keyframes titlePulsePapagei {
  0%,100% { text-shadow: 0 0 50px rgba(47,208,179,0.9), 0 0 100px rgba(47,208,179,0.4), 4px 4px 0 rgba(10,30,40,0.8); }
  50%     { text-shadow: 0 0 70px rgba(47,208,179,1),   0 0 140px rgba(47,208,179,0.6), 4px 4px 0 rgba(10,30,40,0.8); }
}

.theme-papagei .intro-badge {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(47,208,179,0.8) !important;
}
