games-detail {
  display: contents;
}

games-detail [hidden] {
  display: none;
}

games-detail .detail {
  position: fixed;
  inset: 0px;
  z-index: 80;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.72);
  animation: gamesDetailFade 0.25s ease;
}

games-detail .detail[hidden] {
  display: none;
}

@keyframes gamesDetailFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

games-detail .detail-scrim {
  position: fixed;
  inset: 0px;
}

games-detail .detail-card {
  position: relative;
  width: min(880px, 92vw);
  margin: 44px auto 60px;
  background: #181818;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  color: var(--text);
  animation: gamesDetailIn 0.3s ease;
}

@keyframes gamesDetailIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

games-detail .detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #181818;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

games-detail .detail-hero {
  position: relative;
  height: min(480px, 52vw);
  display: flex;
  align-items: flex-end;
}

games-detail .detail-backdrop {
  position: absolute;
  inset: 0px;
}

games-detail .detail-hero-scrim {
  position: absolute;
  inset: 0px;
  background: linear-gradient(0deg, #181818 2%, rgba(24, 24, 24, 0.15) 55%, transparent);
}

games-detail .detail-headline {
  position: absolute;
  top: 34%;
  left: 8%;
  z-index: 3;
  text-shadow: rgba(0, 0, 0, 0.6) 0px 3px 14px;
}

games-detail .detail-brand {
  color: #e50914;
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 4px;
  font-weight: 700;
}

games-detail .detail-title {
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0px;
}

games-detail .detail-actions {
  position: relative;
  z-index: 3;
  padding: 0 0 30px 8%;
  display: flex;
  align-items: center;
  gap: 12px;
}

games-detail .detail-actions button:not(.detail-round) {
  display: flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  background: var(--text);
  color: var(--background);
  font-size: 18px;
  font-weight: 600;
  padding: 8px 26px 8px 20px;
  border-radius: 5px;
}

games-detail .detail-actions button svg {
  width: 1rem;
  height: 1rem;
}

games-detail .detail-round {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(42, 42, 42, 0.6);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

games-detail .detail-mute {
  position: absolute;
  right: 18px;
  bottom: 34px;
  z-index: 3;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(40, 40, 40, 0.35);
}

games-detail .detail-body {
  display: flex;
  gap: 34px;
  padding: 6px 8% 30px;
}

games-detail .detail-main {
  flex: 1.6;
}

games-detail .detail-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  margin-bottom: 14px;
}

games-detail .detail-match {
  color: #46d369;
  font-weight: 700;
}

games-detail .detail-badge {
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0px 5px;
  border-radius: 3px;
  font-size: 11px;
}

games-detail .detail-ad {
  border-radius: 0px;
  font-weight: 700;
}

games-detail .detail-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

games-detail .detail-rating {
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 1px 7px;
  font-size: 13px;
}

games-detail .detail-mature {
  font-size: 13px;
  color: color-mix(in srgb, transparent, var(--text) 85%);
}

games-detail .detail-desc {
  font-size: 15px;
  line-height: 1.5;
  margin: 0px;
}

games-detail .detail-aside {
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
}

games-detail .detail-aside p {
  margin: 0 0 14px;
}

games-detail .detail-label {
  color: #777;
}

games-detail .detail-hint {
  color: #777;
  font-style: italic;
}

games-detail .detail-section {
  padding: 0 8% 40px;
}

games-detail .detail-section h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
}

games-detail .detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

games-detail .detail-rel {
  background: #2f2f2f;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: transform ease 200ms;
}

games-detail .detail-rel:hover {
  transform: translateY(-2px);
}

games-detail .detail-rel-art {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

games-detail .detail-rel-art span {
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
  text-shadow: rgba(0, 0, 0, 0.6) 0px 2px 6px;
  padding: 0 10px;
}

games-detail .detail-rel-body {
  padding: 12px 14px 16px;
}

games-detail .detail-rel-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin-bottom: 9px;
}

games-detail .detail-rel-match {
  color: #46d369;
  font-weight: 700;
}

games-detail .detail-rel-rating {
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0px 4px;
  font-size: 10px;
}

games-detail .detail-rel-blurb {
  font-size: 12px;
  line-height: 1.45;
  color: color-mix(in srgb, transparent, var(--text) 82%);
  margin: 0px;
}

@media (max-width: 720px) {
  games-detail .detail-body {
    flex-direction: column;
    gap: 16px;
  }

  games-detail .detail-title {
    font-size: 32px;
  }

  games-detail .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
