:root {
  --games-ink: #243659;
  --games-muted: #64718b;
  --games-paper: #f5f7fb;
  --games-white: #ffffff;
  --games-night: #090820;
  --games-cyan: #27e5ff;
  --games-violet: #7e57c2;
  --games-orange: #ff8a38;
  --games-acid: #d8ee61;
  --games-rainbow: linear-gradient(90deg, #ef5350, #f48fb1, #7e57c2, #2196f3, #26c6da, #43a047, #d8e63b, #f9a825, #ff5722);
}

html {
  scroll-behavior: smooth;
}

body.games-page {
  background: var(--games-paper);
  color: var(--games-ink);
}

.games-page * {
  box-sizing: border-box;
}

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

.games-page a:focus-visible {
  outline: 3px solid var(--games-cyan);
  outline-offset: 4px;
}

#games-main {
  overflow: hidden;
}

.games-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.games-hero {
  position: relative;
  padding-top: 102px;
  overflow: hidden;
  color: #fff;
  background: #050710;
}

.hero-banner {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  isolation: isolate;
  background: #050710;
}

.hero-banner::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 58%, rgba(5, 7, 16, 0.18) 70%, rgba(5, 7, 16, 0.88) 100%);
}

.hero-banner-image {
  width: 100%;
  height: auto;
}

.hero-banner-content {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 30px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-banner-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-banner-content .hero-actions {
  margin-top: 14px;
  justify-content: center;
}

.hero-actions,
.game-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.games-button {
  display: inline-flex;
  min-height: 54px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.games-button:hover {
  transform: translateY(-2px);
}

.games-button-primary {
  color: #fff;
  background: var(--games-ink);
  box-shadow: 0 12px 28px rgba(36, 54, 89, 0.22);
}

.games-button-primary:hover {
  color: #fff;
  background: #172746;
  box-shadow: 0 16px 34px rgba(36, 54, 89, 0.3);
}

.games-button-light {
  color: var(--games-ink);
  background: #fff;
}

.games-button-light:hover {
  color: var(--games-ink);
  background: #eefbff;
  box-shadow: 0 12px 30px rgba(39, 229, 255, 0.16);
}

.games-button-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.games-button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.44);
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.button-arrow {
  font-size: 20px;
  line-height: 1;
}

.hero-note {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.play-promise {
  position: relative;
  z-index: 3;
  margin-top: -32px;
}

.promise-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(36, 54, 89, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(36, 54, 89, 0.11);
}

.promise-item {
  min-height: 106px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.promise-item + .promise-item {
  border-left: 1px solid rgba(36, 54, 89, 0.1);
}

.promise-index {
  color: transparent;
  background: var(--games-rainbow);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "TanTangkiwood", serif;
  font-size: 34px;
}

.promise-item strong,
.promise-item small {
  display: block;
}

.promise-item strong {
  color: var(--games-ink);
  font-size: 15px;
}

.promise-item small {
  margin-top: 4px;
  color: var(--games-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.games-intro {
  padding: 126px 0 56px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 16px;
  color: #75809a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.games-intro h2,
.final-cta h2 {
  margin: 0;
  color: var(--games-ink);
  font-family: "TanTangkiwood", serif;
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.95;
}

.games-intro p:last-child {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--games-muted);
  font-size: 18px;
  line-height: 1.75;
}

.game-section {
  padding: 52px 0;
}

.game-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.22fr);
  min-height: 660px;
  overflow: hidden;
  border: 1px solid rgba(36, 54, 89, 0.09);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(36, 54, 89, 0.1);
}

.game-showcase::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
}

.game-showcase-electro::before {
  background: linear-gradient(90deg, var(--games-cyan), var(--games-violet), #ff4edb);
}

.game-showcase-death::before {
  background: linear-gradient(90deg, var(--games-acid), var(--games-orange), #ff5038);
}

.game-copy {
  position: relative;
  z-index: 2;
  padding: 58px 46px 52px;
}

.game-number {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 28px;
  color: #8993a9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.game-number::after {
  width: 50px;
  height: 1px;
  content: "";
  background: currentColor;
}

.game-copy h2 {
  margin: 0 0 16px;
  color: var(--games-ink);
  font-family: "TanTangkiwood", serif;
  font-size: clamp(56px, 5.6vw, 82px);
  font-weight: 400;
  line-height: 0.87;
}

.game-subtitle {
  margin: 0 0 25px;
  color: #8b95aa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.game-description {
  margin: 0;
  color: #58647c;
  font-size: 17px;
  line-height: 1.75;
}

.game-features {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.game-features li {
  position: relative;
  padding-left: 23px;
  color: var(--games-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.game-features li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  border: 2px solid var(--games-cyan);
  transform: rotate(45deg);
}

.game-showcase-death .game-features li::before {
  border-color: var(--games-orange);
}

.control-note {
  margin: 27px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(36, 54, 89, 0.1);
  color: #747f95;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.game-actions {
  margin-top: 30px;
}

.game-media {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
}

.game-media::before,
.game-media::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  filter: blur(2px);
}

.game-showcase-electro .game-media {
  background:
    linear-gradient(rgba(39, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 229, 255, 0.06) 1px, transparent 1px),
    #090820;
  background-size: 42px 42px;
}

.game-showcase-electro .game-media::before {
  top: 2%;
  right: -18%;
  width: 440px;
  height: 440px;
  background: rgba(126, 87, 194, 0.24);
}

.game-showcase-electro .game-media::after {
  bottom: -18%;
  left: -8%;
  width: 340px;
  height: 340px;
  background: rgba(39, 229, 255, 0.13);
}

.game-showcase-death {
  grid-template-columns: minmax(0, 1.22fr) minmax(310px, 0.78fr);
}

.game-showcase-death .game-copy {
  order: 2;
}

.game-showcase-death .game-media {
  order: 1;
  background:
    linear-gradient(rgba(216, 238, 97, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 238, 97, 0.045) 1px, transparent 1px),
    #050806;
  background-size: 48px 48px;
}

.game-showcase-death .game-media::before {
  top: -10%;
  left: -16%;
  width: 430px;
  height: 430px;
  background: rgba(111, 141, 80, 0.22);
}

.game-showcase-death .game-media::after {
  right: -15%;
  bottom: -15%;
  width: 350px;
  height: 350px;
  background: rgba(255, 138, 56, 0.13);
}

.shot {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #070812;
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.42);
}

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

.shot-primary {
  top: 78px;
  left: 6%;
  width: 82%;
  aspect-ratio: 900 / 469;
}

.game-showcase-death .shot-primary {
  aspect-ratio: 900 / 573;
}

.shot-secondary {
  right: 5%;
  bottom: 78px;
  width: 68%;
  aspect-ratio: 900 / 584;
}

.game-showcase-death .shot-secondary {
  right: auto;
  left: 5%;
  aspect-ratio: 900 / 583;
}

.shot-chip {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(5, 7, 17, 0.75);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.final-cta {
  padding: 100px 0 120px;
}

.final-card {
  position: relative;
  overflow: hidden;
  padding: 74px 54px;
  border-radius: 28px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(39, 229, 255, 0.17), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(255, 138, 56, 0.18), transparent 28%),
    linear-gradient(135deg, #101531, #090820);
}

.final-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--games-rainbow);
}

.final-cta h2 {
  color: #fff;
}

.final-cta .section-kicker {
  color: rgba(255, 255, 255, 0.56);
}

.final-cta p:not(.section-kicker) {
  max-width: 620px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.69);
  font-size: 17px;
  line-height: 1.7;
}

.final-actions {
  justify-content: center;
}

.games-page #footer {
  position: relative;
}

@media (max-width: 1100px) {
  .game-copy {
    padding-right: 34px;
    padding-left: 34px;
  }
}

@media (max-width: 900px) {
  .games-wrap {
    width: min(720px, calc(100% - 30px));
  }

  .promise-card {
    grid-template-columns: 1fr;
  }

  .promise-item {
    min-height: 88px;
  }

  .promise-item + .promise-item {
    border-top: 1px solid rgba(36, 54, 89, 0.1);
    border-left: 0;
  }

  .game-showcase,
  .game-showcase-death {
    grid-template-columns: 1fr;
  }

  .game-showcase-death .game-copy,
  .game-showcase-death .game-media {
    order: initial;
  }

  .game-media {
    min-height: 590px;
  }
}

@media (max-width: 767px) {
  .games-hero {
    padding-top: 101px;
  }

  .hero-banner::after {
    background: linear-gradient(to bottom, transparent 20%, rgba(5, 7, 16, 0.42) 55%, #050710 100%);
  }

  .hero-banner-content {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    padding: 22px 18px 72px;
    background: #050710;
  }

  .hero-banner-kicker {
    max-width: 300px;
    font-size: 10px;
    line-height: 1.6;
  }

  .hero-note {
    line-height: 1.6;
  }
}

@media (max-width: 575px) {
  .games-wrap {
    width: min(540px, calc(100% - 22px));
  }

  .hero-actions,
  .game-actions,
  .final-actions {
    flex-direction: column;
  }

  .games-button {
    width: 100%;
  }

  .promise-item {
    padding: 20px;
  }

  .games-intro {
    padding: 102px 0 35px;
  }

  .games-intro p:last-child {
    font-size: 16px;
  }

  .game-section {
    padding: 34px 0;
  }

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

  .game-copy {
    padding: 42px 24px 40px;
  }

  .game-copy h2 {
    font-size: clamp(52px, 17vw, 68px);
  }

  .game-description {
    font-size: 16px;
  }

  .game-media {
    min-height: 410px;
  }

  .shot-primary {
    top: 42px;
    left: 4%;
    width: 92%;
  }

  .shot-secondary {
    right: 4%;
    bottom: 42px;
    width: 76%;
  }

  .game-showcase-death .shot-secondary {
    left: 4%;
  }

  .final-cta {
    padding: 72px 0 88px;
  }

  .final-card {
    padding: 56px 24px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .games-button {
    transition: none;
  }
}
