:root {
  --bg-0: #01050f;
  --bg-1: #040d1d;
  --bg-2: #071429;
  --text-0: #dce8ff;
  --text-1: #7e92b6;
  --line: #1a3158;
  --accent: #3e6faa;
  --accent-2: #2f5f99;
}

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

body {
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-0);
  overflow-x: hidden;
  background:
    radial-gradient(960px 420px at 86% -18%, #2a6dad1f, transparent 70%),
    radial-gradient(760px 460px at 10% 12%, #245d991b, transparent 66%),
    linear-gradient(140deg, transparent 30%, #7db4e006 50%, transparent 70%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 50%, var(--bg-2));
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: 0.15;
  background-image:
    linear-gradient(#9ed0ff14 1px, transparent 1px),
    linear-gradient(90deg, #9ed0ff14 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000f 0%, #000b 52%, transparent 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.06;
  background-image: radial-gradient(#ffffff 0.7px, transparent 0.7px);
  background-size: 3px 3px;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}

.bg-shape-a {
  width: 420px;
  height: 420px;
  background: #2b6fb526;
  top: -100px;
  right: -100px;
}
.button .btn-icon {
  width: 20px;         /* size of your icon */
  height: 20px;
  margin-right: 8px;   /* space between icon and text */
  vertical-align: middle; /* vertically center with text */
}
.bg-shape-b {
  width: 340px;
  height: 340px;
  background: #245d971f;
  bottom: 6%;
  left: -120px;
}

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-0);
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
  text-transform: lowercase;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px #4f88c944);
}

.actions {
  display: flex;           /* enables flex layout */
  justify-content: center; /* centers items horizontally */
  gap: 1rem;               /* optional: spacing between buttons */
  margin-top: 1.5rem;      /* optional: spacing from h1/logo above */
  gap: 0.55rem;
}

.button {
  color: var(--text-0);
  text-decoration: none;
  border: 1px solid #345883;
  background: #07112688;
  padding: 0.55rem 1rem;
  border-radius: 0.7rem;
  transition: 160ms ease;
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.button:hover {
  border-color: var(--accent);
  background: #10244a9a;
}

.button.secondary {
  border-color: transparent;
  background: transparent;
  color: var(--text-1);
  padding: 0;
}

.button.secondary:hover {
  color: var(--text-0);
  border-color: transparent;
  background: transparent;
}

.button.with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
}

.button.with-icon img {
  height: 18px;
  width: auto;
  display: block;
}

main {
  width: calc(100% - 2rem);
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  min-height: calc(100vh - 140px);
  display: grid;
  gap: 2rem;
  justify-items: center;
}

.hero,
.showcase-heading {
  width: 100%;
  text-align: center;
}

.hero-header,
.hero h1,
.showcase-heading,
.showcase-heading h2,
.games-grid,
.game-card,
.game-card p,
.carousel-shell,
.carousel-viewport,
.carousel-track,
.carousel-slide {
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.hero-header img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.hero {
  display: grid;
  gap: 0.85rem;
  padding: 3.5rem 0 0.6rem;
}

.hero h1,
.showcase-heading h2 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(3.25rem, 9vw, 7rem);
  line-height: 0.92;
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-1);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.showcase-heading {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.4rem;
}

.showcase-heading h2 {
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: 0.95;
}

.showcase {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 1rem;
}

.carousel-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  perspective: 1200px;
}

.carousel-viewport {
  width: 100%;
  height: clamp(220px, 36vw, 360px);
  position: relative;
  overflow: hidden;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.carousel-viewport.is-switching-out {
  opacity: 0.48;
  transform: scale(0.992);
  filter: blur(1px);
}

.carousel-viewport.is-switching-in {
  animation: carouselSwitchIn 280ms ease;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.nav-btn {
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  color: var(--text-0);
  font-size: 2rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  transition: 160ms ease;
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.nav-btn:hover {
  color: #7eb4f0;
}

.nav-btn:disabled {
  color: #5d6d86;
  cursor: default;
}

.carousel-slide {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(520px, 40vw);
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #1a3158;
  background: linear-gradient(170deg, #0b1a3378, #060e218a);
  box-shadow: 0 16px 42px #00000066;
  transform: translate(-50%, 0) translateX(0) scale(1);
  transition: transform 420ms ease, opacity 420ms ease, filter 420ms ease;
  cursor: pointer;
  user-select: none;
}

.carousel-slide.is-active {
  cursor: default;
}

.carousel-slide.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #030916;
}

.enlarge-btn {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 2.95rem;
  height: 2.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #4f84c6;
  border-radius: 0.55rem;
  background: #06142acc;
  color: #cfe5ff;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease;
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.carousel-slide.is-active .enlarge-btn {
  opacity: 1;
  pointer-events: auto;
}

.enlarge-btn:hover {
  border-color: #7eb4f0;
  background: #0d2246f2;
}

.enlarge-btn:focus-visible {
  outline: 2px solid #9ac8ff;
  outline-offset: 2px;
}

.enlarge-btn svg {
  width: 1.95rem;
  height: 1.95rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #020914e8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(1280px, 96vw);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 0.85rem;
  border: 1px solid #335f94;
  background: #030916;
  box-shadow: 0 16px 38px #00000099;
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: #c7dcff;
  font-size: 2rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.lightbox-close:hover {
  color: #ffffff;
}

.purchase-wrap {
  width: min(980px, 100%);
  display: flex;
  justify-content: center;
}

.purchase-btn {
  min-width: 180px;
  text-align: center;
  padding: 0.9rem 1.0rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #4f84c6;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #1a3f74, #2b63a5);
  box-shadow: 0 10px 24px #07122699, 0 0 0 1px #76a7de2b inset;
}

.purchase-btn:hover {
  border-color: #7eb4f0;
  background: linear-gradient(135deg, #1f4a86, #3578c2);
  box-shadow: 0 14px 30px #0b1b3899, 0 0 22px #4b88d566;
  transform: translateY(-1px);
}

.login-btn {
  background: linear-gradient(135deg, #1c3f6e, #2a5fa0);
  border-color: #5f8fd1;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.login-btn:hover {
  background: linear-gradient(135deg, #25508a, #3473c2);
  border-color: #7eb4f0;
}

.footer {
  text-align: center;
  color: #7085aa;
  padding: 1rem 1rem 1.7rem;
  font-size: 0.88rem;
}

.games {
  width: min(75vw, 1240px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.games-grid {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: stretch;
  gap: 1rem;
  overflow: visible;
  padding-top: 0.2rem;
}

.game-card {
  position: relative;
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  aspect-ratio: 2 / 3;
  border: 1px solid #1a3158;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #050f23;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.game-card:hover {
  border-color: #3769a4;
}

.game-card.is-active {
  border-color: #6eaeff;
  box-shadow: 0 0 0 3px #6eaeff88 inset, 0 0 0 2px #89bbff78, 0 8px 20px #081a3455;
  transform: translateY(-1px);
}

.game-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 0;
  background: transparent;
}

.game-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.16rem 0.46rem;
  border-radius: 0.4rem;
  border: 1px solid #2a4f7f;
  background: #050b16f2;
  color: #d8e8ff;
}

.game-badge.dma {
  border-color: #2f5f99;
  background: #0a1b33f2;
  color: #9ed0ff;
}

.game-badge.internal {
  border-color: #8a6a2d;
  background: #2a1f0df2;
  color: #ffd98a;
}

.game-card .game-badge + .game-badge {
  top: 2.5rem;
}

.game-card p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0.03em;
  padding: 0 0.75rem;
  background: linear-gradient(180deg, #08101f66, #050c18f2);
  border-top: 1px solid #1a3158;
}

.game-price {
  color: #7eb4f0;
  font-weight: 700;
}

.forum-link {
  font-family: 'Rajdhani', sans-serif;
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.5px;   /* optional for visual weight */
}

.forum-link:hover {
  color: #fff;
}

@keyframes carouselSwitchIn {
  from {
    opacity: 0.52;
    transform: scale(0.992);
    filter: blur(1px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    width: 100%;
  }

  .button {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .carousel-shell {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .nav-btn {
    width: auto;
  }

  .carousel-viewport {
    height: clamp(180px, 48vw, 260px);
  }

  .carousel-slide {
    width: min(300px, 58vw);
  }

  .games-grid {
    flex-wrap: wrap;
    overflow: visible;
  }

  .game-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 150px;
  }
}
