:root {
  color-scheme: light;
  --ink: #29234a;
  --muted: #77748c;
  --purple: #7257e8;
  --purple-dark: #5f45d2;
  --page: #fbfaff;
  --line: #eeecf5;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  background: var(--purple);
  color: white;
  font-size: 21px;
  line-height: 1;
  transform: rotate(-7deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link,
.account-link {
  color: #656179;
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease;
}

.nav-link:hover,
.account-link:hover,
.nav-link.is-current {
  color: var(--purple);
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.account-link span {
  color: var(--purple);
}

.hero {
  min-height: 438px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 36px;
  padding-block: 48px 42px;
}

.hero-copy {
  padding-block: 15px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #8b86a4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.65px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #79d5ae;
  box-shadow: 0 0 0 4px #e4f8ef;
  vertical-align: 1px;
}

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

h1,
h2 {
  font-family: "Manrope", sans-serif;
}

h1 {
  margin-bottom: 17px;
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 800;
  letter-spacing: -3.8px;
  line-height: 1.08;
}

h1 span {
  color: var(--purple);
}

.hero-description {
  max-width: 410px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--purple);
  box-shadow: 0 8px 18px #7257e82e;
  color: white;
}

.button-primary:hover {
  background: var(--purple-dark);
}

.button-primary span,
.button-light span {
  font-size: 17px;
}

.hero-note {
  margin: 17px 0 0;
  color: #9692a8;
  font-size: 11px;
}

.hero-note span {
  margin-right: 5px;
  color: #f2b64e;
}

.hero-art {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 34px;
  background: #f0edff;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  width: 205px;
  height: 205px;
  border-radius: 50%;
  background: #e3ddff;
  content: "";
}

.hero-art::before {
  top: -102px;
  right: -50px;
}

.hero-art::after {
  bottom: -140px;
  left: -45px;
  background: #e8e3ff;
}

.orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid #d4ccfa;
  border-radius: 50%;
}

.orbit-two {
  width: 280px;
  height: 280px;
  border-color: #dfd9fb;
}

.game-tile {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 5px solid white;
  border-radius: 25px;
  box-shadow: 0 18px 40px #43358324;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.tile-back {
  width: 112px;
  height: 112px;
  margin: -55px 0 0 -132px;
  background: #ffd7ba;
  color: #f18c61;
  font-size: 55px;
  transform: rotate(-13deg);
}

.tile-front {
  width: 142px;
  height: 142px;
  margin: 13px 0 0 11px;
  background: #8a70f0;
  color: #fff5ad;
  font-size: 73px;
  transform: rotate(8deg);
}

.tile-small {
  width: 72px;
  height: 72px;
  margin: 133px 0 0 134px;
  background: #bdeedb;
  color: #53b88b;
  font-size: 35px;
  transform: rotate(13deg);
}

.sparkle {
  position: absolute;
  z-index: 2;
  color: #f0ae43;
  font-size: 24px;
}

.sparkle-one {
  top: 63px;
  left: 23%;
}

.sparkle-two {
  right: 18%;
  bottom: 67px;
  color: #8c75ec;
  font-size: 17px;
}

.art-caption {
  position: absolute;
  right: 29px;
  bottom: 23px;
  color: #9b91d6;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.1px;
  line-height: 1.5;
  text-align: right;
}

.games-section {
  padding-block: 28px 43px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.1px;
}

.text-link {
  margin-bottom: 4px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
}

.text-link span {
  margin-left: 5px;
  font-size: 15px;
}

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

.game-card {
  min-height: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 17px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px #29234a12;
}

.card-lilac {
  border-color: #ece7ff;
  background: #f4f0ff;
}

.card-mint {
  border-color: #e2f3ec;
  background: #edfaf4;
}

.card-peach {
  border-color: #f9e9df;
  background: #fff4ed;
}

.card-yellow {
  border-color: #f5efd9;
  background: #fffbea;
}

.card-icon {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e6ddff;
  color: #765be1;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.card-icon > span {
  position: absolute;
  top: 18px;
  left: 23px;
  color: #a28ef5;
  font-size: 21px;
}

.card-mint .card-icon {
  background: #d5f3e5;
  color: #4db486;
}

.card-peach .card-icon {
  background: #ffe3d3;
  color: #ee9060;
}

.card-yellow .card-icon {
  background: #f9edbe;
  color: #d4a332;
}

.snake-icon {
  font-size: 32px;
  transform: rotate(-25deg);
}

.memory-icon {
  font-size: 28px;
  transform: rotate(-8deg);
}

.hangman-icon {
  font-size: 26px;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-info strong {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.card-info > span {
  color: #817d90;
  font-size: 10px;
}

.card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: #aaa6b8;
  font-size: 14px;
  transition: color 160ms ease, transform 160ms ease;
}

.game-card:hover .card-arrow {
  color: var(--purple);
  transform: translate(2px, -2px);
}

.community-banner {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 34px;
  padding: 18px 24px;
  border-radius: 17px;
  background: #29234a;
  color: white;
}

.community-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #443a70;
  color: #c5b8ff;
  font-size: 22px;
}

.community-banner p {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.community-banner p strong {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}

.community-banner p span {
  color: #c2bed2;
  font-size: 10px;
}

.button-light {
  min-height: 40px;
  gap: 13px;
  background: white;
  color: var(--ink);
  font-size: 10px;
}

.button-light span {
  color: var(--purple);
  font-size: 15px;
}

.site-footer {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.footer-brand {
  gap: 7px;
  font-size: 16px;
}

.footer-brand .brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  font-size: 16px;
}

.site-footer p,
.site-footer > span {
  margin: 0;
  color: #9692a8;
  font-size: 10px;
}

a:focus-visible {
  outline: 3px solid #a391ff;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 40px, 560px);
  }

  .site-header {
    height: 72px;
  }

  .main-nav {
    gap: 18px;
  }

  .nav-link {
    font-size: 11px;
  }

  .nav-link:nth-child(n + 2) {
    display: none;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr 0.8fr;
    gap: 18px;
    padding-block: 43px 35px;
  }

  .hero-art {
    min-height: 285px;
  }

  .tile-front {
    width: 112px;
    height: 112px;
    font-size: 58px;
  }

  .tile-back {
    width: 89px;
    height: 89px;
    margin-left: -100px;
    font-size: 44px;
  }

  .tile-small {
    width: 58px;
    height: 58px;
    margin: 115px 0 0 105px;
  }

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

@media (max-width: 520px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 36px);
  }

  .brand {
    gap: 7px;
    font-size: 19px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .main-nav {
    margin-left: auto;
    margin-right: 18px;
  }

  .account-link {
    font-size: 11px;
  }

  .account-link span {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 38px;
  }

  .hero-copy {
    padding: 0;
  }

  h1 {
    font-size: 50px;
    letter-spacing: -3px;
  }

  .hero-description {
    max-width: 360px;
    font-size: 14px;
  }

  .hero-art {
    min-height: 245px;
  }

  .games-section {
    padding-top: 10px;
  }

  .section-heading {
    align-items: start;
    gap: 12px;
  }

  h2 {
    font-size: 21px;
  }

  .text-link {
    flex: 0 0 auto;
    margin-top: 20px;
    font-size: 10px;
  }

  .game-grid {
    gap: 10px;
  }

  .game-card {
    min-height: 142px;
    padding: 13px;
  }

  .card-info strong {
    font-size: 12px;
  }

  .card-info > span {
    max-width: 130px;
    font-size: 9px;
  }

  .community-banner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }

  .community-banner p {
    min-width: calc(100% - 60px);
  }

  .button-light {
    margin-left: 54px;
  }

  .site-footer {
    min-height: 68px;
  }

  .site-footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
