/*
  Forja dos Mundos — ajuste de identidade visual
  - Símbolo redondo da Forja no cabeçalho e no selo de entrada
  - Assinatura Sr. ninguem27 / Kaio Lucas no rodapé
  - Rodapé sem slogan duplicado e sem bloco de copyright
*/

.brand-crest {
  overflow: hidden;
  padding: 0;
  border-color: rgba(199, 154, 59, .4);
  background: #070605;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .65), 0 0 22px rgba(199, 154, 59, .11);
}

.brand-crest img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.gate-seal {
  overflow: hidden;
  padding: 0;
  border-color: rgba(199, 154, 59, .58);
  background: #060504;
  box-shadow: 0 0 0 9px rgba(0, 0, 0, .48), 0 0 42px rgba(199, 154, 59, .28), inset 0 0 26px #000;
}

.gate-seal img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.forja-brand-footer {
  min-height: 210px;
  padding: 1.15rem clamp(1rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(430px, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  border-top: 1px solid rgba(199, 154, 59, .25);
  background: #060504;
}

.footer-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1.6vw, 1.4rem);
}

.footer-forja-symbol {
  flex: 0 0 clamp(76px, 7vw, 104px);
  width: clamp(76px, 7vw, 104px);
  height: clamp(76px, 7vw, 104px);
  display: block;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 15px rgba(199, 154, 59, .17));
}

.footer-signature {
  width: clamp(245px, 26vw, 390px);
  height: auto;
  max-height: 178px;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .58));
}

.forja-brand-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.85rem, 1.7vw, 1.45rem);
  flex-wrap: wrap;
}

.forja-brand-footer .footer-links a {
  color: var(--parchment-200);
  font-size: clamp(.88rem, 1.25vw, 1rem);
  transition: color .2s ease, text-shadow .2s ease;
}

.forja-brand-footer .footer-links a:hover,
.forja-brand-footer .footer-links a:focus-visible {
  color: var(--gold-300);
  text-shadow: 0 0 16px rgba(199, 154, 59, .28);
}

@media (max-width: 900px) {
  .forja-brand-footer {
    min-height: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    padding: 1.2rem 1rem 1.5rem;
  }

  .footer-identity {
    width: min(100%, 590px);
    justify-content: center;
  }

  .footer-signature {
    width: min(68vw, 360px);
    max-height: 160px;
  }

  .forja-brand-footer .footer-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .brand-crest {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .footer-identity {
    gap: .5rem;
  }

  .footer-forja-symbol {
    flex-basis: 66px;
    width: 66px;
    height: 66px;
  }

  .footer-signature {
    width: min(72vw, 285px);
    max-height: 132px;
  }

  .forja-brand-footer .footer-links {
    gap: .65rem 1rem;
  }
}


/* Refinamento final: assinatura compacta, emblemas laterais e áudio no celular */
.footer-identity {
  justify-content: flex-start;
}

.footer-forja-symbol--right {
  display: block;
}

.gate-seal {
  top: 46.5%;
}

@media (max-width: 760px) {
  #soundToggle {
    display: inline-grid !important;
    width: 48px;
    height: 48px;
  }

  .topbar-actions {
    display: flex;
    align-items: center;
  }

  .gate-seal {
    top: 43.5%;
    width: 82px;
  }

  .forja-brand-footer {
    padding-top: .8rem;
    padding-bottom: calc(var(--forja-mobile-bar, 78px) + env(safe-area-inset-bottom) + .65rem);
    gap: .55rem;
  }

  .footer-identity {
    width: 100%;
    max-width: 520px;
    justify-content: center;
    gap: .35rem;
    transform: translateY(-.25rem);
  }

  .footer-forja-symbol {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
  }

  .footer-signature {
    width: min(64vw, 260px);
    max-height: 112px;
  }

  .forja-brand-footer .footer-links {
    margin-top: -.35rem;
  }
}

@media (max-width: 420px) {
  .brand > span:last-child small {
    display: none;
  }

  .footer-forja-symbol {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .footer-signature {
    width: min(60vw, 230px);
    max-height: 100px;
  }
}
