@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

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

body {
  background: #0f0f1a;
  color:#6b7280;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #1f2033;
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span {
  -webkit-text-fill-color: #fff;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: 8px;
}

.nav-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: #1f2033;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-badge {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.footer {
  background: #13131f;
  border-top: 1px solid #1f2033;
  padding: 32px 28px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: #4b5563;
  font-size: 0.85rem;
}

.footer a {
  color: #6b7280;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s;
  cursor: pointer;
}

.footer a:hover {
  color: #a855f7;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .nav {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }
}
.game-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1b2e;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  text-decoration: none;
  display: inline-block;
  aspect-ratio: 4/3;
  width: 240px;
  margin: 10px;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
  z-index: 2;
}
.nohover:hover{
  transform: none;
  box-shadow: none;
  z-index: 2;
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.game-card:hover img {
  transform: scale(1.08);
}
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 55%);
  transition: opacity 0.25s ease;
}
.game-card:hover .game-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%);
}
.game-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
}
.game-card-title {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card-cats {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.game-card-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.2);
  border-radius: 99px;
  padding: 2px 8px;
  font-weight: 600;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.game-card:hover .play-overlay {
  opacity: 1;
}
.play-btn-circle {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.6);
  transform: scale(0.8);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.game-card:hover .play-btn-circle {
  transform: scale(1);
}
.play-icon {
  color: #fff;
  font-size: 1.2rem;
  margin-left: 3px;
}
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2033 0%, #2a1f4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.search-wrapper {
  position: sticky;
  max-width: 520px;
  margin: 0 auto;
  z-index: 101;
}
.stuck{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.search-placeholder{
  height: 55px;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
  color: #6b7280;
}
.search-input {
  width: 100%;
  box-sizing: border-box;
  background: #1a1b2e;
  border: 2px solid #2d2f4d;
  color: #fff;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 1rem;
  padding: 14px 20px 14px 48px;
  border-radius: 9999px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: #6b7280; }
.search-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}
.search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #2d2f4d;
  border: none;
  color: #9ca3af;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.search-clear:hover { background: #a855f7; color: #fff; }
.cat-scroll-wrapper {
  position: relative;
  margin-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #2d2f4d;
}
.cat-scroll-wrapper::-webkit-scrollbar{display: thin;}
.cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  background: #1a1b2e;
  border: 2px solid #2d2f4d;
  color: #9ca3af;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cat-btn:hover {
  background: #2a2b45;
  color: #e5e7eb;
  border-color: #4b4d7a;
}
.cat-btn.active {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}
.home-page {
  min-height: 100vh;
  background: #0f0f1a;
  color: #fff;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.hero-section {
  padding: 48px 32px 24px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #a855f7, #ec4899, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px;
  letter-spacing: -1px;
}

.hero-sub {
  color: #9ca3af;
  font-size: 1.1rem;
  margin: 0 0 32px;
}

.content-area {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e5e7eb;
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #374151, transparent);
}

.game-count {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 400;
  margin-left: 8px;
}

.flip{
  transform: scaleY(-1);
}