@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #0a0908;
  --bg-elevated: #131110;
  --card: #16130f;
  --card-border: #2a241c;
  --amber: #f2a53c;
  --amber-soft: #e0913f;
  --amber-dim: rgba(242, 165, 60, 0.35);
  --brown: #a06a2a;
  --text: #f3ede2;
  --text-dim: #a39b8c;
  --text-faint: #6e685c;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-links > a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.25s ease;
}
.nav-links > a:hover {
  color: var(--amber);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.25s ease;
}
.dropdown-trigger:hover,
.dropdown.open .dropdown-trigger {
  color: var(--amber);
}

.chevron {
  transition: transform 0.3s ease;
}
.dropdown.open .chevron {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: -20px;
  display: flex;
  gap: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 26px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s;
}

.dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.genre-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 130px;
}
.genre-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 6px;
}
.genre-item {
  background: none;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  padding: 7px 10px;
  margin: 0 -10px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.genre-item:hover {
  color: var(--amber);
  background: rgba(242, 165, 60, 0.06);
}

.genre-item.active {
  color: #ffcf8a;
  border-color: var(--brown);
  background: rgba(160, 106, 42, 0.18);
}

/* ---------- HERO ---------- */
.container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 60px;
}

.hero {
  padding: 110px 60px 90px;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 96px;
  line-height: 1.02;
  letter-spacing: -2px;
}

.hero-title .accent {
  color: var(--amber);
}
.hero-title .star {
  color: var(--amber-soft);
}

.hero-title .gradient {
  background: linear-gradient(90deg, var(--amber), var(--brown));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 28px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 440px;
}

.hero-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 13px 26px;
  border: 1px solid var(--amber);
  border-radius: 8px;
  color: var(--amber);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-cta:hover {
  background: var(--amber);
  color: #171105;
  box-shadow: 0 0 24px var(--amber-dim);
}
.hero-img {
  width: 600px;
  height: 337.5px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(242, 165, 60, 0.35);

  box-shadow: 0 0 20px rgba(242, 165, 60, 0.12);

  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease,
    box-shadow 0.3s ease;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img:hover {
  transform: scale(1.025);
  border-color: rgba(242, 165, 60, 0.7);
  box-shadow: 0 0 35px rgba(242, 165, 60, 0.25);
}
/* ---------- Hero slide ---------- */
.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ---------- GAMES ---------- */
.games {
  padding: 40px 60px 100px;
}

.games-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 20px;
}

.games-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 500;
}

#activeFilterLabel {
  color: var(--text-faint);
  font-size: 13px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.game-card:hover {
  transform: scale(1.045);
  border-color: var(--amber);
  box-shadow:
    0 0 0 1px var(--amber-dim),
    0 12px 34px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(242, 165, 60, 0.18);
  transform: perspective(800px) rotateX(10deg) rotateY(-8deg) rotateZ(1deg);
}

.game-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.game-info {
  padding: 14px 16px 16px;
}

.game-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.game-genre {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: capitalize;
}

.game-price {
  margin-top: 10px;
  font-size: 13px;
  color: var(--amber);
  font-weight: 500;
}

.games-grid.fade {
  transition: opacity 0.22s ease;
  opacity: 0;
}

@media (max-width: 900px) {
  .nav {
    padding: 18px 24px;
  }
  .nav-links {
    gap: 20px;
  }
  .hero {
    padding: 70px 24px 60px;
  }
  .hero-title {
    font-size: 54px;
  }
  .games {
    padding: 20px 24px 70px;
  }
  .dropdown-panel {
    right: -80px;
    flex-wrap: wrap;
    gap: 20px;
  }
}
.register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--amber);
  color: var(--text);
  border: 1px solid var(--amber);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.register-btn:hover {
  background: #ffc15c;
  box-shadow: 0 0 22px var(--amber-dim);
  transform: translateY(-2px);
}
