* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 214, 10, 0.18), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(61, 220, 151, 0.14), transparent 28%),
    linear-gradient(180deg, #10131e 0%, #070910 100%);
  color: #f7f1d1;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 56px 24px;
}

.hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffd60a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  max-width: 620px;
  margin-bottom: 0;
  color: #c8c5d8;
  font-size: 1.2rem;
}

.library-section {
  margin-top: 34px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.section-heading p {
  max-width: 420px;
  margin: 0;
  color: #c8c5d8;
  text-align: right;
}

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

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

.game-card {
  display: grid;
  grid-template-rows: 220px 1fr auto;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(17, 19, 30, 0.86);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 214, 10, 0.5);
  background: rgba(25, 29, 45, 0.92);
}

.game-art {
  position: relative;
  display: block;
  overflow: hidden;
  background: #05060a;
}

.maze .game-art {
  background:
    linear-gradient(90deg, transparent 0 42%, #2563eb 42% 45%, transparent 45% 55%, #2563eb 55% 58%, transparent 58%),
    linear-gradient(0deg, transparent 0 45%, #2563eb 45% 48%, transparent 48% 58%, #2563eb 58% 61%, transparent 61%),
    #05060a;
}

.mobile-maze .game-art {
  background:
    radial-gradient(circle at 78% 76%, rgba(255, 214, 10, 0.22), transparent 18%),
    linear-gradient(90deg, transparent 0 42%, #2563eb 42% 45%, transparent 45% 55%, #2563eb 55% 58%, transparent 58%),
    linear-gradient(0deg, transparent 0 45%, #2563eb 45% 48%, transparent 48% 58%, #2563eb 58% 61%, transparent 61%),
    #05060a;
}

.orbit .game-art {
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    #17212d;
  background-size: 42px 42px;
}

.pac {
  position: absolute;
  left: 24%;
  top: 48%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(from 38deg, transparent 0 78deg, #ffd60a 78deg 360deg);
}

.ghost {
  position: absolute;
  right: 22%;
  top: 42%;
  width: 56px;
  height: 62px;
  border-radius: 28px 28px 10px 10px;
  background: #ef476f;
}

.dot,
.star {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff1a8;
}

.dot-a {
  left: 44%;
  top: 55%;
}

.dot-b {
  left: 56%;
  top: 55%;
}

.ship {
  position: absolute;
  left: 28%;
  top: 48%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 5px rgba(212, 255, 240, 0.9);
}

.star {
  clip-path: polygon(50% 0%, 61% 36%, 98% 36%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 36%, 39% 36%);
  border-radius: 0;
  background: #ffd166;
}

.star-a {
  left: 62%;
  top: 28%;
  width: 34px;
  height: 34px;
}

.star-b {
  left: 76%;
  top: 64%;
  width: 26px;
  height: 26px;
}

.hazard {
  position: absolute;
  right: 28%;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ef476f;
  box-shadow: 0 0 0 4px rgba(255, 204, 216, 0.75);
}

.joystick-art {
  position: absolute;
  right: 10%;
  bottom: 13%;
  width: 58px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: #171b2a;
}

.joystick-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffd60a;
  transform: translate(-30%, -70%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.36);
}

.game-copy {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.game-copy strong {
  font-size: 1.7rem;
  line-height: 1;
}

.game-copy span {
  color: #c8c5d8;
}

.play {
  justify-self: start;
  margin: 0 20px 20px;
  border: 1px solid rgba(255, 214, 10, 0.42);
  border-radius: 6px;
  padding: 9px 14px;
  color: #ffd60a;
  font-weight: 700;
}

.native-note {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(17, 19, 30, 0.72);
}

.native-note h2 {
  margin-bottom: 8px;
}

.native-note p {
  color: #c8c5d8;
}

code {
  display: block;
  overflow-wrap: anywhere;
  color: #ffd60a;
}

@media (max-width: 760px) {
  .page {
    padding: 36px 14px;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 8px;
    text-align: left;
  }

  .game-card {
    min-height: 390px;
  }
}
