/* pickelx.com: the app icon's night court (docs/release/icon/background.svg) and its ball. */
:root {
  --night: #0D1116;
  --floodlight: #18202A;
  --deep: #060708;
  --ball: #C8FF2E;
  --chalk: #F4F7FB;
  --chalk-dim: #C9D0DA;
  --grip: #9AA4B2;
  --line: rgba(244, 247, 251, 0.1);
  --sans: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night) radial-gradient(120% 70% at 50% 0%, var(--floodlight) 0%, var(--night) 55%, var(--deep) 100%) no-repeat;
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ball); }
:focus-visible { outline: 2px solid var(--ball); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* The header: the icon's mark and the name, as on the Play feature graphic. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.06em;
}
.lockup:hover { color: var(--chalk); }
.lockup svg, .lockup img { width: 40px; height: 40px; flex: none; }
.lockup img { border-radius: 10px; }
.lockup .x { color: var(--ball); }
.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
  color: var(--chalk-dim);
  text-decoration: none;
}

/* The hero: what it is and when, beside the game itself. */
.hero {
  display: grid;
  gap: 32px;
  padding-top: 24px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 12ch;
}
.lead {
  margin: 20px 0 0;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--chalk-dim);
  max-width: 34em;
}
/* A status, not a link: white text behind the icon's ball, which no link on the page uses. */
.soon {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0 0;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.45;
}
.soon .ball {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 0.4em;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #F0FF9A 0%, var(--ball) 45%, #8FCB00 100%);
  box-shadow: 0 0 12px rgba(200, 255, 46, 0.55);
}
.shot {
  margin: 0;
  padding: 6px;
  border-radius: 22px;
  background: #05070A;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.shot img { border-radius: 16px; aspect-ratio: 16 / 9; width: 100%; }

/* The sections below the first screen. */
section { padding-top: 88px; }
h2 {
  margin: 0 0 32px;
  font-size: clamp(1.625rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
}
h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
}
.features {
  display: grid;
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features p, .screens figcaption, .facts p { margin: 0; color: var(--grip); }

.screens {
  display: grid;
  gap: 32px 24px;
}
.screens figure { margin: 0; }
.screens img {
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  width: 100%;
  box-shadow: 0 0 0 1px var(--line);
}
.screens figcaption { margin-top: 12px; font-size: 1rem; }

.facts {
  display: grid;
  gap: 20px 40px;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(24, 32, 42, 0.7);
  box-shadow: 0 0 0 1px var(--line);
}
.facts h2 { margin: 0; }
.facts p { color: var(--chalk-dim); }

/* The footer: the support address and the four store pages. */
.foot {
  margin-top: 96px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}
/* The rule spans the text's width, not the gutters'. */
.foot::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 28px;
  background: var(--line);
}
.foot p { margin: 0 0 12px; color: var(--chalk-dim); }
.foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--grip);
}
.foot nav a:hover { color: var(--ball); }

/* The 404 page. */
.missing { padding-top: 64px; padding-bottom: 64px; }
.missing h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; font-weight: 800; }
.missing p { margin: 0; color: var(--chalk-dim); }

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 36px 40px; }
  .facts h2 { grid-column: 1 / -1; }
}

@media (min-width: 760px) {
  .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .top { padding-top: 24px; padding-bottom: 24px; }
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 56px;
    padding-top: 40px;
  }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
