@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --bg: #090b14;
  --bg-soft: #111526;
  --card: #151a2d;
  --card-hover: #1b2239;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f7fb;
  --text-muted: #aeb6d0;
  --accent: #ff3f45;
  --accent-soft: #ff7b80;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top right, #1b1220 0%, var(--bg) 45%);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

a {
  color: var(--accent-soft);
  text-decoration: none !important;
}

a:hover {
  color: #fff;
}

img {
  width: 100%;
  display: block;
}

.js-preloader {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.25s ease;
}

.js-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  width: 144px;
  height: 32px;
}

.preloader-inner .dot {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot 2.8s infinite;
}

.preloader-inner .dots {
  margin-left: 30px;
  margin-top: 8px;
  animation: dots 2.8s infinite;
}

.preloader-inner .dots span {
  float: left;
  width: 16px;
  height: 16px;
  margin-left: 16px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes dot {
  50% {
    transform: translateX(96px);
  }
}

@keyframes dots {
  50% {
    transform: translateX(-32px);
  }
}

.header-area {
  position: sticky;
  top: 16px;
  z-index: 100;
}

.header-area .main-nav {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 16, 29, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
}

.header-area .main-nav .logo img {
  width: min(720px, 75vw);
}

.page-content {
  margin-top: 30px;
  padding: 18px 0 42px;
}

.main-banner {
  padding: 44px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 63, 69, 0.22), rgba(18, 22, 39, 0.9) 42%, rgba(18, 22, 39, 1));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.banner-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.badge-text {
  display: inline-flex;
  background: rgba(255, 63, 69, 0.16);
  color: #ffd0d1;
  border: 1px solid rgba(255, 110, 115, 0.34);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.header-text h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  margin: 0 0 16px;
}

.header-text p {
  color: #d4d9ea;
  margin: 0;
  max-width: 780px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff4d53, #ff2d35);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 58, 65, 0.3);
}

.btn-secondary {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: grid;
  gap: 12px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 9, 16, 0.55);
  padding: 14px 16px;
}

.stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
}

.gaming-library {
  margin-top: 28px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.heading-section h4 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0;
}

.heading-section p {
  margin-top: 8px;
  color: var(--text-muted);
}

.game-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 18px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

.templatemo-item {
  border-radius: 14px;
  max-height: 110px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.game-content {
  min-width: 0;
}

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-top h4 {
  margin: 0;
  font-size: 24px;
}

.platform {
  font-size: 12px;
  color: #c6cee8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}

.meta-list {
  margin: 11px 0 10px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.meta-list li span {
  color: var(--text-muted);
  margin-right: 6px;
  font-size: 13px;
}

.meta-list li strong {
  font-size: 14px;
}

.desc {
  margin: 0;
  color: #d8deee;
  line-height: 1.6;
}

.main-border-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 96, 100, 0.7);
  color: #ffd6d8;
  font-size: 14px;
  font-weight: 600;
  padding: 0 16px;
  transition: all 0.2s ease;
}

.main-border-button a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

footer p {
  text-align: center;
  color: #c5cce5;
  padding: 24px 0 34px;
  margin: 0;
  border-top: 1px solid var(--line);
}

footer p a {
  color: #fff;
}

@media (max-width: 992px) {
  .header-area {
    top: 8px;
  }

  .main-banner {
    padding: 30px 24px;
  }

  .banner-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .templatemo-item {
    max-height: 180px;
  }

  .main-border-button a {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .header-area .main-nav {
    padding: 12px;
    border-radius: 14px;
  }

  .gaming-library {
    padding: 22px 16px;
  }

  .main-banner {
    padding: 24px 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .game-top h4 {
    font-size: 20px;
  }
}
