:root {
  --primary: #ff87d7;
  --accent: #c45868;
  --bg: #17101a;
  --surface: #241826;
  --text: #f7e8f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--surface);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: 1.35rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  color: var(--primary);
}

.brand-mark svg,
.game-art svg,
.hero-poster svg {
  max-width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}

.top-nav {
  display: flex;
  gap: 28px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.top-nav a,
.hero-link,
.play-link {
  transition: color .2s ease, transform .2s ease;
}

.top-nav a:hover,
.hero-link:hover,
.play-link:hover {
  color: var(--primary);
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 540px;
  padding: 78px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1.3;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(3.8rem, 8vw, 7.8rem);
  line-height: .86;
  letter-spacing: -.09em;
  font-weight: 900;
}

h1 em {
  color: var(--primary);
  font-style: normal;
  padding-left: .18em;
}

.tagline {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.intro {
  max-width: 650px;
  color: var(--text);
  font-size: 1rem;
  opacity: .84;
}

.hero-link {
  display: inline-flex;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-poster {
  min-height: 350px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--primary);
  transform: rotate(3deg);
  box-shadow: 18px 18px 0 var(--accent);
}

.hero-poster::before,
.hero-poster::after {
  content: "";
  position: absolute;
  z-index: -1;
  display: block;
}

.hero-poster::before {
  width: 180px;
  height: 180px;
  top: -55px;
  right: -45px;
  border: 25px solid var(--bg);
  border-radius: 50%;
  opacity: .9;
}

.hero-poster::after {
  width: 200px;
  height: 200px;
  bottom: -90px;
  left: -65px;
  background: var(--accent);
  transform: rotate(32deg);
}

.poster-sticker {
  position: absolute;
  top: 45px;
  left: 38px;
  padding: 18px 22px;
  background: var(--bg);
  color: var(--primary);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: .78;
  font-weight: 900;
  letter-spacing: -.08em;
  transform: rotate(-8deg);
}

.poster-orbit {
  position: absolute;
  right: 13%;
  bottom: 16%;
  width: 135px;
  height: 135px;
  border: 18px solid var(--bg);
  border-radius: 50%;
}

.poster-orbit::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 28px;
  width: 43px;
  height: 43px;
  background: var(--accent);
  border-radius: 50%;
}

.poster-spark {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--bg);
  transform: rotate(45deg);
}

.spark-one {
  top: 35%;
  right: 20%;
}

.spark-two {
  bottom: 22%;
  left: 28%;
  width: 13px;
  height: 13px;
  background: var(--accent);
}

.poster-label {
  position: absolute;
  right: 28px;
  bottom: 25px;
  color: var(--bg);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.games-section {
  padding: 22px 0 100px;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: .9;
  letter-spacing: -.07em;
}

.section-note {
  margin-bottom: 0;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .1em;
}

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

.game-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 292px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface);
}

.game-card.featured {
  grid-column: span 2;
  grid-template-columns: 54% minmax(0, 1fr);
  min-height: 330px;
}

.game-art {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--primary);
  overflow: hidden;
  background: var(--bg);
}

.featured .game-art {
  color: var(--accent);
}

.art-snake,
.art-racers,
.art-composer {
  color: var(--primary);
}

.art-town,
.art-curling,
.art-tide {
  color: var(--accent);
}

.art-frontline,
.art-orchard,
.art-warden {
  color: var(--primary);
}

.game-art svg {
  width: 100%;
  max-height: 100%;
}

.game-info {
  min-width: 0;
  padding: 25px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-topline {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.category {
  color: var(--primary);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.game-icon {
  font-size: 1.35rem;
  line-height: 1;
}

h3 {
  max-width: 360px;
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1;
  letter-spacing: -.05em;
}

h3 a:hover {
  color: var(--primary);
}

.game-info p {
  max-width: 380px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: .9rem;
  opacity: .72;
}

.play-link {
  margin-top: auto;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.play-link span,
.hero-link span {
  display: inline-block;
  margin-left: 5px;
  font-size: 1rem;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--surface);
  color: var(--text);
  font-size: .75rem;
  opacity: .72;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-star {
  color: var(--primary);
  margin-right: 6px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr);
    gap: 38px;
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(3.4rem, 10vw, 6rem);
  }

  .game-card,
  .game-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .game-art {
    min-height: 180px;
  }

  .featured .game-art {
    min-height: 220px;
  }

  .game-info {
    min-height: 245px;
  }

  .card-topline {
    margin-bottom: 22px;
  }
}

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

  .site-header {
    padding: 18px 0;
  }

  .top-nav {
    gap: 15px;
    font-size: .65rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 45px;
    padding: 55px 0 70px;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5.2rem);
  }

  .intro {
    font-size: .92rem;
  }

  .hero-poster {
    min-height: 280px;
    transform: rotate(2deg);
    box-shadow: 10px 10px 0 var(--accent);
  }

  .poster-sticker {
    top: 32px;
    left: 25px;
    font-size: 3.1rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .section-note {
    margin-top: 18px;
    text-align: left;
  }

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

  .game-card,
  .game-card.featured {
    grid-column: span 1;
  }

  .game-art,
  .featured .game-art {
    min-height: 175px;
  }

  .game-info {
    min-height: 230px;
    padding: 21px 20px 20px;
  }

  .site-footer {
    display: block;
    padding-bottom: 25px;
  }

  .site-footer p + p {
    margin-top: 10px;
  }
}