* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #102542;
  line-height: 1.6;
  background: #eef8ff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(7, 20, 42, .25), rgba(7, 20, 42, .45)),
    url("../img/hero-bg.webp") center / cover no-repeat;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: #102542;
  padding: 10px 14px;
  z-index: 999;
}

.skip-link:focus {
  left: 10px;
}

/* Header */
.topbar {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;

  width: min(1180px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;

  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .6);

  background: rgba(255, 255, 255, .56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 18px 50px rgba(38, 99, 235, .13);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .35);
}

.brand-text {
  display: inline-block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(255, 255, 255, .75);
}

/* Mobile Toggle */
.nav-toggle,
.nav-button {
  display: none;
}

.nav-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-button span {
  width: 22px;
  height: 2px;
  background: #102542;
  border-radius: 999px;
}

/* Hero */
.hero {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 140px 20px 110px;
  color: #fff;
  text-align: center;
}

.hero-inner {
  max-width: 920px;
}

.kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  font-weight: 800;
}

.kicker.dark {
  color: #2563eb;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 104px);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-shadow: 0 10px 32px rgba(0, 0, 0, .3);
}

.hero-text {
  max-width: 760px;
  margin: 22px auto 0;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Buttons */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.button.secondary {
  border: 2px solid rgba(255, 255, 255, .75);
  color: #fff;
}

/* Sections */
.section {
  padding: 80px 20px;
}

.section-head {
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.content-box h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -.04em;
}

.section-head p,
.content-box p {
  color: #52657d;
  font-size: 18px;
}

.alt {
  background: rgba(255, 255, 255, .45);
}

/* Game Cards */
.game-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.game-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 54px rgba(15, 35, 66, .14);
  border: 1px solid rgba(37, 99, 235, .08);
}

.game-card.featured {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
}

.game-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.game-card-content {
  padding: 28px;
}

.game-card h3 {
  margin: 12px 0 10px;
  font-size: 30px;
}

.game-card p {
  margin: 0 0 18px;
  color: #52657d;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.badge.online {
  background: #bae6fd;
  color: #075985;
}

.text-link {
  font-weight: 900;
  color: #2563eb;
  text-decoration: none;
}

/* Content */
.content-box {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 28px;
  background: rgba(238, 248, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .95);
  font-weight: 700;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 34px max(20px, calc((100vw - 1180px) / 2));
  background: #0b1730;
  color: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .75);
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  text-decoration: none;
  font-weight: 700;
}

/* Tablet */
@media (max-width: 900px) {
  .topbar {
    width: calc(100% - 24px);
  }

  .game-card.featured {
    display: block;
  }

  .game-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Smartphone */
@media (max-width: 560px) {
  .topbar {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px 12px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    font-size: 14px;
    letter-spacing: .04em;
  }

  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .nav-button {
    display: flex;
  }

  .nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;

    transition: max-height .25s ease, opacity .2s ease, padding-top .2s ease;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 8px;
  }

  .nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 12px;
    background: rgba(255, 255, 255, .75);
    border-radius: 14px;
    font-size: 15px;
  }

  .hero {
    min-height: 62vh;
    padding: 120px 16px 70px;
  }

  .kicker {
    font-size: 11px;
    letter-spacing: .16em;
  }

  h1 {
    font-size: clamp(36px, 13vw, 58px);
    letter-spacing: .04em;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 56px 16px;
  }

  .section-head p,
  .content-box p {
    font-size: 16px;
  }

  .game-card {
    border-radius: 20px;
  }

  .game-card-content {
    padding: 22px;
  }

  .game-card h3 {
    font-size: 24px;
  }

  .content-box {
    padding: 24px;
    border-radius: 22px;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 8px;
  }
}