/* Ajustes incrementais de layout e responsividade do site PHP. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
}

.topbar {
  gap: 24px;
}

.nav {
  gap: clamp(12px, 1.35vw, 24px);
}

.nav a {
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(117, 230, 152, .32);
  border-radius: 2px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  border-color: var(--green);
  background: rgba(65, 227, 130, .07);
}

.nav-panel {
  border-color: var(--green);
  background: var(--green);
  color: #021008 !important;
  font-weight: 800;
}

.nav-panel:hover,
.nav-panel:focus-visible {
  background: var(--mint);
  color: #021008 !important;
}

.hero-art {
  background-image: url('/assets/backgroundPC.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: none;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(2, 10, 6, .98) 0%, rgba(2, 10, 6, .81) 31%, rgba(2, 10, 6, .2) 59%, rgba(2, 10, 6, .2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 26%);
}

.hero-copy {
  text-shadow: 0 2px 22px rgba(0, 0, 0, .55);
}

.hero-copy p {
  color: #d8e4da;
}

.section {
  scroll-margin-top: 76px;
}

.classes {
  background:
    radial-gradient(circle at 15% 15%, rgba(65, 227, 130, .08), transparent 32%),
    linear-gradient(145deg, #06140c, #030a06);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.class-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  background: #07130d;
}

.class-art {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(65, 227, 130, .22), transparent 36%),
    linear-gradient(145deg, #10271a, #020805);
}

.class-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transition: transform .35s ease;
}

.class-card:hover .class-art > img {
  transform: scale(1.025);
}

.class-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 11, 7, .88), transparent 48%);
  pointer-events: none;
}

.class-icon {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(230, 186, 89, .55);
  background: rgba(2, 8, 5, .82);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.class-icon img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.class-card-symbol .class-icon {
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  background: rgba(2, 8, 5, .45);
}

.class-card-symbol .class-icon img {
  width: 78px;
  height: 78px;
}

.class-race {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  color: #f1ce80;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.class-copy {
  min-width: 0;
  min-height: 188px;
  padding: 22px 23px 24px;
}

.class-copy h3 {
  margin: 0 0 5px;
  color: #fff;
  font: 400 29px Georgia, serif;
}

.class-copy strong {
  display: block;
  color: var(--green);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.class-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.classes-note {
  margin: 24px 0 0;
  color: #718278;
  font-size: 11px;
}

.feature-grid article,
.rates div,
.ranking-panel,
.download-links a,
.requirements,
.class-card {
  min-width: 0;
}

.wiki-content,
.wiki-section,
.drop-catalog,
.boss-grid,
.drop-grid {
  min-width: 0;
}

@media (max-width: 1320px) {
  .topbar {
    padding-inline: 28px;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 11px;
  }

  .nav-button {
    padding-inline: 12px;
  }

  .class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .topbar {
    height: 68px;
    padding-inline: 22px;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    cursor: pointer;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    max-height: calc(100svh - 68px);
    overflow-y: auto;
    align-items: stretch;
    gap: 0;
    padding: 14px 22px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(3, 13, 8, .98);
    box-shadow: 0 24px 45px rgba(0, 0, 0, .3);
    backdrop-filter: blur(18px);
  }

  .nav.open {
    display: flex;
  }

  .nav > a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(117, 230, 152, .1);
    font-size: 12px;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 16px;
  }

  .nav-button {
    min-height: 48px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero-copy {
    margin-left: clamp(22px, 7vw, 70px);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: max(760px, 100svh);
    align-items: flex-end;
  }

  .hero-art {
    background-image: url('/assets/backgroundCELL.png');
    background-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(2, 10, 6, .99) 0%, rgba(2, 10, 6, .92) 31%, rgba(2, 10, 6, .18) 68%, rgba(2, 10, 6, .23) 100%),
      linear-gradient(90deg, rgba(2, 10, 6, .25), transparent 45%, rgba(2, 10, 6, .2));
  }

  .hero-copy {
    width: 100%;
    margin: 0;
    padding: 110px 20px 42px;
  }

  .hero h1 {
    font-size: clamp(49px, 15vw, 68px);
  }

  .hero p {
    max-width: 34rem;
    margin-block: 20px;
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .button {
    padding-inline: 14px;
  }

  .hero-facts {
    margin-top: 26px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section h2 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1.02;
  }

  .section-heading > p {
    font-size: 15px;
  }

  .class-grid {
    grid-template-columns: 1fr;
  }

  .class-card {
    padding: 0;
  }

  .requirements {
    padding: 26px 20px;
  }

  footer nav {
    gap: 16px 22px;
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 17px;
  }

  .nav-actions,
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: max(800px, 100svh);
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-facts span {
    font-size: 9px;
  }

  .hero-facts b {
    display: block;
    margin: 0;
  }

  .class-art {
    min-height: 210px;
  }

  .class-copy {
    min-height: 0;
  }
}
