:root {
  --bg: #141018;
  --surface: #1f1827;
  --surface-2: #251d30;
  --line: #3e3150;
  --text: #f5f2ff;
  --muted: #c8bdd9;
  --accent: #00c56f;
  --accent-2: #ffb347;
  --login: #141016;
  --register: #009a59;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 20% 0%, #291a36 0%, #141018 38%, #141018 100%);
  color: var(--text);
  line-height: 1.6;
}

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 16, 24, 0.92);
  backdrop-filter: blur(7px);
}

.logo {
  width: 148px;
  height: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.main-nav a,
.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--accent-2);
}

.header-actions {
  display: flex;
  gap: 0.55rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.52rem 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.login-btn {
  background: var(--login);
  border-color: #35313d;
}

.register-btn {
  background: var(--register);
}

.hero {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1rem, 2vw, 1.8rem);
  background: linear-gradient(130deg, rgba(255, 179, 71, 0.16), rgba(0, 197, 111, 0.12));
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1,
h2,
h3,
.main-nav a,
.btn {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1;
  max-width: 900px;
}

.hero-cta {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  color: #141018;
  font-weight: 800;
  background: linear-gradient(90deg, #ffb347, #ffd479);
  animation: pulse-cta 1.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulse-cta {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.5);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 14px rgba(255, 179, 71, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 179, 71, 0);
  }
}

.hero-banner {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.games-section,
.homepage-content,
.updated-block,
.site-footer {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.section-title-wrap h2,
.homepage-content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.section-title-wrap p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.games-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.game-card {
  margin: 0;
  border: 1px solid #3f334e;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #292035 0%, #21192c 100%);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.game-card h3 {
  margin: 0;
  padding: 0.5rem 0.6rem 0.65rem;
  font-size: 1.15rem;
  line-height: 1.1;
}

.homepage-content h2 {
  margin-top: 1.7rem;
}

.homepage-content h3 {
  margin-top: 1.2rem;
  font-size: 1.55rem;
}

.homepage-content p,
.homepage-content li {
  color: #e8def8;
}

.inline-image {
  margin: 0.8rem 0 1.1rem;
}

.inline-image img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.inline-image figcaption {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 10px;
}

th,
td {
  border: 1px solid #46385a;
  padding: 0.65rem;
  text-align: left;
}

th {
  background: #2e2340;
}

.reviews-and-faq {
  margin-top: 1.6rem;
}

.reviews-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.review-card {
  background: var(--surface-2);
  border: 1px solid #4a3b61;
  border-radius: 12px;
  padding: 0.9rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.reviewer-name {
  font-weight: 700;
}

.review-rating {
  color: #ffca63;
}

.review-date {
  color: var(--muted);
  font-size: 0.9rem;
}

details {
  border: 1px solid #4a3b61;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: #21182d;
  margin: 0.75rem 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-answer {
  color: var(--muted);
}

.updated-block {
  text-align: center;
  color: var(--muted);
}

.site-footer {
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.trust-badges {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.trust-badges img {
  max-height: 54px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 0.28rem 0.5rem;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .reviews-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .main-nav {
    justify-content: center;
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

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

  table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta {
    animation: none;
  }
}
