/* Mesmas cores e tipografia do site, sem interferir nas áreas de jogo. */
#mascots-dialog {
  width:min(760px,calc(100vw - 24px));
  max-height:calc(100dvh - 24px);
  padding:0;
  border:1px solid #b7c9bd;
  border-radius:14px;
  background:#fffef8;
  font-family:var(--font-ui);
  color:#173f35;
  box-sizing:border-box;
  overflow:auto
}
#mascots-dialog::backdrop {
  background:rgb(18 41 35 / .36)
}
.mascots-shell {
  padding:24px
}
.mascots-shell header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-bottom:2px solid #d6ad38;
  padding-bottom:14px
}
.mascots-shell h2 {
  font-family:var(--font-title,'Literata',serif);
  margin:0 0 8px;
  font-size:1.5rem
}
.mascots-shell p {
  margin:0;
  font-size:.95rem
}
.mascots-shell button {
  font:inherit;
  cursor:pointer;
  min-width:44px;
  min-height:44px
}
.mascots-shell [data-mascots-close] {
  border:1px solid #b7c9bd;
  border-radius:8px;
  background:#f5f4e9;
  color:inherit;
  padding:8px 14px
}
.mascots-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  padding:20px 0;
  margin:0;
  list-style:none
}
.mascots-grid button {
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:inherit;
  padding:8px 4px
}
.mascots-grid button:hover {
  background:#f0f3e8;
  border-color:#a8bdaa
}
.mascots-grid button:focus-visible,.mascots-shell [data-mascots-close]:focus-visible {
  outline:3px solid #255b85;
  outline-offset:3px
}
.mascots-grid .fauna-art-view {
  width:88px;
  height:88px;
  max-width:100%
}
.mascots-grid button>span:last-child {
  font-size:.85rem;
  line-height:1.25;
  text-align:center
}
.mascots-shell footer {
  border-top:1px solid #d7dfd3;
  padding-top:14px
}
.mascots-open {
  color:#174d3d!important;
  border-color:#96b6a6!important
}
@media(max-width:540px) {
  .mascots-shell {
    padding:16px
  }
  .mascots-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px 6px
  }
  .mascots-grid .fauna-art-view {
    width:76px;
    height:76px
  }
  .mascots-shell h2 {
    font-size:1.3rem
  }
  
}

/* Atalho do catálogo, separado dos filtros e sem alterar o cabeçalho global. */
#library-filters #catalog-mascots-open {
  margin-inline-start:auto;
  max-width:100%;
  white-space:normal;
  border:1px solid #96b6a6;
  border-radius:8px;
  background:transparent;
  color:#174d3d;
  font-size:14px;
  padding:9px 13px;
}
#library-filters #catalog-mascots-open:hover { background:#eef3e9; }
#library-filters #catalog-mascots-open:focus-visible {
  outline:3px solid #255b85;
  outline-offset:3px;
}
@media(max-width:760px) {
  #library-filters #catalog-mascots-open { align-self:flex-end; }
}
