@font-face {
  font-family: Audiowide;
  src: url("assets/audiowide.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --chalk: #edf4e7;
  --chalk-bright: #f6faf2;
  --chalk-card: #e1ecd8;
  --turf-ink: #0f2416;
  --turf-deep: #04290a;
  --turf-mid: #1a5c28;
  --muted: #455c4b;
  --gold: #f5b81d;
  --ember: #e8621c;
  --line: #c4d6bc;
  --display: Audiowide, system-ui, sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 12px;
  --header-layer: 6;
  --dialog-layer: 12;
}

* {
  box-sizing: border-box;
}

main {
  overflow: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--chalk);
  background-image:
    radial-gradient(circle at 14% 10%, rgba(26, 92, 40, 0.1), transparent 40%),
    radial-gradient(
      circle at 86% 24%,
      rgba(245, 184, 29, 0.12),
      transparent 42%
    ),
    linear-gradient(180deg, #f5faf0 0%, #edf4e7 52%, #e4efdc 100%);
  color: var(--turf-ink);
  font-family: var(--body);
  line-height: 1.65;
}

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

button {
  font: inherit;
  color: inherit;
}

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

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

::selection {
  background: var(--ember);
  color: var(--chalk-bright);
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 5px;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
}

em {
  font-style: normal;
  color: var(--ember);
}

.section-wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 56px;
}

section[id] {
  scroll-margin-top: 24px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: var(--dialog-layer);
  padding: 12px 16px;
  background: var(--turf-deep);
  color: var(--chalk-bright);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Header */
.site-header {
  height: 82px;
  max-width: 1380px;
  margin: auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: var(--header-layer);
  border-bottom: 1px solid rgba(15, 36, 22, 0.12);
}

.wordmark {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: var(--turf-ink);
}

.wordmark span {
  color: var(--ember);
}

nav {
  display: flex;
  gap: 32px;
  font-family: var(--display);
  font-size: 12px;
  color: var(--muted);
}

nav a:hover {
  color: var(--ember);
}

.header-play {
  font-family: var(--display);
  font-size: 12px;
  white-space: nowrap;
  border: 1.5px solid var(--turf-deep);
  border-radius: var(--radius);
  padding: 10px 18px;
  color: var(--turf-deep);
  background: var(--chalk-bright);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.header-play span {
  margin-left: 10px;
}

.header-play:hover {
  background: var(--turf-deep);
  color: var(--chalk-bright);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  max-width: 1380px;
  margin: auto;
  padding: 56px 56px 64px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(46px, 5.8vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--turf-deep);
}

.hero h1 > span {
  color: var(--ember);
}

.hero-hook {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  margin-top: 20px;
  color: var(--turf-ink);
}

.hero-hook > span:first-child {
  color: var(--turf-mid);
}

.hero-sub {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 16px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 14px 26px;
  font-family: var(--display);
  font-size: 13px;
  border: 2px solid var(--turf-deep);
  border-radius: var(--radius);
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  white-space: nowrap;
}

.button-primary {
  background: var(--turf-deep);
  color: var(--chalk-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 28px rgba(4, 41, 10, 0.2);
}

.button-primary:hover {
  transform: translateY(-3px);
  background: var(--ember);
  border-color: var(--ember);
  color: var(--chalk-bright);
}

.button:active {
  transform: translateY(0);
}

.button-secondary {
  background: var(--chalk-bright);
  color: var(--turf-deep);
}

.button-secondary:hover {
  transform: translateY(-3px);
  background: var(--turf-mid);
  border-color: var(--turf-mid);
  color: var(--chalk-bright);
}

.hero-actions .button-primary {
  min-height: 70px;
  padding-inline: 30px;
  font-size: 15px;
}

.hero-actions .android-download {
  min-height: 70px;
  gap: 14px;
  padding: 12px 22px;
}

.android-download > span[aria-hidden] {
  font-size: 22px;
  color: var(--turf-mid);
}

.android-download:hover > span[aria-hidden] {
  color: inherit;
}

.android-download-label {
  display: grid;
  gap: 4px;
  text-align: left;
}

.android-download-version {
  font-size: 11px;
  color: var(--muted);
}

.android-download:hover .android-download-version {
  color: rgba(255, 255, 255, 0.88);
}

.stadium-frame {
  padding: 12px;
  border-radius: 26px;
  background: var(--turf-deep);
  border: 2px solid var(--turf-ink);
  box-shadow: 0 28px 60px rgba(4, 41, 10, 0.28);
}

.screenshot-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s;
}

.screenshot-button:hover {
  transform: scale(1.01);
}

.screenshot-button img {
  width: 100%;
  height: auto;
}

/* Decorative Props Between Sections */
.field-gap {
  max-width: 1240px;
  height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gap-prop {
  width: 56px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 10px 18px rgba(4, 41, 10, 0.22));
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--turf-deep);
}

.section-heading {
  text-align: center;
  max-width: 68ch;
  margin: 0 auto 38px;
}

.section-heading p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

/* Gameplay Modes */
.gameplay-section {
  padding-block: 36px 56px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mode-card {
  padding: 28px;
  background: var(--chalk-bright);
  border: 1.5px solid var(--line);
  border-radius: 18px;
}

.mode-card h3 {
  font-size: 18px;
  color: var(--turf-deep);
}

.mode-card p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.mode-card strong {
  color: var(--turf-ink);
}

/* Ball Variants */
.balls-section {
  padding-block: 36px 56px;
}

.ball-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ball-card {
  padding: 24px;
  background: var(--chalk-bright);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.ball-card:hover {
  transform: translateY(-4px);
  border-color: var(--turf-mid);
}

.ball-card-fire {
  border-color: rgba(232, 98, 28, 0.45);
}

.ball-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.ball-card h3 {
  font-size: 18px;
  color: var(--turf-deep);
}

.ball-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* Publisher Section */
.publisher {
  padding-block: 40px 64px;
}

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

.pitch-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.pillar-card {
  padding: 26px;
  background: var(--chalk-bright);
  border: 1.5px solid var(--line);
  border-radius: 18px;
}

.pillar-card h3 {
  font-size: 19px;
  color: var(--turf-deep);
}

.pillar-card p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.publisher-details {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  padding: 32px;
  background: var(--turf-deep);
  color: var(--chalk-bright);
  border-radius: 24px;
  box-shadow: 0 24px 52px rgba(4, 41, 10, 0.24);
}

.project-facts h3 {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 18px;
}

.project-facts dl {
  display: grid;
  gap: 12px;
}

.project-facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.project-facts dt {
  color: rgba(246, 250, 242, 0.72);
}

.project-facts dd {
  text-align: right;
  color: var(--chalk-bright);
  font-family: var(--display);
  font-size: 13px;
}

.partner-ask {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 16px;
}

.partner-ask h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
}

.partner-ask h3 span {
  color: var(--gold);
}

.partner-ask p {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(246, 250, 242, 0.84);
}

.publisher-contact {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 14px 22px;
  background: var(--ember);
  color: var(--chalk-bright);
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 13px;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}

.publisher-contact:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--turf-deep);
}

/* Closing Section */
.closing {
  padding-block: 48px 92px;
  text-align: center;
}

.closing-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Reveal Animations */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.js-motion .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Lightbox Dialog */
body.dialog-open {
  overflow: hidden;
}

#screenshot-dialog {
  max-width: min(92vw, 1040px);
  max-height: 92dvh;
  padding: 16px;
  border: 2px solid var(--turf-deep);
  border-radius: 22px;
  background: var(--chalk-bright);
  color: var(--turf-ink);
}

#screenshot-dialog::backdrop {
  background: rgba(4, 41, 10, 0.8);
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-bottom: 10px;
  padding: 8px 14px;
  border: 1.5px solid var(--turf-deep);
  border-radius: 8px;
  background: var(--chalk);
  cursor: pointer;
  font-family: var(--display);
  font-size: 12px;
}

#screenshot-dialog figure {
  display: grid;
  place-items: center;
}

#full-screenshot {
  max-height: 74dvh;
  width: auto;
  border-radius: 14px;
}

#screenshot-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .site-header,
  .hero,
  .section-wrap {
    padding-inline: 32px;
  }

  .hero,
  .mode-grid,
  .publisher-details,
  .pitch-pillars {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .partner-ask {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 12px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
  }

  .header-play {
    padding: 8px 12px;
    font-size: 11px;
  }

  .hero,
  .section-wrap {
    padding-inline: 18px;
  }

  .hero {
    padding-top: 28px;
    gap: 28px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button-primary,
  .hero-actions .android-download {
    width: 100%;
    min-height: 62px;
  }

  .android-download-label {
    white-space: normal;
  }

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

  .publisher-details {
    padding: 22px 18px;
  }

  .project-facts dl > div {
    flex-direction: column;
    gap: 4px;
  }

  .project-facts dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
