:root {
  color-scheme: light;
  --ink: #121721;
  --muted: #607086;
  --bg: #f4f7f2;
  --deep: #11171f;
  --panel: #ffffff;
  --line: #dce5df;
  --yellow: #f5c84b;
  --cyan: #22b8cf;
  --green: #1e7a62;
  --coral: #ef7d63;
  --blue: #355d7d;
  --shadow: 0 22px 70px rgba(17, 23, 31, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  min-height: 76svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 46px 0 68px;
  background: var(--deep);
  color: #fff;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(17, 23, 31, .98), rgba(17, 23, 31, .86) 40%, rgba(17, 23, 31, .42) 70%, rgba(17, 23, 31, .16)),
    linear-gradient(0deg, rgba(17, 23, 31, .82), rgba(17, 23, 31, .08) 44%);
}

.hero__content,
.catalog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 64px;
  line-height: 1;
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
  line-height: 1.5;
}

.hero__button,
.category-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: #1d1606;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.hero__button { padding: 0 28px; }

.catalog {
  padding: 54px 0 66px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 14px;
  font-size: 44px;
  line-height: 1.06;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  grid-column: span 2;
  display: grid;
  gap: 16px;
  min-height: 286px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 44px rgba(17, 23, 31, .08);
}

.category-card:nth-child(1),
.category-card:nth-child(2) {
  grid-column: span 3;
}

.category-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-card__mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #eef5f7;
  color: var(--blue);
  font-weight: 950;
}

.category-card__tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef4eb;
  color: #294039;
  font-size: 13px;
  font-weight: 900;
}

.category-card h3 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.13;
}

.category-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.category-card button {
  align-self: end;
  width: 100%;
}

.category-card--hoyoverse .category-card__mark {
  background: #e8f7f9;
  color: #117486;
}

.category-card--steam .category-card__mark {
  background: #e9eef4;
  color: #243f5d;
}

.category-card--subscriptions .category-card__mark {
  background: #fff3d1;
  color: #7a5300;
}

.category-card--mobile .category-card__mark {
  background: #e6f2ed;
  color: var(--green);
}

.category-card--gift .category-card__mark {
  background: #ffece5;
  color: #a9442d;
}

.category-card button:disabled {
  cursor: wait;
  opacity: .74;
}

.status,
.fineprint {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.5;
}

.status {
  min-height: 24px;
  margin: 24px 0 8px;
  font-weight: 800;
}

.fineprint {
  margin-bottom: 0;
  font-size: 14px;
}

.plain-page {
  background: #f4f7f2;
}

.policy {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.policy__back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--green);
  font-weight: 900;
}

.policy h1 {
  color: var(--ink);
  font-size: 42px;
}

.policy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero {
    min-height: 74svh;
    padding-top: 34px;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(17, 23, 31, .98), rgba(17, 23, 31, .84) 58%, rgba(17, 23, 31, .44)),
      linear-gradient(0deg, rgba(17, 23, 31, .86), rgba(17, 23, 31, .08) 42%);
  }

  .brand {
    margin-bottom: 44px;
  }

  h1 {
    max-width: 620px;
    font-size: 48px;
  }

  .lead {
    max-width: 560px;
    font-size: 18px;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-card,
  .category-card:nth-child(1),
  .category-card:nth-child(2) {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 72svh;
    align-items: end;
    padding: 26px 0 48px;
  }

  .hero__image {
    object-position: 68% center;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(17, 23, 31, .98), rgba(17, 23, 31, .8) 48%, rgba(17, 23, 31, .24)),
      linear-gradient(90deg, rgba(17, 23, 31, .92), rgba(17, 23, 31, .24));
  }

  .brand {
    min-height: 40px;
    margin-bottom: 92px;
    font-size: 18px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  .lead {
    font-size: 16px;
  }

  .hero__button {
    width: 100%;
  }

  .catalog {
    padding: 40px 0 52px;
  }

  .section-head h2 {
    font-size: 32px;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 260px;
  }
}
