:root {
  --ink: #f4ecdd;
  --muted: #a8aa9f;
  --paper: #f2e6cf;
  --night: #121815;
  --night-deep: #0b0f0d;
  --gold: #d9a94e;
  --line: rgba(244, 236, 221, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(68, 92, 72, 0.32), transparent 44rem),
    linear-gradient(180deg, var(--night), var(--night-deep));
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

main {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
  overflow: hidden;
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: 36rem;
  left: -20rem;
  background: #d1983d;
}

.ambient-two {
  top: 45rem;
  right: -22rem;
  background: #1f8067;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 90rem);
  height: 7.5rem;
  margin: auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(217, 169, 78, 0.48);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  transform: rotate(45deg);
}

.brand-mark::first-letter {
  transform: rotate(-45deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
}

.brand small {
  margin-top: 0.23rem;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
}

.nav-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-note i {
  width: 0.42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #8fb46f;
  box-shadow: 0 0 0.7rem #8fb46f;
}

.hero {
  position: relative;
  width: min(100%, 82rem);
  margin: auto;
  padding: clamp(5rem, 11vw, 9.5rem) 0 clamp(4.5rem, 8vw, 7rem);
  text-align: center;
}

.kicker,
.game-eyebrow {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.kicker span {
  margin-right: 0.55rem;
}

h1,
.game-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin-top: 1.7rem;
  font-size: clamp(4rem, 9.2vw, 8.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.79;
}

h1 em {
  color: var(--gold);
  font-weight: 500;
}

.intro {
  max-width: 35rem;
  margin: 2.8rem auto 0;
  color: var(--muted);
  font-size: clamp(0.93rem, 1.4vw, 1.08rem);
  line-height: 1.75;
}

.scroll-hint {
  position: absolute;
  right: 0;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #777f78;
  font-size: 0.6rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.scroll-hint span {
  width: 2.5rem;
  height: 1px;
  background: #505852;
}

.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 2rem);
  width: min(100%, 90rem);
  margin: auto;
}

.game-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(31rem, 50vw, 43rem);
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.24);
  text-decoration: none;
}

.game-image,
.image-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.game-image {
  z-index: -2;
  object-fit: cover;
  transition:
    transform 800ms cubic-bezier(0.2, 0.75, 0.2, 1),
    filter 600ms ease;
}

.image-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 13, 10, 0.04) 15%, rgba(8, 13, 10, 0.24) 45%, rgba(8, 13, 10, 0.96)),
    linear-gradient(90deg, rgba(8, 13, 10, 0.2), transparent 55%);
}

.game-card:hover .game-image,
.game-card:focus-visible .game-image {
  filter: saturate(1.12) contrast(1.02);
  transform: scale(1.045);
}

.game-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.game-number {
  position: absolute;
  top: 1.6rem;
  right: 1.7rem;
  display: grid;
  width: 2.7rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.game-content {
  display: block;
  width: 100%;
  padding: clamp(1.7rem, 4vw, 3.5rem);
}

.game-eyebrow,
.game-title,
.game-description,
.play-button {
  display: block;
}

.felt .game-eyebrow {
  color: #d8b677;
}

.game-title {
  font-size: clamp(3.6rem, 6.5vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.game-description {
  max-width: 30rem;
  margin: 1.35rem 0 1.7rem;
  color: rgba(244, 236, 221, 0.74);
  font-size: 0.88rem;
  line-height: 1.65;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arrow {
  display: grid;
  width: 2.9rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: #17201b;
  font-size: 1.1rem;
  transition: transform 300ms ease, background 300ms ease;
}

.game-card:hover .arrow {
  background: var(--gold);
  transform: rotate(45deg);
}

footer {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: min(100%, 90rem);
  min-height: 9rem;
  margin: auto;
  color: #6e756f;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-line {
  width: 2rem;
  height: 1px;
  background: #3b423d;
}

@media (max-width: 760px) {
  main {
    padding-inline: 1rem;
  }

  .nav {
    height: 6.25rem;
  }

  .nav-note,
  .scroll-hint {
    display: none;
  }

  .hero {
    padding: 5rem 0 4.5rem;
  }

  h1 {
    font-size: clamp(3.7rem, 17vw, 5.8rem);
    line-height: 0.83;
  }

  .intro {
    padding-inline: 0.5rem;
  }

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

  .game-card {
    min-height: 34rem;
  }

  .game-title {
    font-size: 4rem;
  }

  footer {
    min-height: 7.5rem;
    justify-content: center;
  }

  footer span:last-child,
  .footer-line {
    display: none;
  }
}

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