:root {
  --bg: #ffffff;
  --surface: #f3f5f7;
  --ink: #14161a;
  --muted: #5e6570;
  --subhead: #3e4450;
  --line: #e4e7ec;
  --accent: #ff4d00;
  --accent-soft: #ff7a33;
  --dark: #121418;
  --on-dark: #f5f6f8;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-caption: "Space Grotesk", sans-serif;
  --page: 1440px;
  --pad: 80px;
  --header-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: calc(var(--header-h) + 1px);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
.feature-index {
  font-family: var(--font-display);
  font-weight: 700;
}

.wrap {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

#game,
#about,
#contact {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
  padding-block: 18px;
}

.logo,
.logo img {
  display: block;
  width: 236px;
  height: 52px;
  max-width: 100%;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  object-fit: cover;
  object-position: left center;
}

.menu-toggle,
.nav-backdrop {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 36px;
}

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

.nav a,
.legal a {
  color: var(--ink);
  font-family: var(--font-caption);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.nav a.is-current {
  color: var(--accent);
}

.nav a.is-current:hover {
  opacity: 1;
}

.legal a {
  font-family: var(--font-body);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 12px 22px;
  font-size: 17px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 18px;
}

.btn:hover,
.nav a:hover,
.legal a:hover,
.contact a:hover,
.footer-meta a:hover {
  opacity: 0.82;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  background: var(--surface);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 64px 80px;
}

.hero-copy {
  display: flex;
  flex: 1 1 560px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 560px;
  min-width: 0;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-caption);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1;
}

.hero-copy h1 {
  font-size: 60px;
  line-height: 1.08;
}

.hero-lead {
  max-width: 480px;
  color: var(--subhead);
  font-size: 20px;
  line-height: 1.5;
}

.hero-art {
  flex: 1 1 600px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 600 / 540;
  object-fit: cover;
}

.featured-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 96px 100px;
}

.featured-head {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.featured-head h2 {
  margin-bottom: 20px;
}

.hero-copy h1,
.about-copy h2,
.contact-inner h2,
.featured-head h2,
.feature h3 {
  max-width: 100%;
  overflow-wrap: break-word;
}

.featured-head h2,
.about-copy h2,
.contact-inner h2 {
  font-size: 50px;
  line-height: 1.12;
}

.featured-head p,
.about-copy p,
.feature p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.featured-head p {
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
}

.rule {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: flex;
  gap: 32px;
}

.feature {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 0;
  text-align: center;
}

.feature-index {
  color: var(--accent);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.feature h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.feature p {
  font-size: 18px;
  line-height: 1.5;
}

.about {
  background: var(--surface);
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-block: 96px;
}

.about-copy {
  display: flex;
  flex: 1 1 560px;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
  min-width: 0;
}

.geometry {
  position: relative;
  flex: 1 1 480px;
  width: min(100%, 480px);
  margin-left: auto;
  aspect-ratio: 480 / 440;
}

.geo {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.geo-orange {
  left: 7.5%;
  top: 5.45%;
  width: 62.5%;
  aspect-ratio: 1;
  background: var(--accent);
}

.geo-dark {
  left: 52.08%;
  top: 38.64%;
  width: 43.75%;
  aspect-ratio: 1;
  background: var(--dark);
}

.geo-square {
  left: 5%;
  top: 52.27%;
  width: 35%;
  aspect-ratio: 1;
  border-radius: 28px;
  background: #ffffff;
  transform: rotate(-8deg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.geo-soft {
  left: 62.5%;
  top: 8.18%;
  width: 15%;
  aspect-ratio: 1;
  background: var(--accent-soft);
}

.geo-ring {
  left: 29.17%;
  top: 20.45%;
  width: 37.5%;
  aspect-ratio: 1;
  background: transparent;
  border: 2px solid #ffffff;
}

.contact {
  background: var(--dark);
  color: var(--on-dark);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 96px;
}

.contact-inner h2 {
  text-align: center;
}

.facts {
  display: flex;
  gap: 40px;
  margin: 0;
}

.fact {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.fact dt,
.footer-meta span {
  color: var(--accent);
  font-family: var(--font-caption);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 1;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
}

.contact a,
.footer-meta a {
  color: inherit;
  text-decoration: none;
}

.site-footer {
  background: var(--bg);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(236px, 1fr) auto minmax(236px, 1fr);
  align-items: center;
  column-gap: 32px;
  padding-block: 40px;
}

.footer-main .logo {
  justify-self: start;
  width: 236px;
  height: 52px;
}

.legal {
  display: flex;
  justify-self: center;
  justify-content: center;
  gap: 28px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: 18px;
  text-align: right;
}

.footer-meta p {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.footer-meta a {
  color: var(--ink);
}

.copyright {
  border-top: 1px solid var(--line);
}

.copyright .wrap {
  padding-block: 18px;
  text-align: center;
}

.copyright p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.legal-doc {
  padding-block: 72px 96px;
}

.legal-doc .back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.back-home svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.legal-doc .back-home:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

.legal-doc h1 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.12;
}

.legal-doc .doc-kicker,
.legal-doc .effective {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.legal-doc .doc-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-caption);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.legal-doc .effective {
  margin-bottom: 8px;
}

.legal-doc h2 {
  margin: 40px 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.legal-doc h3 {
  margin: 28px 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.legal-doc p,
.legal-doc li {
  max-width: 75ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.legal-doc p + p,
.legal-doc ul + p,
.legal-doc p + ul {
  margin-top: 14px;
}

.legal-doc ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.legal-doc li + li {
  margin-top: 8px;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: none;
}

.legal-doc .doc-end {
  margin-top: 40px;
  color: var(--ink);
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

.page-main h1 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.12;
}

.page-main p {
  max-width: 65ch;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  :root {
    --pad: 40px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .featured-head h2,
  .about-copy h2,
  .contact-inner h2,
  .page-main h1,
  .legal-doc h1 {
    font-size: 40px;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 22px;
    height: 22px;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(18, 20, 24, 0.45);
  }

  .nav-backdrop.is-open {
    display: block;
  }

  .header-actions {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: min(320px, 86vw);
    height: 100vh;
    margin: 0;
    padding: 96px 28px 32px;
    background: var(--bg);
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.2s ease;
  }

  .header-actions.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 22px;
    text-align: center;
  }

  .header-bar,
  .hero-inner,
  .about-inner,
  .facts,
  .footer-main {
    flex-wrap: wrap;
  }

  .hero-inner,
  .about-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-inner {
    align-items: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-lead,
  .hero-art {
    margin-inline: auto;
  }

  .hero-copy,
  .about-copy,
  .hero-art,
  .hero-lead,
  .geometry {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .about-copy {
    align-items: center;
    text-align: center;
  }

  .geometry {
    margin-inline: auto;
  }

  .facts {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .fact {
    align-items: center;
    width: 100%;
    text-align: center;
  }

  .footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 28px;
  }

  .footer-main .logo,
  .footer-main .logo img {
    width: 236px;
    height: 52px;
  }

  .legal,
  .footer-meta,
  .footer-meta p {
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .legal-doc {
    padding-top: 20px;
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 20px;
  }

  .header-bar {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .featured-head h2,
  .about-copy h2,
  .contact-inner h2,
  .page-main h1,
  .legal-doc h1 {
    font-size: 32px;
  }

  .feature-row {
    flex-direction: column;
    gap: 28px;
  }

  .feature {
    align-items: center;
    padding: 0;
    text-align: center;
  }
}
