
@font-face {
  font-family: "Knewave";
  src: url("fonts/knewave.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #fffdf8;
  --sand: #f3e7d3;
  --blue: #2447d8;
  --tomato: #ef4938;
  --green: #2e9b58;
  --yellow: #f4d83d;
  --ink: #1d1d1b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100% - 48px, 1320px);
  height: 96px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--blue);
  font-family: "Knewave", cursive;
  font-size: 44px;
  line-height: 1;
  text-decoration: none;
  transform: rotate(-2deg);
}

.brand span {
  color: var(--tomato);
}

.nav {
  display: flex;
  gap: 44px;
}

.nav a {
  position: relative;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.nav a::after {
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 0;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
  transition: width 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding: 150px max(24px, calc((100vw - 1320px) / 2)) 130px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  background:
    radial-gradient(circle at 18% 35%, rgba(244, 216, 61, 0.11), transparent 22%),
    linear-gradient(180deg, #fffdf8 0%, #fffaf0 100%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.how-intro h2,
.more-section h2 {
  margin: 0;
  font-family: "Knewave", cursive;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(58px, 6vw, 88px);
  line-height: 0.99;
  letter-spacing: -0.025em;
}

.hero h1 span {
  display: block;
  color: var(--blue);
}

.hero h1 span:last-child {
  color: var(--tomato);
}

.hero-text {
  max-width: 610px;
  margin: 30px 0 34px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.55;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 62px;
  padding: 0 32px;
  border-radius: 20px;
  background: var(--blue);
  box-shadow: 0 7px 0 #17309f;
  color: white;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 0 #17309f;
}

.primary-button:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 #17309f;
}

.hero-art {
  position: relative;
  z-index: 2;
  height: 480px;
  margin-left: 28px;
}

.sun {
  position: absolute;
  top: 35px;
  left: 12%;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 7px -6px 0 rgba(255, 255, 255, 0.16);
}

.island {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: 92%;
  height: 355px;
  border-radius: 58% 42% 15% 45%;
  background: var(--sand);
  transform: rotate(-2deg);
}

.sea {
  position: absolute;
  left: -13%;
  bottom: 0;
  width: 70%;
  height: 125px;
  border-radius: 70% 0 50% 50%;
  background: var(--blue);
}

.house,
.tower {
  position: absolute;
  bottom: 72px;
  background: #fffaf0;
  box-shadow: inset -8px 0 rgba(217, 193, 151, 0.16);
}

.house::before,
.tower::before {
  position: absolute;
  content: "";
}

.house::after,
.tower::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 25px;
  height: 56px;
  border-radius: 18px 18px 0 0;
  background: var(--blue);
  content: "";
  transform: translateX(-50%);
}

.house-one {
  right: 27%;
  width: 155px;
  height: 210px;
  border-radius: 75px 75px 2px 2px;
}

.house-one::before {
  top: -9px;
  left: 28px;
  width: 100px;
  height: 42px;
  border-radius: 55px 55px 0 0;
  background: var(--blue);
}

.house-two {
  right: 4%;
  width: 130px;
  height: 168px;
}

.house-two::before {
  top: -34px;
  left: 0;
  border-right: 65px solid transparent;
  border-bottom: 35px solid var(--tomato);
  border-left: 65px solid transparent;
}

.tower {
  right: 48%;
  width: 112px;
  height: 148px;
  border-radius: 55px 55px 0 0;
}

.tower::before {
  top: -10px;
  left: 20px;
  width: 72px;
  height: 30px;
  border-radius: 40px 40px 0 0;
  background: var(--tomato);
}

.tree {
  position: absolute;
  right: 0;
  bottom: 25px;
  width: 22px;
  height: 118px;
  border-radius: 8px;
  background: #a85f36;
}

.tree::before,
.tree::after {
  position: absolute;
  width: 82px;
  height: 135px;
  border-radius: 100% 0 100% 0;
  background: var(--green);
  content: "";
}

.tree::before {
  right: 7px;
  bottom: 30px;
  transform: rotate(30deg);
}

.tree::after {
  bottom: 26px;
  left: 7px;
  transform: rotate(60deg);
}

.confetti {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--tomato);
  transform: rotate(30deg);
}

.confetti-one { top: 95px; right: 19%; }
.confetti-two { top: 170px; left: 4%; background: var(--blue); }
.confetti-three { top: 40px; right: 44%; background: var(--green); }

.hero-wave {
  position: absolute;
  z-index: 1;
  right: -8%;
  bottom: -155px;
  width: 58%;
  height: 260px;
  border-radius: 50% 50% 0 0;
  background: var(--tomato);
  transform: rotate(-8deg);
}

.games-section {
  position: relative;
  z-index: 4;
  padding: 100px max(24px, calc((100vw - 1320px) / 2)) 120px;
  background: var(--blue);
  color: white;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 50px;
}

.section-heading .eyebrow {
  color: var(--yellow);
}

.section-heading h2 {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
}

.section-heading > p {
  max-width: 520px;
  margin: 0 0 4px;
  color: #e9edff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

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

.game-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 10px 0 rgba(15, 28, 99, 0.8);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card:nth-child(even) {
  transform: translateY(18px);
}

.game-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 17px 0 rgba(15, 28, 99, 0.8);
}

.game-card:nth-child(even):hover {
  transform: translateY(11px) rotate(0.5deg);
}

.card-open {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.game-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.game-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.game-card:hover img {
  transform: scale(1.035);
}

.game-number {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.game-content {
  padding: 20px 18px 22px;
}

.game-content > p {
  min-height: 34px;
  margin: 0 0 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.game-content h3 {
  min-height: 58px;
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.game-meta {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.game-meta span {
  padding: 6px 8px;
  border-radius: 20px;
  background: var(--sand);
  font-size: 10px;
  font-weight: 800;
}

.discover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #e6d8bf;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.discover b {
  font-size: 21px;
}

.friend-project {
  padding: 86px max(24px, calc((100vw - 1220px) / 2));
  background: var(--paper);
}

.friend-project-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 460px;
  border: 3px solid var(--ink);
  border-radius: 34px;
  background: #f5dfca;
  box-shadow: 12px 12px 0 var(--ink);
}

.friend-project-copy {
  position: relative;
  z-index: 2;
  padding: 54px 24px 50px 58px;
}

.friend-project-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.friend-project-copy .eyebrow {
  margin-bottom: 8px;
  color: var(--tomato);
}

.friend-project-copy h2 {
  margin: 0;
  color: var(--blue);
  font-family: "Knewave", cursive;
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 400;
  line-height: 1;
}

.friend-project-lead {
  max-width: 540px;
  margin: 14px 0 10px;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.35;
}

.friend-project-description {
  max-width: 570px;
  margin: 0 0 27px;
  color: #4c463e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.friend-project-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--tomato);
  box-shadow: 5px 5px 0 var(--ink);
  color: white;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.friend-project-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.friend-project-button:active {
  transform: translate(5px, 5px);
  box-shadow: none;
}

.friend-project-copy small {
  display: block;
  margin-top: 17px;
  color: #6f6558;
  font-size: 11px;
  font-weight: 800;
}

.friend-project-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--blue);
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}

.friend-sun {
  position: absolute;
  top: 34px;
  right: 42px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--yellow);
}

.friend-spark {
  position: absolute;
  color: white;
  font-size: 28px;
}

.friend-spark-one {
  top: 58px;
  left: 24%;
}

.friend-spark-two {
  right: 12%;
  bottom: 64px;
  color: var(--yellow);
  font-size: 20px;
}

.browser-window {
  position: absolute;
  top: 50%;
  left: 53%;
  width: min(76%, 390px);
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: white;
  box-shadow: 12px 13px 0 rgba(29, 29, 27, 0.8);
  transform: translate(-50%, -48%) rotate(3deg);
}

.browser-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-bottom: 3px solid var(--ink);
  background: var(--sand);
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--tomato);
}

.browser-bar i:nth-child(2) {
  background: var(--yellow);
}

.browser-bar i:nth-child(3) {
  background: var(--green);
}

.browser-bar span {
  margin-left: 7px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.browser-page {
  min-height: 272px;
  padding: 28px 30px;
  background:
    radial-gradient(circle at 92% 18%, rgba(244, 216, 61, 0.8) 0 32px, transparent 33px),
    var(--paper);
}

.browser-logo {
  display: inline-grid;
  height: 28px;
  padding: 0 9px;
  place-items: center;
  border-radius: 7px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 950;
}

.browser-page b {
  display: block;
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.08;
}

.browser-copy {
  display: block;
  width: 75%;
  height: 7px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: var(--sand);
}

.browser-copy.short {
  width: 55%;
}

.browser-cta {
  display: inline-flex;
  min-height: 32px;
  margin-top: 20px;
  padding: 0 12px;
  align-items: center;
  border-radius: 8px;
  background: var(--tomato);
  color: white;
  font-size: 8px;
  font-weight: 950;
}

.friend-arrow {
  position: absolute;
  left: 9%;
  bottom: 30px;
  color: var(--yellow);
  font-family: "Knewave", cursive;
  font-size: 72px;
  transform: rotate(10deg);
}

.how-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 80px;
  padding: 120px max(24px, calc((100vw - 1220px) / 2));
}

.how-intro h2 {
  max-width: 550px;
  color: var(--tomato);
  font-size: clamp(44px, 4vw, 66px);
  line-height: 1.05;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 2px solid var(--sand);
}

.steps li > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-family: "Knewave", cursive;
  font-size: 22px;
}

.steps li:nth-child(2) > span { background: var(--tomato); color: white; }
.steps li:nth-child(3) > span { background: var(--green); color: white; }

.steps h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.steps p {
  margin: 0;
  color: #545451;
  line-height: 1.6;
}

.more-section {
  position: relative;
  overflow: hidden;
  padding: 120px 24px;
  background: var(--yellow);
  text-align: center;
}

.more-section::before,
.more-section::after {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--tomato);
  content: "";
}

.more-section::before { top: -80px; left: 8%; }
.more-section::after { right: 10%; bottom: -110px; background: var(--blue); }

.more-section .eyebrow {
  color: var(--blue);
}

.more-section h2 {
  color: var(--ink);
  font-size: clamp(50px, 6vw, 82px);
  line-height: 1;
}

.more-section > p:not(.eyebrow) {
  margin: 24px auto 28px;
  font-size: 19px;
  font-weight: 650;
}

.more-section a {
  display: inline-flex;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

footer {
  display: grid;
  grid-template-columns: 0.6fr 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 52px max(24px, calc((100vw - 1320px) / 2));
  background: var(--ink);
  color: white;
}

.footer-brand {
  font-size: 36px;
}

footer p {
  margin: 0;
  color: #d8d8d2;
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 20, 18, 0.76);
  backdrop-filter: blur(8px);
  animation: fade-in 180ms ease both;
}

.modal-backdrop[hidden] {
  display: none;
}

.game-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
  width: min(100%, 940px);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: modal-up 220ms ease both;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 27px;
}

.modal-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--sand);
}

.modal-image img {
  height: 100%;
  object-fit: cover;
}

.modal-image > span {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
}

.modal-content {
  align-self: center;
  padding: 58px 52px 48px;
}

.modal-content h2 {
  margin: 0;
  color: var(--blue);
  font-family: "Knewave", cursive;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
}

.modal-description {
  margin: 18px 0;
  color: #484844;
  font-size: 17px;
  line-height: 1.6;
}

.modal-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.modal-meta span {
  padding: 7px 11px;
  border-radius: 20px;
  background: var(--sand);
  font-size: 12px;
  font-weight: 800;
}

.play-actions {
  display: grid;
  gap: 10px;
}

.play-actions button,
.play-actions a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 51px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.play-actions button:hover,
.play-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--sand);
}

.play-actions .other-ai {
  background: transparent;
  color: var(--ink);
}

.platform-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
}

.chatgpt-mark { background: #10a37f; }
.gemini-mark { background: linear-gradient(135deg, #4e7cf3, #a05ee8, #ed7dac); }

.play-note {
  margin: 15px 0 0;
  color: #6f6e67;
  font-size: 11px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 48px));
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes modal-up {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
}

@media (max-width: 1080px) {
  .hero {
    min-height: 680px;
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-art {
    transform: scale(0.82);
    transform-origin: center right;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-card:nth-child(even) {
    transform: none;
  }

  .how-section {
    gap: 45px;
  }

  .friend-project-copy {
    padding-left: 42px;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 36px);
    height: 76px;
  }

  .brand {
    font-size: 35px;
  }

  .menu-button {
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 12px 9px;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 3px 0;
    border-radius: 3px;
    background: white;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 0;
    display: none;
    min-width: 190px;
    padding: 18px;
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(28, 28, 22, 0.16);
    flex-direction: column;
    gap: 20px;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 112px 20px 82px;
    display: block;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(51px, 15vw, 70px);
  }

  .hero-text {
    margin: 24px 0 28px;
    font-size: 17px;
  }

  .primary-button {
    width: 100%;
    min-height: 58px;
  }

  .hero-art {
    width: 115%;
    height: 300px;
    margin: 26px -12% -30px 2%;
    transform: scale(0.86);
    transform-origin: center bottom;
  }

  .sun {
    top: 32px;
    left: 5%;
    width: 75px;
    height: 75px;
  }

  .island {
    right: -8%;
    bottom: 0;
    height: 245px;
  }

  .sea {
    height: 84px;
  }

  .house-one {
    right: 25%;
    width: 105px;
    height: 144px;
    border-radius: 55px 55px 2px 2px;
  }

  .house-one::before {
    left: 20px;
    width: 66px;
  }

  .house-two {
    width: 89px;
    height: 118px;
  }

  .house-two::before {
    top: -25px;
    border-right-width: 44px;
    border-bottom-width: 26px;
    border-left-width: 44px;
  }

  .tower {
    right: 50%;
    width: 76px;
    height: 103px;
  }

  .tower::before {
    left: 14px;
    width: 48px;
  }

  .house::after,
  .tower::after {
    width: 19px;
    height: 39px;
  }

  .tree {
    transform: scale(0.7);
    transform-origin: bottom;
  }

  .hero-wave {
    bottom: -165px;
    width: 95%;
  }

  .games-section {
    padding: 74px 18px 86px;
  }

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

  .section-heading h2 {
    font-size: 47px;
  }

  .section-heading > p {
    margin-top: 22px;
    font-size: 16px;
  }

  .games-grid {
    display: flex;
    gap: 14px;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .game-card {
    min-width: 78vw;
    scroll-snap-align: start;
  }

  .game-content h3 {
    min-height: auto;
    font-size: 24px;
  }

  .game-content > p {
    min-height: auto;
  }

  .friend-project {
    padding: 60px 18px 70px;
  }

  .friend-project-card {
    display: flex;
    min-height: 0;
    border-radius: 24px;
    box-shadow: 7px 7px 0 var(--ink);
    flex-direction: column;
  }

  .friend-project-copy {
    padding: 34px 24px 38px;
  }

  .friend-project-badge {
    margin-bottom: 21px;
  }

  .friend-project-copy h2 {
    font-size: 52px;
  }

  .friend-project-lead {
    font-size: 19px;
  }

  .friend-project-button {
    width: 100%;
    padding: 12px 16px;
    justify-content: center;
    text-align: center;
  }

  .friend-project-art {
    order: -1;
    min-height: 270px;
    clip-path: none;
  }

  .friend-sun {
    top: 20px;
    right: 24px;
    width: 68px;
    height: 68px;
  }

  .browser-window {
    width: min(74%, 320px);
  }

  .browser-page {
    min-height: 180px;
    padding: 19px 22px;
  }

  .browser-page b {
    margin: 13px 0 11px;
    font-size: 20px;
  }

  .browser-cta {
    margin-top: 11px;
  }

  .friend-arrow {
    left: 6%;
    bottom: 12px;
    font-size: 48px;
  }

  .how-section {
    padding: 80px 20px;
    display: block;
  }

  .how-intro h2 {
    margin-bottom: 34px;
    font-size: 46px;
  }

  .steps li {
    grid-template-columns: 48px 1fr;
    gap: 15px;
  }

  .steps li > span {
    width: 44px;
    height: 44px;
  }

  .more-section {
    padding: 90px 20px;
  }

  .more-section h2 {
    font-size: 51px;
  }

  footer {
    padding: 42px 20px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .game-modal {
    display: block;
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .modal-content {
    padding: 30px 20px 24px;
  }

  .modal-content h2 {
    padding-right: 25px;
    font-size: 39px;
  }

  .modal-close {
    position: fixed;
    top: 22px;
    right: 22px;
  }

  .play-actions button,
  .play-actions a {
    min-height: 54px;
  }
}

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