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

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

img,
canvas {
  -webkit-user-drag: none;
  user-drag: none;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #101214;
  background-size: 44px 44px;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.14);
  padding: 10px clamp(18px, 4vw, 64px);
  background: rgba(12, 14, 16, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #f0c84c;
  border-radius: 7px;
  color: #f0c84c;
  font-size: 13px;
  box-shadow: inset 0 0 0 3px #101214;
}

.promise {
  display: flex;
  gap: 8px;
  color: #aeb7b3;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.promise span + span::before {
  margin-right: 8px;
  color: #4dc9ad;
  content: "·";
}

main {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 66px) clamp(18px, 4vw, 64px) 54px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #4dc9ad;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  color: #f0c84c;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.92;
}

.intro > p {
  max-width: 460px;
  margin: 0;
  color: #c4cbc8;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 8px;
  background: #191c1f;
  transition: border-color 160ms ease, transform 160ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: var(--accent);
  outline: none;
  transform: translateY(-3px);
}

.game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
  background: #24282b;
}

.backflippa-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
  background: linear-gradient(#68c9e2 0 72%, #384044 72%);
}

.preview-sun {
  position: absolute;
  top: 18%;
  right: 14%;
  width: 60px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f4ca4d;
}

.preview-flippa {
  display: grid;
  place-items: center;
  width: 74px;
  height: 108px;
  border: 7px solid #171c1e;
  border-radius: 24px;
  background: #ef6659;
  color: #f7f2e8;
  font-size: 22px;
  font-weight: 1000;
  transform: rotate(-32deg);
  box-shadow: -25px 30px 0 -17px #171c1e, 30px -24px 0 -19px #171c1e;
}

.backflippa-preview strong {
  position: absolute;
  top: 12%;
  left: 12%;
  color: #171c1e;
  font-size: clamp(42px, 7vw, 76px);
  transform: rotate(-5deg);
}

.launcher-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 8px 1fr;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
  background: #d7b273;
}

.launcher-preview i {
  width: 5px;
  height: 100%;
  background: #f7f2e8;
}

.launcher-kid {
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  border: 7px solid #182024;
  border-radius: 50%;
  color: #f7f2e8;
  font-size: 21px;
  font-weight: 1000;
}

.blue-kid { background: #4f9fcf; }
.red-kid { background: #df5d55; }

.launcher-ball {
  position: absolute;
  left: 47%;
  width: 38px;
  aspect-ratio: 1;
  border: 5px solid #182024;
  border-radius: 50%;
  background: #f4c84a;
  transform: rotate(-12deg);
}

.game-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px;
}

.genre {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-card h2 {
  margin: 4px 0 6px;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1;
}

.game-card p {
  max-width: 510px;
  margin: 0;
  color: #b9c1bd;
  line-height: 1.45;
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 45%);
  border-radius: 7px;
  padding: 0 13px;
  color: var(--accent);
  font-weight: 900;
}

.play b {
  font-size: 20px;
}

.cart { --accent: #64d2b3; }
.deathmatch { --accent: #efb948; }
.defender { --accent: #70a5ed; }
.destroyer { --accent: #ed6f61; }
.speedway { --accent: #69d8bd; }
.backflippa { --accent: #ef6659; }
.launcher { --accent: #f4c84a; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  padding: 20px clamp(18px, 4vw, 64px) 28px;
  color: #838d89;
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .promise {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

@media (max-width: 520px) {
  .game-card img {
    aspect-ratio: 16 / 9;
  }

  .backflippa-preview {
    aspect-ratio: 16 / 9;
  }

  .launcher-preview {
    aspect-ratio: 16 / 9;
  }

  .game-info {
    grid-template-columns: 1fr;
  }

  .play {
    justify-content: center;
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}
