* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: #172033;
  background: #f7f9fc;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e7ebf2;
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: #4c3cff;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a:hover {
  color: #4c3cff;
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 1.4rem;
}

.hero {
  padding: 72px 0;
  background: linear-gradient(135deg, #eef0ff, #fff4ed);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #6959ff;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #586174;
  max-width: 680px;
}

.hero-card {
  background: white;
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(34, 44, 82, 0.12);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 750;
  display: inline-block;
}

.btn-primary {
  background: #4c3cff;
  color: #fff;
}

.btn-secondary {
  background: white;
  border: 1px solid #d8deea;
}

.text-link {
  font-weight: 750;
  color: #4c3cff;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-top: 48px;
}

.main-column {
  min-width: 0;
}

.ad-rail {
  display: none;
}

.section {
  margin-bottom: 64px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
  gap: 20px;
}

.section-heading h2 {
  margin: 0.25rem 0 0;
  font-size: 2rem;
}

.section-heading > a {
  color: #4c3cff;
  font-weight: 700;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.five {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card,
.article-card {
  background: #fff;
  border: 1px solid #e6eaf1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 30, 60, 0.06);
}

.game-thumb {
  background: #fff;
  padding: 18px;
  display: grid;
  place-items: center;
  min-height: 180px;
}

.game-thumb img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 24px;
}

.game-card-body {
  padding: 16px;
}

.game-card h3,
.article-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.game-card p,
.article-card p {
  margin: 0 0 14px;
  color: #667085;
  font-size: 0.92rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  background: #f0efff;
  color: #5748db;
  padding: 5px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #fff1e9, #eeeaff);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #5946d5;
  padding: 20px;
  text-align: center;
}

.article-card .content {
  padding: 18px;
}

.ad-slot {
  height: 600px;
  border: 1px dashed #b8c0cf;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #8a94a6;
  border-radius: 12px;
}

.sticky {
  position: sticky;
  top: 92px;
}

.site-footer {
  background: #11182a;
  color: #d6dbea;
  padding: 46px 0 22px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-grid > div:last-child {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.copyright {
  margin-top: 28px;
  color: #99a4b8;
  border-top: 1px solid #273149;
  padding-top: 18px;
}

.content-page {
  padding: 56px 0;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 40px;
}

.prose {
  background: #fff;
  border: 1px solid #e6eaf1;
  padding: 34px;
  border-radius: 18px;
}

.prose h1 {
  font-size: 2.5rem;
  line-height: 1.15;
}

.prose h2 {
  margin-top: 2rem;
}

.prose li {
  margin-bottom: 0.55rem;
}

.notice {
  padding: 16px;
  border-radius: 12px;
  background: #fff7e8;
  border: 1px solid #f2d49b;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label {
  font-weight: 700;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccd3df;
  border-radius: 10px;
  font: inherit;
}

.form-grid textarea {
  min-height: 140px;
}

.muted {
  color: #667085;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid #e9edf3;
  padding: 12px;
  text-align: left;
}

.game-card {
  display: flex;
  flex-direction: column;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card .text-link {
  margin-top: auto;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card .content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card .text-link {
  margin-top: auto;
}

@media (max-width: 1050px) {
  .card-grid.five {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 62px;
    background: #fff;
    padding: 18px;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .hero-grid,
  .content-shell {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .card-grid.five {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }

  .prose {
    padding: 22px;
  }

  .hero {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .article-grid,
  .card-grid.five {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .game-thumb {
    min-height: 150px;
  }

  .game-thumb img {
    width: 110px;
    height: 110px;
  }
}

/* Keep all card buttons aligned at the bottom */

.card-grid,
.article-grid {
  align-items: stretch;
}

.game-card,
.article-card {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
}

.game-card-body,
.article-card .content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.game-card-body .text-link,
.article-card .content .text-link {
  margin-top: auto !important;
  padding-top: 16px;
  display: block;
}