:root {
  --accent: oklch(0.769 0.188 70.08);
  --accent-hover: oklch(0.65 0.18 65);
  --accent-soft: oklch(0.92 0.06 70);
}

.hub-page[hidden] {
  display: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Nunito", "Inter", sans-serif;
  /* Valparadis-inspired: soft neutral background (Clar) */
  background: linear-gradient(
    160deg,
    #f0eeeb 0%,
    #e5e2dd 35%,
    #ebe8e4 70%,
    #f2f0ec 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-container {
  width: 90%;
  max-width: 900px;
  text-align: center;
}

.page-title {
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.75rem;
}

/* Grid */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Cards: full card is the link */
a.preview-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.85);
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

a.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

a.preview-card:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Game name inside card */
.card-title {
  display: block;
  padding: 10px 8px;
  border-radius: 10px;
  color: white;
  background: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

a.preview-card:hover .card-title {
  background: var(--accent-hover);
}

/* Navigation arrows: chevron icons, coherent with menu */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-arrow svg {
  width: 26px;
  height: 26px;
}

.nav-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.nav-arrow.left {
  left: 20px;
}

.nav-arrow.right {
  right: 20px;
}

/* Top Left Navigation */
.top-nav {
  position: fixed;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
}

.top-nav a {
  text-decoration: none;
}

/* Home Button in nav */
.top-nav #home {
  width: 48px;
  height: 48px;
  border: none;
  background-color: #2a2a2a;
  color: white;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.2s ease;
}

.top-nav #home:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.top-nav #home svg {
  width: 24px;
  height: 24px;
}

/* Navigation Links */
.nav-link {
  font-weight: 700;
  color: #333;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 700px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.5rem;
  }
}
