/* Portal-only discovery layout; game landing styles stay on their own pages. */
@media (max-width: 380px) {
  .qg-discovery-shell .qg-discovery-hero h1 {
    font-size: clamp(1.15rem, 7.2vw, 1.7rem);
  }
}
.qg-discovery-shell .qg-discovery-genre-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}

.qg-discovery-shell .qg-discovery-genre-card {
  grid-template-columns: 1fr;
  min-height: 178px;
}

.qg-discovery-shell .qg-discovery-genre-art { min-height: 135px; }

.qg-discovery-shell .qg-discovery-genre-copy strong {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.35;
}

.qg-discovery-shell .is-battle .qg-discovery-genre-art {
  background-color: #28362b;
  background-position: center;
  background-size: cover;
}

.qg-discovery-shell .is-battle .qg-discovery-genre-art::before {
  display: none;
}

.qg-discovery-shell .is-battle .qg-discovery-genre-copy small,
.qg-discovery-shell .is-battle .qg-discovery-genre-copy em i {
  color: #a7f3d0;
}

.qg-discovery-shell .qg-discovery-genre-card.is-battle:hover {
  border-color: #6ee7b7;
}

.qg-discovery-shell .qg-home-spotlight {
  min-width: 0;
  margin-block: 8px;
}

.qg-discovery-shell .qg-home-spotlight-head {
  margin-bottom: 18px;
}

.qg-discovery-shell .qg-home-spotlight-head h2 {
  margin: 5px 0 8px;
  color: #f8fafc;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 800;
}

.qg-discovery-shell .qg-home-spotlight-head p {
  margin: 0;
  color: #bdc9d8;
  font-size: 0.875rem;
}

.qg-discovery-shell .qg-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.qg-discovery-shell .qg-home-feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #485b4b;
  border-radius: 16px;
  background: linear-gradient(150deg, #213b30, #14251e);
  box-shadow: 0 12px 32px rgb(0 0 0 / 14%);
}

.qg-discovery-shell .qg-home-feature.is-twinfront {
  border-color: #5c5341;
  background: linear-gradient(150deg, #34392a, #1a2721);
}

.qg-discovery-shell .qg-home-feature:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qg-discovery-shell .qg-home-feature-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.qg-discovery-shell .qg-home-feature:only-child .qg-home-feature-image {
  height: 100%;
}

.qg-discovery-shell .qg-home-feature-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 24px;
}

.qg-discovery-shell .qg-home-feature-category {
  color: #f6cd79;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.6;
}

.qg-discovery-shell .qg-home-feature h3 {
  margin: 10px 0 14px;
  color: #f8faf5;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  word-break: keep-all;
  overflow-wrap: normal;
}

.qg-discovery-shell .qg-home-feature h3 span {
  display: block;
  margin-top: 7px;
  color: #f6cd79;
  font-size: 0.58em;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.qg-discovery-shell .qg-home-feature-copy p {
  margin: 0 0 18px;
  color: #cbd9cf;
  font-size: 0.875rem;
  line-height: 1.8;
}

.qg-discovery-shell .qg-home-feature-copy .qg-home-feature-tagline {
  margin-bottom: 8px;
  color: #f8faf5;
  font-size: 0.95rem;
  font-weight: 700;
}

.qg-discovery-shell a.qg-home-feature-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  margin-top: auto;
  padding: 10px 18px;
  border: 1px solid #f4c86b;
  border-radius: 8px;
  background: #f4c86b;
  color: #17271f;
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.qg-discovery-shell a.qg-home-feature-cta:hover {
  background: #ffda8c;
  color: #17271f;
  box-shadow: 0 4px 18px rgb(244 200 107 / 16%);
}

.qg-discovery-shell a.qg-home-feature-cta:focus-visible {
  outline: 3px solid #67e8f9;
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .qg-discovery-shell .qg-discovery-genre-grid,
  .qg-discovery-shell .qg-home-feature-grid,
  .qg-discovery-shell .qg-home-feature:only-child {
    grid-template-columns: minmax(0, 1fr);
  }

  .qg-discovery-shell .qg-discovery-genre-card {
    grid-template-columns: 30% minmax(0, 1fr);
    min-height: 164px;
  }

  .qg-discovery-shell .qg-home-feature-copy {
    padding: 20px;
  }

  .qg-discovery-shell .qg-home-feature h3 {
    font-size: clamp(1.35rem, 6.5vw, 2rem);
  }

  .qg-discovery-shell .qg-home-feature:only-child .qg-home-feature-image {
    height: auto;
  }
}

@media (max-width: 380px) {
  .qg-discovery-shell .qg-discovery-genre-copy {
    padding: 12px 10px;
  }

  .qg-discovery-shell .qg-discovery-genre-copy strong {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qg-discovery-shell a.qg-home-feature-cta {
    transition: none;
  }
}

.qg-home-clans {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  margin-block: 24px;
  border: 1px solid rgba(94, 234, 212, .3);
  border-radius: 16px;
  background: linear-gradient(120deg, #102f34, #122132);
}
.qg-home-clans > div { flex: 1; min-width: 0; }
.qg-home-clans h2 { display: flex; gap: 10px; align-items: center; color: #f0fdfa; font-size: 1.2rem; line-height: 1.5; }
.qg-home-clans p { margin: 10px 0 0; color: #b7d2d8; font-size: .875rem; line-height: 1.8; }
.qg-home-clans > a { flex: 0 0 auto; }
@media (max-width: 720px) {
  .qg-discovery-shell .qg-discovery-genre-art { min-height: 0; }
  .qg-home-clans { align-items: flex-start; flex-direction: column; padding: 20px; gap: 16px; }
}

.qg-battle-intro { margin-bottom: 24px; }
.qg-battle-intro h1 { color: #f8fafc; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.qg-battle-intro p { max-width: 780px; margin: 12px 0 18px; color: #bdc9d8; line-height: 1.8; }
.qg-battle-hub .qg-home-feature h2 { margin: 0 0 16px; color: #f8faf5; font-size: clamp(1.2rem, 2.5vw, 1.75rem); line-height: 1.5; }
.qg-battle-hub .qg-battle-game-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; }
.qg-battle-game-links a { display: inline-flex; align-items: center; min-height: 44px; color: #bae6fd; text-underline-offset: 4px; }
