/* Team controls stay separate from the world's art and board. */
.pet-teams { min-width: 0; margin: 0; padding: 0; border: 0; color: var(--ink); }
.pet-teams legend { width: 100%; margin-bottom: 10px; font-size: 17px; font-weight: 800; text-align: center; }
.pet-team-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pet-team { display: flex; min-height: 80px; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 2px solid transparent; border-radius: 20px; background: #fffaf0; color: #29363c; box-shadow: 0 3px 0 #172d3720; font: inherit; font-weight: 800; cursor: pointer; }
.pet-team .chip-disc.big { flex: 0 0 46px; width: 46px; height: 46px; }
.pet-team.on { border-color: #50744e; background: #eaf4df; box-shadow: 0 0 0 2px #50744e22; }
.pet-team:focus-visible { outline: 3px solid #23656b; outline-offset: 3px; }
.pet-team-note { margin: 10px 0 0; font-size: 13px; line-height: 1.4; text-align: center; }
.pet-map-teams { flex: 0 0 auto; width: min(500px, calc(100% - 32px)); margin: 8px auto 10px; padding: 14px; border-radius: 22px; background: #fffaf0ed; }
.pet-entry { display: flex; flex-direction: column; min-height: 100%; }
.pet-entry-body { width: min(460px, calc(100% - 40px)); margin: auto; padding: 24px; border-radius: 28px; background: #fffaf0f5; color: #29363c; box-shadow: 0 12px 36px #132f292b; }
.pet-entry-body h2 { margin: 0 0 8px; text-align: center; }
.pet-entry-intro { margin: 0 0 22px; text-align: center; line-height: 1.45; }
.pet-entry-body [data-pet-start] { margin-top: 22px; }
/* Keep the level path usable below the free-world preview on short phones. */
@media (max-height: 700px) {
  .pet-map-teams { padding: 10px; }
  .pet-map-teams legend { margin-bottom: 6px; font-size: 14px; }
  .pet-map-teams .pet-team { min-height: 54px; padding: 6px; }
  .pet-map-teams .pet-team .chip-disc.big { flex-basis: 32px; width: 32px; height: 32px; }
  .pet-map-teams .pet-team-note { display: none; }
}
@media (max-width: 360px) {
  .pet-team { padding: 10px 6px; gap: 5px; font-size: 14px; }
  .pet-team .chip-disc.big { flex-basis: 38px; width: 38px; height: 38px; }
  .pet-map-teams { padding: 10px; }
  .pet-entry-body { padding: 20px 14px; }
}
