:root {
  color-scheme: light;
  --ink: #172224;
  --muted: #5f7072;
  --surface: #ffffff;
  --soft: #f5f0e7;
  --line: #d7ddd7;
  --teal: #087f8c;
  --teal-dark: #07515a;
  --coral: #f26d5b;
  --yellow: #f5bd3d;
  --green: #5dae57;
  --navy: #172224;
  --shadow: 0 18px 46px rgba(23, 34, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #fffaf0;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
  background: rgba(10, 31, 36, 0.38);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  color: var(--navy);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

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

.nav a {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  display: grid;
  min-height: 82vh;
  padding: 144px 32px 80px;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(6, 31, 35, 0.82) 0%, rgba(6, 31, 35, 0.58) 34%, rgba(6, 31, 35, 0.08) 68%),
    url("./assets/hero-game-world.png");
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(620px, 100%);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a8f4ea;
}

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

h1 {
  margin-bottom: 18px;
  font-size: 72px;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.hero-copy {
  width: min(520px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 10px 24px rgba(245, 189, 61, 0.26);
}

.button.primary:hover {
  background: #ffd35d;
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.section {
  padding: 76px 32px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 34px;
  align-items: start;
  background: #fffaf0;
}

.section-copy,
.section-heading,
.contact-band > div {
  max-width: 640px;
}

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

.fact-card,
.game-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.fact-card {
  padding: 22px;
}

.fact-number {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--coral);
  font-size: 15px;
  font-weight: 900;
}

.fact-card p,
.game-card p,
.contact-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.games-section {
  background: #eef8f2;
}

.section-heading {
  margin-bottom: 28px;
}

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

.game-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  min-height: 172px;
  padding: 18px;
  align-items: center;
}

.game-art {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
}

.game-art::before,
.game-art::after,
.game-art span {
  position: absolute;
  content: "";
}

.game-art::before {
  inset: 18%;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  transform: rotate(14deg);
}

.game-art::after {
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.42);
}

.game-art span {
  right: 15%;
  bottom: 17%;
  width: 18%;
  height: 18%;
  border-radius: 6px;
  background: #ffffff;
}

.color-coral {
  background: var(--coral);
}

.color-green {
  background: var(--green);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--navy);
}

.contact-band h2,
.contact-band p {
  color: #ffffff;
}

.contact-band .eyebrow {
  color: #91e7d7;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px 32px;
  color: #ffffff;
  background: #0d181a;
  font-size: 14px;
}

.site-footer a {
  color: #ffffff;
}

.document-page,
.contact-page {
  min-height: 100vh;
  padding: 124px 32px 76px;
  background: #fffaf0;
}

.policy,
.contact-hero {
  width: min(860px, 100%);
  margin: 0 auto;
}

.policy {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.policy h1,
.contact-hero h1 {
  color: var(--navy);
  font-size: 54px;
  line-height: 1;
}

.policy h2 {
  margin-top: 34px;
  font-size: 25px;
}

.policy p {
  font-size: 16px;
}

.updated {
  color: var(--teal-dark);
  font-weight: 800;
}

.policy a,
.contact-card a {
  color: var(--teal-dark);
  font-weight: 900;
}

.contact-hero {
  margin-bottom: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.contact-card {
  padding: 24px;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    padding: 12px 18px;
  }

  .hero {
    min-height: 82vh;
    padding: 132px 20px 64px;
    background-position: 58% center;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .intro-section,
  .game-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    font-size: 17px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .hero {
    padding: 156px 18px 56px;
    background-position: 64% center;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }

  p,
  .hero-copy {
    font-size: 16px;
  }

  .section,
  .document-page,
  .contact-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .game-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .policy {
    padding: 26px 20px;
  }

  .policy h1,
  .contact-hero h1 {
    font-size: 38px;
  }

  .site-footer {
    padding: 24px 18px;
  }
}
