/* =========================================================
   PÁGINA: JOGOS
   Vitrine leve para abrir jogos carregados em páginas próprias.
========================================================= */

.pagina-jogos {
  background: #031016;
}

.pagina-jogos #header {
  background: linear-gradient(
    to bottom,
    rgba(3, 9, 12, 0.90),
    rgba(3, 9, 12, 0.62),
    rgba(3, 9, 12, 0.12)
  );
}

.pagina-jogos #header.scrolled {
  background: rgba(5, 14, 18, 0.88);
}

.jogos-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(1, 8, 12, 0.10), rgba(1, 8, 12, 0.62)),
    url("imagens/fundojogos.png") center top / max(100%, 1680px) auto no-repeat;
  background-color: #031016;
}

.jogos-page::before,
.jogos-page::after,
.jogos-shade {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.jogos-page::before {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.58), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.52)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18) 46%, rgba(0, 0, 0, 0.72));
}

.jogos-page::after {
  background: radial-gradient(circle at 50% 21%, rgba(216, 174, 95, 0.13), transparent 30%);
  mix-blend-mode: screen;
  opacity: 0.62;
}

.jogos-shade {
  background:
    radial-gradient(circle at 50% 54%, rgba(4, 16, 20, 0.16), transparent 36%),
    linear-gradient(to bottom, transparent 58%, rgba(3, 13, 18, 0.90));
}

.jogos-content {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(220px, 25vh, 270px) 0 54px;
}

.jogos-title-area {
  max-width: 960px;
  margin: 0 auto 28px;
  text-align: center;
}

.jogos-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(216, 174, 95, 0.30);
  border-radius: 999px;
  background: rgba(4, 13, 17, 0.38);
  color: rgba(247, 221, 176, 0.88);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.98rem;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.70);
}

.jogos-title-area h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(3.35rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  color: #f6dfaa;
  font-weight: 500;
  text-shadow:
    0 3px 0 rgba(54, 33, 15, 0.72),
    0 18px 44px rgba(0, 0, 0, 0.70),
    0 0 26px rgba(216, 174, 95, 0.24);
}

.jogos-title-area > p:not(.jogos-kicker) {
  max-width: 850px;
  margin: 0 auto;
  color: rgba(255, 246, 222, 0.86);
  font-size: clamp(1.02rem, 1.7vw, 1.35rem);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.74);
}

.jogos-ornament,
.small-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
}

.jogos-ornament {
  width: min(380px, 72%);
  margin: 18px auto 14px;
}

.jogos-ornament span,
.small-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(216, 174, 95, 0.72));
}

.jogos-ornament span:last-child,
.small-ornament span:last-child {
  background: linear-gradient(to left, transparent, rgba(216, 174, 95, 0.72));
}

.jogos-ornament i,
.small-ornament i {
  font-size: 0.58rem;
  filter: drop-shadow(0 0 8px rgba(216, 174, 95, 0.78));
}

.jogos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 24px;
  align-items: stretch;
}

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

.game-card,
.jogos-panel,
.jogos-callout {
  border: 1px solid rgba(216, 174, 95, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(15, 13, 11, 0.58);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.game-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 10px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.game-card-featured {
  border-color: rgba(247, 221, 176, 0.54);
  background:
    linear-gradient(135deg, rgba(216, 174, 95, 0.13), rgba(255, 255, 255, 0.025)),
    rgba(15, 13, 11, 0.62);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(247, 221, 176, 0.66);
  box-shadow:
    0 28px 62px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(216, 174, 95, 0.13);
}

.game-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 174, 95, 0.48);
  border-radius: 28px 28px 8px 8px;
  background:
    radial-gradient(circle at 50% 36%, rgba(216, 174, 95, 0.20), transparent 58%),
    rgba(4, 13, 17, 0.54);
  color: var(--gold-light);
  font-size: 2.1rem;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.38);
}

.game-copy span {
  display: inline-block;
  margin-bottom: 5px;
  color: #f2bd69;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.game-copy h2,
.jogos-panel h2 {
  font-family: "Cinzel", serif;
  color: var(--gold-light);
  line-height: 1.12;
}

.game-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.game-copy p,
.jogos-panel p {
  color: rgba(255, 245, 218, 0.76);
  line-height: 1.62;
}

.game-copy p {
  margin-bottom: 16px;
}

.game-action {
  min-height: 42px;
  width: min(190px, 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(247, 221, 176, 0.54);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(224, 180, 93, 0.92), rgba(130, 79, 30, 0.88));
  color: #fff3cc;
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.game-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(216, 174, 95, 0.26);
}

.game-action.muted {
  background: rgba(4, 13, 17, 0.42);
  color: rgba(255, 245, 218, 0.56);
  cursor: default;
}

.game-action.muted:hover {
  transform: none;
  box-shadow: none;
}

.jogos-panel {
  min-height: 100%;
  padding: 34px 28px;
  border-radius: 10px;
  text-align: center;
}

.panel-seal {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: -10px auto 20px;
  border: 1px solid rgba(216, 174, 95, 0.54);
  border-radius: 50%;
  background: rgba(4, 13, 17, 0.68);
  color: var(--gold);
  font-size: 1.7rem;
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(216, 174, 95, 0.14);
}

.jogos-panel h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
}

.jogos-panel .small-ornament {
  width: 170px;
  margin: 16px auto 18px;
}

.jogos-panel ul {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  list-style: none;
  text-align: left;
}

.jogos-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 245, 218, 0.82);
}

.jogos-panel li i {
  width: 18px;
  color: var(--gold);
}

.jogos-callout {
  width: min(760px, 100%);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  padding: 12px 26px;
  border-radius: 8px;
  color: rgba(255, 245, 218, 0.90);
  text-align: center;
  font-family: "Amiri", serif;
  font-size: 1.2rem;
}

.album-content {
  display: grid;
  align-content: center;
}

.album-placeholder {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 8px auto 0;
  padding: 28px;
  border: 1px solid rgba(216, 174, 95, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.016)),
    rgba(15, 13, 11, 0.62);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

.album-placeholder-icon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 174, 95, 0.50);
  border-radius: 50%;
  background: rgba(4, 13, 17, 0.58);
  color: var(--gold-light);
  font-size: 2rem;
}

.album-placeholder h2 {
  margin-bottom: 8px;
  color: var(--gold-light);
  font-family: "Cinzel", serif;
  font-size: 1.45rem;
}

.album-placeholder p {
  margin-bottom: 18px;
  color: rgba(255, 245, 218, 0.76);
}

html[data-theme="light"] .pagina-jogos #header,
html[data-theme="light"] .pagina-jogos #header.scrolled {
  background: rgba(5, 14, 18, 0.84);
}

html[data-theme="light"] .jogos-page {
  color: rgba(255, 245, 218, 0.88);
}

html[data-theme="light"] .game-card,
html[data-theme="light"] .jogos-panel,
html[data-theme="light"] .jogos-callout {
  background:
    linear-gradient(135deg, rgba(255, 247, 226, 0.10), rgba(255, 255, 255, 0.025)),
    rgba(13, 17, 16, 0.62);
}

@media (max-width: 1180px) {
  .jogos-content {
    padding-top: clamp(210px, 24vh, 250px);
  }

  .jogos-layout {
    grid-template-columns: 1fr;
  }

  .jogos-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .jogos-page {
    background-size: auto clamp(720px, 88vh, 860px);
    background-position: center top;
  }

  .jogos-content {
    width: min(100% - 28px, 620px);
    padding-top: 190px;
    padding-bottom: 38px;
  }

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

  .game-card {
    grid-template-columns: 1fr;
    min-height: auto;
    justify-items: center;
    text-align: center;
  }

  .album-placeholder {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .game-action {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .jogos-content {
    width: min(100% - 22px, 620px);
    padding-top: 172px;
  }

  .jogos-title-area h1 {
    font-size: clamp(2.55rem, 15vw, 3.65rem);
  }

  .jogos-title-area > p:not(.jogos-kicker) {
    font-size: 0.96rem;
  }

  .game-card,
  .jogos-panel {
    padding: 22px 18px;
  }
}
