/* world.css — konstelacja, skrzynka, drzewo */
.who-pick {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 0 14px;
}
.who-pick button {
  appearance: none;
  border: 1px solid rgba(232,204,150,0.28);
  background: rgba(255,255,255,0.05);
  color: #f2ebe0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}
.who-pick button.is-on {
  background: linear-gradient(135deg, #e8c070, #d4a040);
  color: #1a1410;
  font-weight: 600;
  border-color: transparent;
}
.constellation-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(232,204,150,0.25);
  background: #0a0c14;
  min-height: 280px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
#constellationCanvas {
  display: block;
  width: 100%;
  height: 280px;
  touch-action: manipulation;
  margin: 0 auto;
}
.constellation-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}
.world-btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #1a1410;
  background: linear-gradient(135deg, #e8c070, #d4a040);
}
.mb-card {
  border: 1px solid rgba(232,204,150,0.22);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 10px;
  background: rgba(255,255,255,0.04);
}
.mb-q { color: #f2ebe0; line-height: 1.45; }
.mb-a { margin-top: 8px; color: #e8cc96; font-size: 0.92rem; }
.mb-btn {
  margin-top: 8px;
  appearance: none;
  border: 1px solid rgba(232,204,150,0.35);
  background: rgba(232,204,150,0.12);
  color: #f2ebe0;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.mb-empty { color: rgba(242,235,224,0.55); text-align: center; }
#mailboxInput {
  width: 100%;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(232,204,150,0.28);
  background: rgba(0,0,0,0.25);
  color: #f2ebe0;
  padding: 10px;
  font: inherit;
  resize: vertical;
}
.tree-stage {
  position: relative;
  height: 240px;
  margin: 12px auto 8px;
  max-width: 280px;
  width: 100%;
}
.tree-trunk {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 18px;
  height: 78px;
  margin-left: -9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #8b5a2b, #3d2a18);
  z-index: 1;
}
.tree-leaf {
  position: absolute;
  border-radius: 70% 0 70% 0;
  background: radial-gradient(circle at 30% 30%, #a5d66a, #5a9e2e 70%);
  opacity: 0.92;
  animation: leafIn 0.55s ease backwards;
  box-shadow: 0 0 6px rgba(124,179,66,0.2);
  z-index: 2;
}
@keyframes leafIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 0.85; }
}
.pet-3d-wrap {
  width: 100%;
  height: 180px;
  margin: 0 auto 10px;
  border-radius: 16px;
  overflow: hidden;
  display: none;
}
.pet-3d-wrap.on { display: block; }
.pet-3d-toggle {
  display: block;
  margin: 0 auto 10px;
  appearance: none;
  border: 1px solid rgba(232,204,150,0.3);
  background: rgba(255,255,255,0.05);
  color: #e8cc96;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.tree-canopy {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 60px;
  z-index: 2;
}
