/* ballszn.com, in the App Store screenshots' look: the captions' ink slabs and banded colour ramps, the
   game's one grey UI (godot/ui/kit.gd) with gold only for the download actions, Jersey 25 for every title. */
@font-face {
  font-family: "Jersey 25";
  src: url("fonts/jersey25.woff2") format("woff2");
  font-display: swap;
}
:root {
  --ink: #100818;      /* the captions' outline and shadow */
  --slab: #181028;     /* the captions' slab */
  --ground: #120c1c;
  --sheet: #24212b;    /* kit.gd SHEET, SURFACE, RAISED */
  --surface: #302c38;
  --raised: #4a4556;
  --text: #f4f2f8;
  --muted: #bdb7c9;
  --orange: #ff7a1a;
  --gold: #ffc93c;
  /* the caption ramps (store/screenshots/concepts/captions.py), top band to bottom */
  --cream: #fefdf3 0 25%, #f8ecd7 25% 55%, #f7ebd5 55% 80%, #eadabd 80%;
  --flame: #feef4a 0 22%, #fecc2e 22% 42%, #fe8a24 42% 62%, #fd422d 62% 82%, #eb2039 82%;
  --bar: #ffe84a 0 20%, #ffc233 20% 40%, #ff8a24 40% 60%, #f2502e 60% 80%, #d9283a 80%;
  --display: "Jersey 25", "Arial Narrow", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --step: 4px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font: 17px/1.6 var(--body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--text); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.pixel { image-rendering: pixelated; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; }

/* Titles: the captions' lettering. Jersey 25 leaning like the tabs, a banded ramp, an ink outline and a
   stepped shadow. The outline is drop-shadow, since text-shadow would paint over a clipped ramp. */
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; margin: 0; }
h2 { font-size: clamp(36px, 4.6vw, 54px); }
h3 { font-size: 30px; }
h1, h2 { width: fit-content; max-width: 100%; transform: skewX(-8deg); transform-origin: 0 100%; }
h1 > span, h1 > em, h2 > span, .page h1, .page h2 {
  display: block; width: fit-content; font-style: normal;
  background: linear-gradient(180deg, var(--cream)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0.045em 0 0 var(--ink)) drop-shadow(-0.045em 0 0 var(--ink)) drop-shadow(0 0.045em 0 var(--ink)) drop-shadow(0 -0.045em 0 var(--ink)) drop-shadow(0.05em 0.07em 0 var(--ink));
  padding: 0.06em 0.06em 0.02em; line-height: 0.9; background-size: 100% 0.9em; background-position: 0 0.06em; /* the bands repeat per line when a title wraps */
}
h1 > span, h2 > span, h1 > em { display: block; }
.r-flame { background-image: linear-gradient(180deg, var(--flame)) !important; }
.r-gold { background-image: linear-gradient(180deg, #fff7c2 0 22%, #ffe14d 22% 42%, #f7b51e 42% 62%, #e08a12 62% 82%, #b8650e 82%) !important; }
.r-teal { background-image: linear-gradient(180deg, #d4fff6 0 22%, #6cf2da 22% 42%, #1fc9b6 42% 62%, #12a29e 62% 82%, #0b7a84 82%) !important; }
.r-sky { background-image: linear-gradient(180deg, #e2f3ff 0 22%, #8fd0ff 22% 42%, #4aa2f5 42% 62%, #2f76e0 62% 82%, #2251b8 82%) !important; }
.r-violet { background-image: linear-gradient(180deg, #f6d8ff 0 22%, #d99bff 22% 42%, #af6bf5 42% 62%, #8a4ae6 62% 82%, #6436c4 82%) !important; }
.r-lime { background-image: linear-gradient(180deg, #f2ffd0 0 22%, #c6f55a 22% 42%, #8fd630 42% 62%, #5fb024 62% 82%, #3f8a1c 82%) !important; }

/* The eyebrow: a stepped flame bar like the captions' speed stripes, then a small label */
.eyebrow { font-family: var(--display); font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.eyebrow::before { content: ""; width: 44px; height: 15px; flex: none; background: linear-gradient(180deg, var(--bar)); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* Panels: the game's grey sheets, an ink edge with its corners stepped off and a darker lip */
.panel { background: var(--sheet); border: 3px solid var(--ink); box-shadow: inset 0 calc(-1 * var(--step)) 0 rgba(0, 0, 0, 0.25), inset 0 0 0 2px var(--surface);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(16, 8, 24, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 3px solid var(--ink); box-shadow: 0 1px 0 var(--sheet); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.top .brand img { width: 122px; height: 30px; }
.top nav { display: flex; gap: 26px; }
.top nav a { font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--text); text-decoration: none; letter-spacing: 0.04em; }
.top nav a:hover { color: var(--gold); }
@media (max-width: 760px) { .top nav { display: none; } }

/* Buttons: the kit's raised grey blocks with a pixel lip */
.btn { --bg: var(--raised); --fg: var(--text); display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px 4px; background: var(--bg); color: var(--fg);
  font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  border: 3px solid var(--ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.28);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
  transition: transform 0.12s ease, filter 0.12s ease; }
.btn:hover { color: var(--fg); filter: brightness(1.1); transform: translateY(-2px); }
.btn:focus-visible { clip-path: none; outline-color: var(--text); } /* the stepped corners would clip the focus ring */
.btn img { width: 34px; height: 34px; margin: 0 -4px 0 -8px; }
/* The one accent: gold, for the download actions only */
.btn.flame { --bg: linear-gradient(180deg, #ffe14d 0 50%, #ffc233 50%); --fg: var(--ink); box-shadow: inset 0 -5px 0 #f08a24; }
.btn.small { min-height: 48px; font-size: 20px; padding: 0 18px 4px; }
/* The store pair in each store's own colours: Apple's black, Google Play's white with its four-colour mark */
.btn.apple { --bg: #000; --fg: #fff; border-color: #000; box-shadow: inset 0 -4px 0 #2b2b2b, 0 0 0 1px rgba(255, 255, 255, 0.35); }
.btn.gplay { --bg: #fff; --fg: #000; border-color: var(--ink); box-shadow: inset 0 -4px 0 #d9d9d9; }
.btn.discord img { filter: brightness(0) invert(1); } /* the blurple pixel glyph drawn white on the grey, its eyes see-through */
.btn.discord:hover { --bg: #5865f2; }

/* Hero: name, headline, one line, the store buttons, then the game. Desktop sets the dunk behind the
   copy on the right; phones stack it as a framed shot under the buttons. */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-copy { max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; }
.lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.app-icon { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 var(--ink); }
.wordmark { width: 244px; height: 60px; filter: drop-shadow(3px 3px 0 var(--ink)); }
.kicker { margin: 4px 0 0; font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(46px, 2.6vw + 34px, 72px); }
.hero h1 > em { font-size: 1.15em; }
.hero .lead { margin: 24px 0 32px; max-width: 30em; color: #e6e2ee; font-size: clamp(17px, 0.5vw + 15px, 20px); line-height: 1.5; }
/* the store pair and the social pair share one two-column grid, so the rows line up */
.stores, .socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(100%, 480px); }
.stores .btn, .socials .btn { justify-content: center; }
.socials .btn { gap: 10px; }
.socials .btn img { width: 28px; height: 28px; margin: 0; }
.store { min-height: 64px; gap: 12px; padding: 0 12px 5px; }
.store svg { flex: none; }
.store span { display: flex; flex-direction: column; font-size: 28px; line-height: 1; white-space: nowrap; }
.store small { font-size: 15px; letter-spacing: 0.1em; margin-bottom: 3px; }
.socials { margin-top: 16px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { display: flex; align-items: center; min-height: min(48vw, 760px); padding: 56px 0 72px; }
  .hero > .wrap { position: relative; z-index: 1; }
  /* the picture holds the right side only and fades in from the page on a long eased ramp (an alpha mask, so
     nothing ghosts behind the copy and there is no band where an overlay stops) */
  .hero-art { position: absolute; top: 0; right: 0; bottom: 0; left: 40%; }
  .hero-art img { object-position: 58% 38%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 14%, rgba(0, 0, 0, 0.1) 21%, rgba(0, 0, 0, 0.3) 28%, rgba(0, 0, 0, 0.58) 36%, rgba(0, 0, 0, 0.84) 45%, #000 56%),
      linear-gradient(0deg, transparent 0, #000 20%), linear-gradient(180deg, transparent 0, #000 72px);
    -webkit-mask-composite: source-in, source-in;
    mask-image: linear-gradient(90deg, transparent 0, transparent 14%, rgba(0, 0, 0, 0.1) 21%, rgba(0, 0, 0, 0.3) 28%, rgba(0, 0, 0, 0.58) 36%, rgba(0, 0, 0, 0.84) 45%, #000 56%),
      linear-gradient(0deg, transparent 0, #000 20%), linear-gradient(180deg, transparent 0, #000 72px);
    mask-composite: intersect, intersect; }
}
@media (max-width: 899px) {
  .hero { padding: 32px 0 8px; }
  .hero-copy { max-width: 620px; }
  .hero-art { width: calc(100% - 2 * var(--gutter)); max-width: 720px; margin: 32px auto 0; aspect-ratio: 1434 / 660; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: var(--slab); }
}
@media (max-width: 480px) {
  .lockup { gap: 12px; margin-bottom: 24px; }
  .app-icon { width: 52px; height: 52px; }
  .wordmark { width: 196px; height: 48px; }
  .kicker { font-size: 19px; }
  .hero .lead { margin: 16px 0 24px; }
  .store { min-height: 60px; gap: 8px; padding: 0 8px 5px; }
  .store span { font-size: 21px; }
  .store small { font-size: 13px; letter-spacing: 0.06em; }
  .store svg { width: 18px; height: 21px; } /* 1.5x of the 12x14 grid, crisp at 2x DPR */
  .socials .btn { padding: 0 12px 4px; font-size: 19px; gap: 8px; }
  .socials .btn img { width: 26px; height: 26px; margin: 0; }
}

/* The promise strip: four grey tiles */
.promise ul { list-style: none; margin: 0 auto; padding: 32px var(--gutter) 0; max-width: 1160px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.promise li { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 24px; text-transform: uppercase; line-height: 1; padding: 16px; }
.promise li img { width: 48px; height: 48px; flex: none; }
.promise li span small { display: block; font-family: var(--body); font-size: 14px; text-transform: none; color: var(--muted); margin-top: 4px; line-height: 1.3; }
@media (max-width: 860px) { .promise ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .promise li { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 22px; padding: 14px; } }

/* Features */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section.alt { background: var(--slab); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature.flip .copy { order: 2; }
.feature .copy h2 { margin-bottom: 22px; }
.feature .copy p { color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.chips li { font-family: var(--display); font-size: 19px; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; padding: 6px 10px 7px; background: var(--sheet); border: 2px solid var(--raised); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); color: var(--text); }
/* Game frames: square, an ink edge and a stepped shadow, as the captions sit on the shots */
.shot { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: var(--slab); }
.shot img, .shot video { width: 100%; aspect-ratio: 1434 / 660; object-fit: cover; image-rendering: pixelated; }
.stack { display: grid; gap: 18px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) {
  .feature .wrap { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
}

/* Screenshot rail: the store set, one after another */
.rail { --edge: max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))); display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 620px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--edge); padding: 8px var(--edge) 24px; scrollbar-width: thin; scrollbar-color: var(--raised) transparent; }
.rail figure { margin: 0; scroll-snap-align: start; }
.rail figcaption { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-top: 14px; }
.rail a { display: block; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.head .meta { margin: 0; }

/* Community */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.card { display: flex; gap: 18px; align-items: center; padding: 24px; background: var(--sheet); border: 3px solid var(--ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25), inset 0 0 0 2px var(--surface); text-decoration: none; color: var(--text); transition: transform 0.12s ease; }
.card:hover { transform: translateY(-2px); color: var(--text); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25), inset 0 0 0 2px var(--orange); }
.card img { width: 48px; height: 48px; flex: none; }
.card h3, .card-title { display: block; font-size: 30px; margin-bottom: 4px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }

/* FAQ: each question a grey row */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 24px; }
.faq details { background: var(--sheet); border: 3px solid var(--ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 18px 18px; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 8px; font-family: var(--display); font-size: 34px; color: var(--orange); }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); padding: 0 18px 4px; }

/* Footer */
.foot { border-top: 3px solid var(--ink); background: var(--ink); padding: 48px 0 40px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: grid; gap: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot nav a { color: var(--text); text-decoration: none; font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }
.foot nav a:hover { color: var(--gold); }
.foot .brand img { width: 122px; height: 30px; }
.foot p { margin: 0; }

/* Text pages: privacy, terms, support */
.page { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(44px, 8vw, 68px); margin-bottom: 18px; }
.page h2 { font-size: clamp(28px, 4vw, 34px); margin: 44px 0 14px; }
.page h3 { font-size: 24px; margin: 24px 0 8px; color: var(--gold); }
.page p, .page li { color: #e6e2ee; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.5em; }
.note { border-left: 4px solid var(--orange); background: var(--sheet); padding: 14px 18px; color: var(--text); font-size: 15px; margin: 24px 0; }
.page .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 10px 6px; background: var(--sheet); color: var(--text); text-decoration: none; border: 2px solid var(--raised); }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.contact .card { padding: 20px; }
@media (max-width: 640px) { .contact { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } }
