/* Perfil > Aparência (v0.272, js/ui/profile.js): cor do nome, selo e moldura do Raid em uso, ao lado do cartão do jogador e
   acima da escolha do herói da taverna. As placas vêm do grupo de placas de 25-jogo.css; aqui só tamanho e arrumação. */

.profile-main {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
}

.profile-look .setup-title {
  margin-bottom: var(--s-3);
}

.profile-colors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: var(--s-2);
  margin: var(--s-1) 0 var(--s-3);
}

.profile-color {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 64px;
  padding: var(--s-2) var(--s-3);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-color:disabled {
  cursor: default;
}

.profile-color-name {
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Cor que a conta ainda não tem: o nome fica apagado, a cor continua dando para ver. */
.profile-color:disabled .profile-color-name {
  opacity: 0.55;
}

.profile-color-label {
  font-size: var(--fs-12);
  color: var(--text-2);
}

.profile-look-lock {
  font-size: var(--fs-12);
  color: var(--text-2);
}

.profile-look-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.profile-look-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
}

.profile-look-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.profile-look-ico .profile-look-badge {
  width: 32px;
  height: 32px;
  margin: 0;
}

.profile-look-frame {
  width: 34px;
  height: 42px;
}

.profile-look-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-look-text .muted {
  font-size: var(--fs-13);
}

.profile-look-btn {
  min-width: 96px;
  min-height: 44px;
}

.profile-look-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-3);
  font-size: var(--fs-13);
}

.profile-look-more .btn {
  min-height: 44px;
}

/* O selo antes do nome no cartão acompanha o tamanho do nome. */
#tavern-name-show .raid-badge {
  width: 14px;
  height: 14px;
  vertical-align: -1px;
}

@media (max-width: 600px) {
  .profile-colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-look-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .profile-look-ico {
    width: 40px;
    height: 40px;
  }

  .profile-look-row > .profile-look-btn,
  .profile-look-row > .profile-look-lock {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

/* A moldura do Raid põe position: relative no cartão; aqui ele segue grudado no alto como antes. */
#profile-card.raid-frame {
  position: sticky;
}

@media (max-width: 900px) {
  #profile-card.raid-frame {
    position: relative;
  }
}

/* Seletor de selo e moldura (v0.322, ui/profile.js pickerHTML): grade com prévia; os liberados em cima, os que faltam embaixo
   com como conseguir e a barra de fases vencidas. */
.look-picker {
  margin-top: var(--s-4);
}

.look-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}

.look-picker-count {
  font-size: var(--fs-12);
}

.look-picker-sub {
  margin: var(--s-3) 0 var(--s-1);
  font-size: var(--fs-12);
  color: var(--text-2);
}

.look-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-1);
}

.look-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 104px;
  padding: var(--s-2);
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.look-tile.is-locked {
  cursor: default;
}

.look-tile-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
}

.look-tile-prev .look-tile-badge {
  width: 32px;
  height: 32px;
  margin: 0;
}

/* Sem selo: um quadrado tracejado no lugar do desenho. */
.look-tile-none {
  width: 26px;
  height: 26px;
  border: 2px dashed var(--text-2);
  border-radius: 4px;
}

/* Mini etiqueta de nome para ver a moldura. */
.look-tile-plate {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  overflow: hidden;
  background: rgba(12, 10, 18, 0.85);
  border-radius: 6px;
  font-size: var(--fs-12);
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.look-tile-name {
  font-size: var(--fs-13);
  font-weight: 700;
  line-height: 1.2;
}

.look-tile-state,
.look-tile-how,
.look-tile-count {
  font-size: var(--fs-12);
  color: var(--text-2);
  line-height: 1.25;
}

.look-tile[aria-pressed="true"] .look-tile-state {
  color: #ffd166;
  font-weight: 700;
}

/* Bloqueado: o desenho aparece apagado, com a cor ainda visível, para dar vontade sem confundir com o que já é seu. */
.look-tile.is-locked .look-tile-prev {
  filter: saturate(0.55);
  opacity: 0.6;
}

.look-tile-bar {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: auto;
  background: #0b0d12;
  border-radius: 3px;
  overflow: hidden;
}

.look-tile-bar > span {
  display: block;
  height: 100%;
  background: var(--action);
}

@media (max-width: 600px) {
  .look-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
