body:has(> header.site-header) .GAMES-main .GAME-breadcrumb { margin-top: 0; margin-bottom: 16px; }

.GAMES-main {
  max-width: var(--site-content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 24px 22px 48px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .GAMES-main {
    padding: 14px max(10px, env(safe-area-inset-right, 0px)) 36px 14px;
  }
}
@media (max-width: 768px) {
  .GAMES-main { padding: 10px 8px 28px; }
}

.GAMES-section { padding: 16px 0 0; }

.GAMES-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
@media (min-width: 640px) {
  .GAMES-heading { font-size: 2rem; margin-bottom: 16px; }
}

.GAMES-intro {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 auto 28px;
  max-width: 560px;
  text-align: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}
.GAMES-intro p { margin: 0; }
@media (max-width: 640px) {
  .GAMES-intro { margin-bottom: 22px; font-size: 1rem; }
}

.GAMES-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px 24px;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .GAMES-grid { gap: 24px 18px; }
}

.GAMES-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  width: 100%;
  max-width: 180px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 5px;
  box-sizing: border-box;
}

.GAMES-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.GAMES-card-inner {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 100%;
  height: 0;
  overflow: hidden;
  border-radius: 11px;
  flex-shrink: 0;
  background: var(--surface);
}

.GAMES-card-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 5px;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  border: 1.5px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.GAMES-card-badges {
  position: absolute;
  top: 4px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}
.GAMES-card-badges--left {
  left: 4px;
  right: auto;
  align-items: flex-start;
}
.GAMES-card-badges--right {
  right: 4px;
  left: auto;
  align-items: flex-end;
}
.GAMES-card-badge--hot {
  color: #fff;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}
.GAMES-card-badge--new {
  color: #fff;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}
.GAMES-card-badge--unblocked {
  color: #fff;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.GAMES-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 11px;
  transition: transform 0.5s ease;
}

.GAMES-card:hover .GAMES-card-img {
  transform: scale(1.06);
}

.GAMES-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 8, 28, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.GAMES-card:hover .GAMES-card-overlay {
  opacity: 1;
}

.GAMES-card-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  margin: 0;
  padding: 12px 8px 9px;
  border-radius: 0 0 11px 11px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-align: center;
  letter-spacing: 0.015em;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.75);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.GAMES-card-play {
  position: absolute;
  left: 50%;
  top: 53%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  transform: translate(-50%, -50%) scale(0.94);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: #000;
  background: var(--accent, #ffdf30);
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform .2s ease;
}
.GAMES-card:hover .GAMES-card-play {
  transform: translate(-50%, -50%) scale(1);
}

.GAMES-card-play-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.GAMES-card-play-arrow svg {
  width: 11px;
  height: 11px;
}

.GAMES-empty { text-align: center; color: var(--text-secondary); font-size: 16px; margin: 0; }

@media (max-width: 600px) {
  .GAMES-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .GAMES-card { max-width: 180px; }
  .GAMES-card-name { padding: 11px 6px 8px; font-size: 12px; }
}

.GAMES-grid.GAMES-grid--flat {
  grid-template-columns: repeat(auto-fill, 156px);
  justify-content: center;
  gap: 20px 18px;
}
.GAMES-grid.GAMES-grid--flat .GAMES-card {
  max-width: none;
  width: 156px;
}
.GAMES-grid.GAMES-grid--flat .GAMES-card-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  padding: 11px 6px 8px;
  font-size: 12px;
}
@media (max-width: 600px) {
  .GAMES-grid.GAMES-grid--flat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 16px 12px;
  }
  .GAMES-grid.GAMES-grid--flat .GAMES-card {
    width: 100%;
  }
}

/* Rich directory sections */
.GAMES-content-section {
  margin-top: 48px;
  padding-top: 8px;
}
.GAMES-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  text-align: center;
  letter-spacing: 0.02em;
}
@media (min-width: 640px) {
  .GAMES-section-title { font-size: 1.65rem; margin-bottom: 14px; }
}
.GAMES-section-lead {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.GAMES-prose {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 26px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  box-sizing: border-box;
}
.GAMES-prose p { margin: 0 0 14px; }
.GAMES-prose p:last-child { margin-bottom: 0; }
.GAMES-prose h3 {
  margin: 22px 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.GAMES-prose a { color: var(--brand-yellow); text-decoration: underline; }
.GAMES-about-list {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}
.GAMES-about-list li { margin-bottom: 8px; }

.GAMES-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 1024px) {
  .GAMES-screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .GAMES-screenshots-grid { grid-template-columns: 1fr; gap: 14px; }
}
.GAMES-screenshot-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 2px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.GAMES-screenshot-item:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.GAMES-screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.GAMES-screenshot-caption {
  display: block;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
}

.GAMES-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .GAMES-videos-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .GAMES-videos-grid { grid-template-columns: repeat(2, 1fr); }
}
.GAMES-video-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.GAMES-video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0f14;
  border: 2px solid var(--card-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.GAMES-video-lazy {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: #0b0f14;
  overflow: hidden;
}
.GAMES-video-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.GAMES-video-lazy.is-ready .GAMES-video-card__thumb { opacity: 1; }
.GAMES-video-lazy:hover .GAMES-video-card__thumb { transform: scale(1.04); }
.GAMES-video-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08) 45%);
  pointer-events: none;
}
.GAMES-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, background 0.2s;
}
.GAMES-video-lazy:hover .GAMES-video-card__play,
.GAMES-video-lazy:focus-visible .GAMES-video-card__play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(139, 92, 246, 0.88);
}
.GAMES-video-card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.GAMES-video-card__caption {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #fff;
  padding: 0 2px;
  text-align: center;
}
.GAMES-video-card__caption a {
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
}

.GAMES-faq { width: 100%; max-width: none; margin: 0; }
.GAMES-faq-item {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--card-bg);
}
.GAMES-faq-q {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.GAMES-faq-item summary {
  list-style: none;
  padding: 16px 44px 16px 18px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
}
.GAMES-faq-item summary::-webkit-details-marker { display: none; }
.GAMES-faq-item summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--text-secondary);
  transition: transform 0.2s;
}
.GAMES-faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.GAMES-faq-a {
  padding: 0 18px 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.GAMES-faq-a p { margin: 0; }

/* Screenshot lightbox with prev/next */
.GAMES-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.GAMES-lightbox.show { opacity: 1; }
.GAMES-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}
.GAMES-lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 94vw;
  padding: 20px;
  animation: GAMES-lightboxZoom 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes GAMES-lightboxZoom {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.GAMES-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.GAMES-lightbox-close:hover { background: rgba(255, 255, 255, 0.15); transform: scale(1.08); }
.GAMES-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.GAMES-lightbox-nav:hover { background: rgba(139, 92, 246, 0.85); transform: translateY(-50%) scale(1.06); }
.GAMES-lightbox-prev { left: 16px; }
.GAMES-lightbox-next { right: 16px; }
.GAMES-lightbox-caption {
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}
@media (max-width: 640px) {
  .GAMES-lightbox-prev { left: 8px; }
  .GAMES-lightbox-next { right: 8px; }
  .GAMES-prose { padding: 16px 18px; }
}
