:root {

  --background: #070a12;

  --background-2: #0c101c;

  --card: #111725;

  --card-hover: #192239;

  --purple: #7657ff;

  --purple-light: #a895ff;

  --text: #ffffff;

  --muted: #929bb0;

  --border: #242c40;

}


* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}


html {

  scroll-behavior: smooth;

}


body {

  min-height: 100vh;

  background: var(--background);

  color: var(--text);

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

}


/* HEADER */

.header {

  position: sticky;

  top: 0;

  z-index: 100;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 25px;

  padding: 17px 6%;

  background: rgba(7, 10, 18, .94);

  backdrop-filter: blur(15px);

  border-bottom: 1px solid var(--border);

}


.logo {

  color: white;

  text-decoration: none;

  font-size: 23px;

  font-weight: 800;

  white-space: nowrap;

}


.search-box {

  width: min(430px, 100%);

}


.search-box input {

  width: 100%;

  padding: 13px 18px;

  border: 1px solid var(--border);

  border-radius: 30px;

  background: #111624;

  color: white;

  outline: none;

  font-size: 15px;

}


.search-box input:focus {

  border-color: var(--purple);

  box-shadow:
    0 0 0 3px rgba(118,87,255,.12);

}


.back-button {

  color: var(--muted);

  text-decoration: none;

  font-weight: 600;

}


.back-button:hover {

  color: white;

}


/* HERO */

.hero {

  min-height: 470px;

  display: flex;

  align-items: center;

  padding: 70px 8%;

  background:

    radial-gradient(
      circle at 75% 35%,
      rgba(118,87,255,.32),
      transparent 35%
    ),

    radial-gradient(
      circle at 20% 70%,
      rgba(0,190,255,.10),
      transparent 30%
    );

}


.hero-content {

  max-width: 800px;

}


.eyebrow {

  display: block;

  margin-bottom: 18px;

  color: var(--purple-light);

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 3px;

}


.hero h1 {

  margin-bottom: 22px;

  font-size: clamp(48px, 7vw, 90px);

  line-height: .95;

  letter-spacing: -4px;

}


.hero p {

  max-width: 580px;

  margin-bottom: 30px;

  color: var(--muted);

  font-size: 18px;

  line-height: 1.6;

}


.hero-button {

  display: inline-block;

  padding: 14px 24px;

  border-radius: 10px;

  background: var(--purple);

  color: white;

  text-decoration: none;

  font-weight: 700;

  transition: .2s;

}


.hero-button:hover {

  background: #8c72ff;

  transform: translateY(-2px);

}


/* CATEGORIES */

.categories {

  display: flex;

  gap: 10px;

  padding: 20px 6%;

  overflow-x: auto;

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);

}


.category {

  flex-shrink: 0;

  padding: 9px 17px;

  border: 1px solid var(--border);

  border-radius: 30px;

  background: transparent;

  color: var(--muted);

  cursor: pointer;

  font-size: 14px;

}


.category:hover {

  color: white;

  border-color: #4a536b;

}


.category.active {

  background: var(--purple);

  color: white;

  border-color: var(--purple);

}


/* MAIN */

main {

  padding: 60px 6%;

}


.section-header {

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  margin-bottom: 25px;

}


.section-header h2 {

  font-size: 30px;

  margin-bottom: 5px;

}


.section-header p {

  color: var(--muted);

}


#gameCount {

  color: var(--muted);

}


/* GAME GRID */

.games-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(210px, 1fr));

  gap: 20px;

}


/* GAME CARD */

.game-card {

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 15px;

  background: var(--card);

  cursor: pointer;

  transition:
    transform .2s,
    background .2s,
    border-color .2s;

}


.game-card:hover {

  transform: translateY(-6px);

  background: var(--card-hover);

  border-color: #414b68;

}


.game-card a {

  color: inherit;

  text-decoration: none;

}


.game-thumbnail {

  position: relative;

  height: 165px;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #21165a,
      #101c38
    );

}


.game-thumbnail img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}


.thumbnail-placeholder {

  font-size: 65px;

}


.game-info {

  padding: 16px;

}


.game-title {

  margin-bottom: 8px;

  font-size: 18px;

}


.game-description {

  margin-bottom: 15px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.45;

}


.game-meta {

  display: flex;

  justify-content: space-between;

  color: #737e96;

  font-size: 12px;

}


.game-category {

  color: var(--purple-light);

}


/* EMPTY */

.no-results {

  padding: 80px 20px;

  text-align: center;

}


.no-results div {

  margin-bottom: 10px;

  font-size: 50px;

}


.no-results p {

  margin-top: 8px;

  color: var(--muted);

}


.hidden {

  display: none !important;

}


/* GAME PAGE */

.game-page {

  max-width: 1400px;

  margin: auto;

}


.game-page-header {

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 30px;

  margin-bottom: 30px;

}


.game-page-category {

  color: var(--purple-light);

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 2px;

}


.game-page-header h1 {

  margin: 8px 0;

  font-size: clamp(35px, 5vw, 60px);

}


.game-page-header p {

  color: var(--muted);

  max-width: 700px;

}


.big-rating {

  padding: 15px 20px;

  border: 1px solid var(--border);

  border-radius: 12px;

  background: var(--card);

  white-space: nowrap;

  font-weight: 700;

}


/* GAME PLAYER */

.game-container {

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 15px;

  background: #000;

}


.game-container iframe {

  width: 100%;

  height: 100%;

  border: 0;

}


/* ABOUT GAME */

.game-info-panel {

  margin: 35px 0;

  padding: 30px;

  border: 1px solid var(--border);

  border-radius: 15px;

  background: var(--card);

}


.game-info-panel h2 {

  margin-bottom: 12px;

}


.game-info-panel p {

  color: var(--muted);

  line-height: 1.7;

}


/* RELATED */

.related-section {

  margin-top: 50px;

}


.related-section h2 {

  margin-bottom: 25px;

}


/* FOOTER */

footer {

  margin-top: 50px;

  padding: 40px 6%;

  border-top: 1px solid var(--border);

  color: var(--muted);

}


.footer-logo {

  margin-bottom: 10px;

  color: white;

  font-size: 20px;

  font-weight: 800;

}


/* MOBILE */

@media (max-width: 700px) {

  .header {

    flex-direction: column;

    align-items: stretch;

  }


  .logo {

    text-align: center;

  }


  .hero {

    min-height: 400px;

    padding: 60px 7%;

  }


  .hero h1 {

    font-size: 52px;

    letter-spacing: -2px;

  }


  .games-grid {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 12px;

  }


  .game-thumbnail {

    height: 110px;

  }


  .game-info {

    padding: 12px;

  }


  .game-page-header {

    flex-direction: column;

    align-items: flex-start;

  }


  main {

    padding: 40px 5%;

  }

}

