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

:root {
  --bg: #070a14;
  --card: #111827;
  --card-hover: #151d31;
  --border: #252d43;
  --purple: #7657ff;
  --purple-light: #9a86ff;
  --green: #a7ff00;
  --text: #ffffff;
  --muted: #8f9ab8;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(118, 87, 255, 0.18),
      transparent 38%
    ),
    #070a14;
  color: var(--text);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

/* =========================
   HEADER
========================= */

.site-header {
  width: 100%;
  height: 72px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(7, 10, 20, 0.94);
  border-bottom: 1px solid #20273a;

  position: sticky;
  top: 0;
  z-index: 100;

  backdrop-filter: blur(14px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #fff;
  text-decoration: none;

  font-size: 23px;
  font-weight: 900;
}

.logo-icon {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      #7657ff,
      #4c38c7
    );

  box-shadow:
    0 6px 20px rgba(118, 87, 255, 0.25);

  font-size: 21px;
}

.back-btn {
  color: #aab4d0;
  text-decoration: none;

  padding: 10px 16px;

  border: 1px solid #303951;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 700;

  transition: 0.25s ease;
}

.back-btn:hover {
  color: #fff;

  border-color: var(--purple);

  background: rgba(118, 87, 255, 0.12);

  transform: translateY(-1px);
}

/* =========================
   PAGE
========================= */

.arcade-page {
  width: min(1180px, 92%);
  margin: auto;

  padding: 65px 0 80px;
}

/* =========================
   HEADING
========================= */

.page-heading {
  text-align: center;

  max-width: 760px;

  margin: 0 auto 45px;
}

.category-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;

  border: 1px solid rgba(118, 87, 255, 0.35);
  border-radius: 50px;

  color: #b8adff;

  background: rgba(118, 87, 255, 0.08);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 1.4px;

  margin-bottom: 17px;
}

.page-heading h1 {
  font-size: clamp(42px, 6vw, 68px);

  line-height: 1;

  font-weight: 950;

  letter-spacing: -2px;

  margin-bottom: 18px;

  background:
    linear-gradient(
      135deg,
      #ffffff 25%,
      #a99bff 100%
    );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-heading p {
  color: var(--muted);

  font-size: 15px;

  line-height: 1.7;
}

/* =========================
   GAMES GRID
========================= */

.games-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;
}

/* =========================
   GAME CARD
========================= */

.game-card {
  min-width: 0;

  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 39, 0.96),
      rgba(10, 15, 28, 0.98)
    );

  border: 1px solid var(--border);

  border-radius: 18px;

  overflow: hidden;

  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.game-card:hover {
  transform: translateY(-7px);

  border-color: rgba(118, 87, 255, 0.65);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(118, 87, 255, 0.08);
}

.game-link {
  display: block;

  color: inherit;

  text-decoration: none;
}

/* =========================
   GAME IMAGE
========================= */

.game-image {
  height: 205px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-bottom: 1px solid #252d43;
}

.game-image::before {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  background: rgba(118, 87, 255, 0.12);

  filter: blur(10px);

  transition: 0.3s ease;
}

.game-card:hover .game-image::before {
  transform: scale(1.35);

  background: rgba(118, 87, 255, 0.18);
}

.game-emoji {
  position: relative;
  z-index: 2;

  font-size: 78px;

  line-height: 1;

  filter:
    drop-shadow(
      0 12px 20px rgba(0, 0, 0, 0.45)
    );

  transition: transform 0.3s ease;
}

.game-card:hover .game-emoji {
  transform: scale(1.12) rotate(-3deg);
}

/* Different game backgrounds */

.snake-image {
  background:
    radial-gradient(
      circle at center,
      rgba(83, 255, 105, 0.16),
      transparent 65%
    ),
    #0b1420;
}

.flappy-image {
  background:
    radial-gradient(
      circle at center,
      rgba(49, 199, 255, 0.18),
      transparent 65%
    ),
    #0a1520;
}

.pong-image {
  background:
    radial-gradient(
      circle at center,
      rgba(118, 87, 255, 0.2),
      transparent 65%
    ),
    #0d1020;
}

.breakout-image {
  background:
    radial-gradient(
      circle at center,
      rgba(255, 92, 92, 0.16),
      transparent 65%
    ),
    #160e18;
}

.pacman-image {
  background:
    radial-gradient(
      circle at center,
      rgba(255, 217, 47, 0.18),
      transparent 65%
    ),
    #11121c;
}

/* =========================
   CARD CONTENT
========================= */

.game-content {
  padding: 20px;
}

.game-content h2 {
  font-size: 21px;

  font-weight: 850;

  margin-bottom: 10px;
}

.game-meta {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  margin-bottom: 12px;

  color: #9da8c3;

  font-size: 12px;

  font-weight: 700;
}

.game-meta span:first-child {
  color: #a99cff;
}

.game-meta span:last-child {
  color: #ffd84a;
}

.game-content p {
  color: #808ba7;

  font-size: 13px;

  line-height: 1.65;

  min-height: 42px;

  margin-bottom: 17px;
}

/* =========================
   PLAY BUTTON
========================= */

.play-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  padding: 11px 14px;

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      #7657ff,
      #5941d8
    );

  color: white;

  font-size: 12px;

  font-weight: 850;

  transition: 0.25s ease;

  box-shadow:
    0 7px 20px rgba(118, 87, 255, 0.14);
}

.game-card:hover .play-btn {
  background:
    linear-gradient(
      135deg,
      #866cff,
      #654ce4
    );

  box-shadow:
    0 9px 25px rgba(118, 87, 255, 0.25);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 25px 20px;

  border-top: 1px solid #20273a;

  text-align: center;

  color: #68738f;

  font-size: 12px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 950px) {

  .games-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  .site-header {
    height: 64px;

    padding: 0 18px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    width: 35px;
    height: 35px;

    font-size: 18px;
  }

  .back-btn {
    padding: 8px 11px;

    font-size: 11px;
  }

  .arcade-page {
    width: 92%;

    padding: 42px 0 60px;
  }

  .page-heading {
    margin-bottom: 30px;
  }

  .page-heading h1 {
    font-size: 43px;

    letter-spacing: -1.5px;
  }

  .page-heading p {
    font-size: 13px;
  }

  .games-grid {
    grid-template-columns: 1fr;

    gap: 16px;
  }

  .game-image {
    height: 190px;
  }

  .game-emoji {
    font-size: 72px;
  }

  .game-content {
    padding: 18px;
  }

}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 380px) {

  .back-btn {
    font-size: 10px;

    padding: 7px 9px;
  }

  .page-heading h1 {
    font-size: 38px;
  }

  .game-image {
    height: 175px;
  }

}
