:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: #020617;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #020617;
}

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

.header {
  position: relative;
  z-index: 10;
  height: 84px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  background: rgba(2, 6, 23, 0.96);
}

.header__content {
  width: min(calc(100% - 48px), 1280px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header__logo {
  width: 190px;
  height: auto;
}

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-bottom: 1px solid rgba(30, 41, 59, 0.7);
  background:
    linear-gradient(
      rgba(2, 6, 23, 0.4),
      rgba(2, 6, 23, 0.82)
    ),
    url("./assets/background.png") center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 900px);
  min-height: 390px;
  margin: 0 auto;
  padding: 64px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.hero h1 {
  max-width: 900px;
  margin: 20px 0 0;
  color: #f8fafc;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: #fbbf24;
}

.hero__description {
  max-width: 680px;
  margin: 22px 0 0;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.65;
  text-wrap: balance;
}

.construction {
  width: min(100%, 650px);
  margin-top: 28px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.construction__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  font-size: 0.9rem;
}

.construction__content strong {
  display: block;
  color: #fbbf24;
  font-size: 0.95rem;
}

.construction__content p {
  margin: 4px 0 0;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.hero__button {
  margin-top: 26px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #fbbf24;
  color: #020617;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.hero__button:hover {
  background: #fcd34d;
  transform: translateY(-1px);
}

.hero__button:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 4px;
}

.games {
  width: min(calc(100% - 48px), 1000px);
  margin: 0 auto;
  padding: 44px 0 72px;
  scroll-margin-top: 24px;
}

.games__intro h2 {
  margin: 12px 0 0;
  color: #f8fafc;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.games__intro > p:last-child {
  max-width: 660px;
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.games__grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 16px;
  background: #020617;
}

.game-card__image {
  position: absolute;
  inset: 0 0 auto;
  height: 210px;
  overflow: hidden;
}

.game-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.08),
    rgba(2, 6, 23, 0.3) 45%,
    #020617 100%
  );
}

.game-card__content {
  position: relative;
  z-index: 1;
  min-height: 420px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.game-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.game-card__eyebrow,
.game-card__status {
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
}

.game-card__eyebrow {
  padding: 5px 8px;
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.game-card__status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
}

.game-card__details {
  margin-top: auto;
  padding-top: 160px;
}

.game-card__details h3 {
  margin: 0;
  color: #f1f5f9;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.game-card__details p {
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.55;
}

.game-card__availability {
  display: block;
  margin-top: 20px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer {
  min-height: 72px;
  padding: 20px 24px;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(30, 41, 59, 0.6);
  color: #64748b;
  font-size: 0.78rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .games__grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 380px;
  }

  .game-card__content {
    min-height: 380px;
  }
}

@media (max-width: 600px) {
  .header {
    height: 70px;
  }

  .header__content {
    width: min(calc(100% - 32px), 1280px);
  }

  .header__logo {
    width: 165px;
  }

  .hero__content {
    width: min(calc(100% - 32px), 900px);
    padding: 48px 0;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .hero__description {
    font-size: 0.95rem;
  }

  .construction {
    align-items: flex-start;
    padding: 15px;
  }

  .construction__icon {
    width: 34px;
    height: 34px;
  }

  .hero__button {
    width: 100%;
  }

  .games {
    width: min(calc(100% - 32px), 1000px);
    padding: 38px 0 56px;
  }

  .game-card {
    min-height: 400px;
  }

  .game-card__content {
    min-height: 400px;
  }

  .game-card__details {
    padding-top: 150px;
  }
}