/* Blocky Football promo site. Colours come from the baselogo.png artwork: sky checks,
   grass greens, and the title's yellow / green / pink / orange / red / blue blocks. */
:root {
  --ink: #17140f;
  --paper: #fffdf6;
  --sky: #cfe9ff;
  --sky-2: #e6f4ff;
  --sky-deep: #3fa9f5;
  --grass: #5cc93a;
  --grass-2: #4bb52d;
  --grass-deep: #2c7d1c;
  --night: #0f2a14;
  --yellow: #ffc92e;
  --orange: #ff962b;
  --pink: #ff7fb4;
  --red: #f2493a;
  --blue: #43a9f2;
  --lime: #b6e23a;
  --green: #79cf3f;
  --white: #f4f1ea;
  --text: #23211c;
  --muted: #5a564d;
  --block: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --pixel: "Press Start 2P", ui-monospace, Menlo, monospace;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 600 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--block);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 11px/1 var(--pixel); }
.brand img { border: 3px solid var(--ink); border-radius: 9px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { text-decoration: none; font-weight: 800; padding: 8px 10px; border-radius: 6px; }
nav a:hover { background: var(--sky-2); }
nav a:not(.nav-cta) { display: none; }
@media (min-width: 760px) { nav a:not(.nav-cta) { display: inline-block; } }
@media (max-width: 380px) { .brand span { display: none; } }
.nav-cta {
  background: var(--yellow); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font: 10px/1 var(--pixel) !important; padding: 10px 12px !important;
}
.nav-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); background: var(--yellow) !important; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    repeating-conic-gradient(var(--sky) 0 25%, var(--sky-2) 0 50%) 0 0 / 96px 96px;
  border-bottom: var(--block);
  padding: 40px 0 72px;
}
.hero::after { /* grass edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  background: repeating-linear-gradient(90deg, var(--grass) 0 32px, var(--grass-2) 32px 64px);
  border-top: var(--block);
}
.hero-in { position: relative; z-index: 2; display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.15fr 0.85fr; gap: 48px; } .hero { padding: 64px 0 96px; } }
.kicker {
  display: inline-block; margin: 0 0 18px; padding: 6px 10px;
  background: var(--ink); color: var(--yellow); font: 9px/1.6 var(--pixel); letter-spacing: 0.5px;
}
.blocky { margin: 0 0 20px; font: 400 clamp(30px, 8.4vw, 64px)/1.15 var(--pixel); letter-spacing: -0.02em; }
.blocky .row { display: block; white-space: nowrap; }
.blocky b {
  font-weight: 400; display: inline-block;
  text-shadow:
    -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink),
    0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink),
    6px 7px 0 var(--ink);
  transition: transform 0.15s;
}
.blocky b:hover { transform: translateY(-4px) rotate(-4deg); }
.c-y { color: var(--yellow); } .c-g { color: var(--green); } .c-p { color: var(--pink); }
.c-o { color: var(--orange); } .c-r { color: var(--red); } .c-w { color: var(--white); }
.c-l { color: var(--lime); } .c-b { color: var(--blue); }
.lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 34em; margin: 0 0 24px; color: var(--text); }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 22px 0 0; font-weight: 800; font-size: 15px; }
.ticks li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--grass); border: 2px solid var(--ink); vertical-align: 0; }

.hero-art { margin: 0 auto; max-width: 400px; width: 82%; position: relative; }
.hero-art img {
  border: var(--block); border-radius: 14px; box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(2.5deg);
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: rotate(2.5deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-10px); } }

/* floating cubes, echoing the artwork's flying blocks */
.cubes i {
  position: absolute; z-index: 1; width: 18px; height: 18px; border: 3px solid var(--ink);
  background: var(--lime); animation: float 7s ease-in-out infinite;
}
.cubes i:nth-child(1) { left: 4%; top: 18%; }
.cubes i:nth-child(2) { left: 46%; top: 8%; background: var(--orange); width: 12px; height: 12px; animation-delay: -2s; }
.cubes i:nth-child(3) { right: 5%; top: 30%; background: var(--green); animation-delay: -4s; }
.cubes i:nth-child(4) { left: 40%; bottom: 60px; background: var(--yellow); width: 14px; height: 14px; animation-delay: -1s; }
.cubes i:nth-child(5) { right: 30%; bottom: 80px; background: var(--pink); width: 10px; height: 10px; animation-delay: -3s; }
.cubes i:nth-child(6) { left: 12%; bottom: 90px; background: var(--blue); width: 12px; height: 12px; animation-delay: -5s; }
@media (max-width: 899px) { .cubes { display: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(25deg); } }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px;
  padding: 10px 18px 10px 14px; text-decoration: none;
  background: var(--ink); color: #fff; border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--grass-deep);
  transition: transform 0.12s, box-shadow 0.12s;
}
.store:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--grass-deep); }
.store:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--grass-deep); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 700; opacity: 0.8; letter-spacing: 0.02em; }
.store strong { font-size: 19px; font-weight: 900; }
.store.soon { cursor: default; }
.store.soon small { color: var(--yellow); opacity: 1; }

/* ---------- showcase phone ---------- */
.showcase { background: var(--night); padding: 56px 0 48px; border-bottom: var(--block); }
.phone {
  position: relative; max-width: 980px; margin: 0 auto;
  padding: 2.2% 3.4%; background: #1b1b1f; border-radius: 9% / 20%;
  border: 3px solid #000; box-shadow: 0 0 0 3px #3a3a42, 0 30px 60px rgba(0, 0, 0, 0.45);
}
.phone::before { /* camera */
  content: ""; position: absolute; left: 1.4%; top: 50%; width: 1.2%; aspect-ratio: 1; transform: translateY(-50%);
  background: #0a0a0c; border-radius: 50%; box-shadow: inset 0 0 0 2px #2a2a33;
}
.phone-screen { position: relative; aspect-ratio: 1920 / 887; border-radius: 3.5% / 7.5%; overflow: hidden; background: #000; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.phone-screen img.on { opacity: 1; }
.reel-caption {
  text-align: center; margin: 22px 0 0; color: #cfe8c6; font: 10px/1.8 var(--pixel); min-height: 2em;
}

/* ---------- stats ---------- */
.stats { background: var(--yellow); border-bottom: var(--block); }
.stats-in { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats-in { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 22px 10px; text-align: center; }
.stat strong { display: block; font: 400 clamp(18px, 3vw, 26px)/1.3 var(--pixel); color: var(--ink); }
.stat span { font-weight: 800; font-size: 15px; }

/* ---------- section titles ---------- */
.sec-title { font: 400 clamp(20px, 3.4vw, 32px)/1.45 var(--pixel); margin: 0 0 14px; color: var(--ink); }
.sec-title em { font-style: normal; color: var(--grass-deep); }
.sec-sub { margin: 0 0 30px; max-width: 40em; color: var(--muted); font-size: 18px; }
.light { color: #fff; }
.sec-sub.light { color: #dbeed5; }

/* ---------- game modes ---------- */
.modes { padding: 72px 0; background: var(--sky-2); border-bottom: var(--block); }
.grid-modes { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .grid-modes { grid-template-columns: repeat(2, 1fr); } }
.mode {
  display: flex; flex-direction: column; background: #fff; border: var(--block); border-radius: 6px;
  box-shadow: var(--shadow); overflow: hidden; transition: transform 0.15s, box-shadow 0.15s;
}
.mode:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.mode img { width: 100%; aspect-ratio: 1920 / 887; object-fit: cover; border-bottom: var(--block); }
.mode-body { padding: 18px 22px 20px; }
.mode h3 { margin: 0 0 10px; }
.tag {
  display: inline-block; padding: 8px 10px 7px; background: var(--tag); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 400 13px/1 var(--pixel);
}
.mode p { margin: 0 0 10px; color: var(--muted); }
.mini { margin: 0; padding: 0; list-style: none; font-weight: 800; font-size: 15px; }
.mini li { margin-top: 4px; }
.mini li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--tag); border: 2px solid var(--ink); }
.mode-stats {
  display: grid; gap: 20px; align-items: center; margin-top: 28px; padding: 18px;
  background: var(--yellow); border: var(--block); border-radius: 6px; box-shadow: var(--shadow);
}
@media (min-width: 800px) { .mode-stats { grid-template-columns: 0.9fr 1.1fr; gap: 28px; padding: 22px 28px 22px 22px; } }
.mode-stats img { border: var(--block); border-radius: 4px; }
.mode-stats h3 { margin: 0 0 8px; font: 400 clamp(15px, 2vw, 19px)/1.4 var(--pixel); color: var(--ink); }
.mode-stats p { margin: 0; color: var(--text); }

/* ---------- features ---------- */
.features { padding: 72px 0; }
.grid-features { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 36px; }
@media (min-width: 640px) { .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-features { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: var(--block); box-shadow: var(--shadow); border-radius: 6px;
  padding: 22px 22px 18px; transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card h3 { margin: 16px 0 6px; font-size: 21px; font-weight: 900; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }
.pix {
  display: grid; place-items: center; width: 64px; height: 64px;
  background: var(--bg); border: var(--block); box-shadow: 4px 4px 0 var(--ink);
}
.pix svg { width: 44px; height: 44px; shape-rendering: crispEdges; }

/* ---------- screenshots ---------- */
.screens {
  padding: 72px 0;
  background: repeating-linear-gradient(90deg, var(--grass-2) 0 64px, var(--grass) 64px 128px);
  border-top: var(--block); border-bottom: var(--block);
}
.screens .sec-title { text-shadow: 3px 3px 0 var(--ink); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery li:nth-child(1), .gallery li:nth-child(2), .gallery li:nth-child(7), .gallery li:nth-child(8) { grid-column: span 2; } }
.gallery button {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in;
  border: var(--block); border-radius: 6px; overflow: hidden; background: #000;
  box-shadow: 5px 5px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s;
}
.gallery button:hover, .gallery button:focus-visible { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.gallery button:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
.gallery img { width: 100%; aspect-ratio: 1920 / 887; object-fit: cover; }
.gallery span {
  position: absolute; left: 10px; bottom: 10px; padding: 7px 9px;
  background: var(--ink); color: var(--yellow); font: 9px/1 var(--pixel);
}

/* ---------- how to play ---------- */
.howto { padding: 72px 0; background: var(--sky-2); border-bottom: var(--block); }
.howto-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .howto-in { grid-template-columns: 1fr 1fr; } }
.controls { display: grid; gap: 16px; }
.ctl { display: flex; align-items: center; gap: 16px; background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 12px 16px 12px 12px; }
.ctl h3 { margin: 0; font-size: 18px; font-weight: 900; }
.ctl p { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.btn-g {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.55); color: #fff; font: 7px/1 var(--pixel);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.btn-g.red { background: #c9372b; } .btn-g.blue { background: #2f6fe0; }
.btn-g.yellow { background: #c79a1a; }
.btn-g.ring { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25), 0 0 0 4px #fff, 0 0 0 7px var(--yellow); }
.btn-joy { flex: none; position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgba(23, 20, 15, 0.18); border: 3px solid rgba(23, 20, 15, 0.45); }
.btn-joy i { position: absolute; left: 30%; top: 30%; width: 40%; height: 40%; border-radius: 50%; background: #fff; border: 2px solid rgba(0, 0, 0, 0.3); animation: joy 3s ease-in-out infinite; }
@keyframes joy { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(40%, -20%); } 60% { transform: translate(-30%, 30%); } }
.howto-shot { margin: 0; }
.howto-shot img { border: var(--block); border-radius: 12px; box-shadow: var(--shadow); }
.howto-shot figcaption { margin-top: 18px; font-weight: 800; color: var(--muted); }

/* ---------- download ---------- */
.download { position: relative; background: var(--night); padding: 72px 0 110px; overflow: hidden; }
.download-in { position: relative; z-index: 2; display: grid; gap: 28px; justify-items: center; text-align: center; }
.download-in .stores { justify-content: center; }
@media (min-width: 760px) { .download-in { grid-template-columns: auto 1fr; justify-items: start; text-align: left; } .download-in .stores { justify-content: flex-start; } }
.dl-icon { width: 160px; border: var(--block); border-radius: 36px; box-shadow: 8px 8px 0 var(--grass-deep); }
.download .store { box-shadow: 4px 4px 0 var(--yellow); background: #000; border-color: #fff; }
.download .store:hover { box-shadow: 6px 6px 0 var(--yellow); }
.grass { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; border-top: var(--block);
  background: repeating-linear-gradient(90deg, var(--grass) 0 40px, var(--grass-2) 40px 80px); }

/* ---------- privacy policy ---------- */
.privacy { padding: 72px 0; background: var(--paper); border-top: var(--block); }
.privacy-in { max-width: 860px; }
.updated { margin: 0 0 26px; font: 9px/1.6 var(--pixel); color: var(--grass-deep); }
.privacy-sum { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 34px; }
@media (min-width: 720px) { .privacy-sum { grid-template-columns: repeat(3, 1fr); } }
.privacy-sum div { background: var(--sky-2); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px; }
.privacy-sum strong { display: block; font: 400 11px/1.5 var(--pixel); color: var(--ink); margin-bottom: 6px; }
.privacy-sum span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.policy h3 { margin: 30px 0 8px; font-size: 21px; font-weight: 900; color: var(--ink); }
.policy p, .policy li { color: var(--text); }
.policy p { margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-left: 22px; }
.policy li { margin-bottom: 6px; }
.policy li::marker { color: var(--grass-deep); }
.policy a { color: #1f6fb8; font-weight: 800; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #cfcabc; padding: 28px 0; font-size: 15px; }
.foot-in { display: grid; gap: 6px; }
.foot p { margin: 0; }
.foot strong { color: #fff; }
.foot a { color: var(--yellow); font-weight: 800; }
.small { font-size: 13px; opacity: 0.8; }

/* ---------- lightbox ---------- */
.lightbox {
  width: min(1200px, 96vw); max-width: none; max-height: 92vh; padding: 0; border: var(--block);
  border-radius: 10px; background: #000; box-shadow: 10px 10px 0 var(--ink); overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 20, 12, 0.82); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px 6px 0 0; }
.lb-cap { margin: 0; padding: 12px 16px; color: var(--yellow); background: var(--ink); font: 10px/1.6 var(--pixel); border-radius: 0 0 6px 6px; }
.lb-btn {
  position: absolute; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font: 900 24px/1 var(--body);
}
.lb-close { top: -18px; right: -14px; font-size: 18px; }
.lb-prev { left: -14px; top: 45%; }
.lb-next { right: -14px; top: 45%; }
@media (max-width: 600px) { .lb-prev { left: 4px; } .lb-next { right: 4px; } .lb-close { right: 4px; top: 4px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img, .cubes i, .btn-joy i { animation: none; }
  .phone-screen img { transition: none; }
}
