/* LandB Studios: comic style shared with the games (ink outlines, hard shadows, halftone dots, sunburst rays).
   Colours come from the LandB logo kit and the Bonkleville comic UI. Fonts are hosted here (no third-party requests):
   Luckiest Guy (Apache 2.0) and Barlow Condensed (SIL OFL 1.1); licences in assets/fonts. */
@font-face { font-family: "Luckiest Guy"; src: url("../assets/fonts/LuckiestGuy-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; src: url("../assets/fonts/BarlowCondensed-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url("../assets/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; src: url("../assets/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #130d24;
  --ink: #0d0819;
  --panel: #241a3d;
  --panel-2: #30254f;
  --paper: #f3efe8;
  --text: #f6f2ea;
  --muted: #cbc3e0;
  --yellow: #ffd21e;
  --gold: #fdb813;
  --blue: #2f6bff;
  --red: #ff4d6d;
  --purple: #b44dff;
  --cyan: #28e0ff;
  --edge: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --body: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --wrap: min(1160px, calc(100% - 32px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--night);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.055) 1.3px, transparent 1.7px),
    repeating-conic-gradient(from 0deg at 50% -8%, rgba(47, 107, 255, 0.13) 0deg 5deg, transparent 5deg 12deg),
    radial-gradient(120% 70% at 50% -10%, #2a1d52 0%, var(--night) 60%);
  background-size: 15px 15px, auto, auto;
  background-attachment: fixed;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: var(--yellow); }
.prose a, .legal a { text-underline-offset: 0.18em; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--yellow); color: var(--ink); padding: 0.5rem 0.9rem; z-index: 30; font-weight: 700; border: var(--edge); }
.skip-link:focus { top: 1rem; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* ---------------------------------------------------------------- header and footer */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem max(16px, calc((100% - 1160px) / 2));
  background: rgba(13, 8, 25, 0.92);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 rgba(47, 107, 255, 0.55);
  backdrop-filter: blur(10px);
}
.logo { display: block; line-height: 0; }
.logo img { height: 52px; width: auto; }
.nav-toggle { display: none; font: 1rem var(--display); letter-spacing: 0.04em; color: var(--ink); background: var(--yellow); border: var(--edge); border-radius: 10px; padding: 0.5rem 0.9rem 0.3rem; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 0.4rem; }
.site-nav a {
  font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: 0.5rem 0.85rem 0.3rem; border: 3px solid transparent; border-radius: 10px;
}
.site-nav a:hover { color: var(--yellow); }
.site-nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

.site-footer {
  margin-top: 4rem; padding: 1.6rem max(16px, calc((100% - 1160px) / 2)) 2.2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--ink); border-top: 4px solid var(--blue); color: var(--muted); font-size: 1.05rem;
}
.site-footer img { height: 34px; width: auto; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-links a { color: var(--text); }

/* ---------------------------------------------------------------- type */
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.02; margin: 0; }
.inked { color: var(--yellow); -webkit-text-stroke: 0; text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--blue); }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.6rem; }
.kicker {
  display: inline-block; margin: 0 0 1rem; padding: 0.35rem 0.8rem 0.15rem; transform: rotate(-2deg);
  font-family: var(--display); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow); border: var(--edge); box-shadow: 3px 3px 0 var(--ink);
}
.kicker.blue { background: var(--blue); color: #fff; }
.kicker.red { background: var(--red); color: #fff; }
.lede { max-width: 40rem; margin: 1.2rem 0 0; color: var(--muted); font-size: 1.4rem; line-height: 1.4; }
.prose { color: var(--muted); }
.prose p { margin: 0 0 1rem; }

/* ---------------------------------------------------------------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.2rem;
  padding: 0.8rem 1.3rem 0.55rem; font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.03em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); background: var(--paper); border: var(--edge); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button.primary { background: var(--yellow); }
.button.blue { background: var(--blue); color: #fff; }
.button.ghost { background: transparent; color: var(--text); border-color: var(--paper); box-shadow: 4px 4px 0 var(--blue); }
.button.is-waiting { background: var(--panel-2); color: var(--muted); border-color: var(--ink); cursor: default; box-shadow: 4px 4px 0 var(--ink); transform: none; }
a:focus-visible, .button:focus-visible, .nav-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ---------------------------------------------------------------- panels */
.panel {
  position: relative; background: var(--panel); border: var(--edge); border-radius: 18px; padding: 1.6rem; box-shadow: var(--pop);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.2px, transparent 1.6px); background-size: 12px 12px;
}
.panel .label { margin: 0 0 0.5rem; font-family: var(--display); font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--yellow); }
.panel h2, .panel h3 { margin: 0.2rem 0 0.6rem; }
.panel p { margin: 0 0 0.8rem; color: var(--muted); }

.section { padding: 4.5rem 0 0; }
.page-intro { padding: 4rem 0 2rem; }
.stack { display: grid; gap: 1.6rem; }

/* ---------------------------------------------------------------- studio home */
.hero { padding: 3.5rem 0 1rem; text-align: center; }
.hero .logo-big { width: min(620px, 92%); margin: 0 auto; filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.35)); }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }

.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center;
  background: var(--panel); border: var(--edge); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); padding: 1.6rem;
  background-image: radial-gradient(rgba(255, 210, 30, 0.08) 1.3px, transparent 1.8px); background-size: 13px 13px;
}
.feature .shot { margin: 0; }
.feature-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.feature-head img { width: 84px; height: 84px; border-radius: 20px; border: var(--edge); box-shadow: 4px 4px 0 var(--ink); }

.shot { position: relative; border: 4px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 var(--blue), 6px 6px 0 3px var(--ink); background: var(--ink); }
.shot img { width: 100%; height: auto; aspect-ratio: 37 / 18; object-fit: cover; }
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.2deg); }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.pill-row li { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.45rem 0.8rem 0.25rem; border: var(--edge); border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.pill-row li.yes { background: var(--yellow); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.fact { text-align: center; padding: 1.2rem; }
.fact strong { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); }
.fact span { color: var(--muted); }

.cta-band {
  margin-top: 4rem; padding: 2.4rem 0; background: var(--yellow); color: var(--ink); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  background-image: radial-gradient(rgba(13, 8, 25, 0.16) 1.4px, transparent 1.9px); background-size: 13px 13px;
}
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.cta-band h2 { color: var(--ink); }
.cta-band p { margin: 0.4rem 0 0; font-size: 1.3rem; }

/* ---------------------------------------------------------------- games, stores, support */
.game-card { display: grid; grid-template-columns: 9rem 1fr; gap: 1.6rem; align-items: center; }
.game-card > img { width: 9rem; height: 9rem; border-radius: 26px; border: var(--edge); box-shadow: 5px 5px 0 var(--ink); }
.store-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.store-card .status { display: inline-block; margin: 0 0 0.6rem; font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); background: var(--cyan); border: var(--edge); border-radius: 999px; padding: 0.3rem 0.75rem 0.1rem; }
.store-meta { display: flex; gap: 1.6rem; margin: 0.4rem 0 1.4rem; color: var(--text); }
.store-meta span { display: block; font-size: 0.95rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.side-note ol { margin: 0; padding-left: 1.3rem; color: var(--muted); }
.side-note li + li { margin-top: 0.4rem; }
.store-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; }

.legal { max-width: 46rem; }
.legal h2 { margin: 2.2rem 0 0.5rem; font-size: 1.8rem; color: var(--yellow); }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.legal li + li { margin-top: 0.4rem; }

/* ---------------------------------------------------------------- Bonkleville page */
.game-hero { padding: 3rem 0 0; }
.game-hero .grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.4rem; align-items: center; }
.title-lockup { display: flex; align-items: center; gap: 1.2rem; }
.title-lockup img { width: 112px; height: 112px; border-radius: 28px; border: var(--edge); box-shadow: 5px 5px 0 var(--ink); flex: none; }
.wordmark { font-family: var(--display); font-size: clamp(2.8rem, 6.4vw, 4.8rem); line-height: 0.95; color: var(--yellow); text-shadow: 3px 3px 0 var(--ink), 7px 7px 0 var(--blue); margin: 0; }
.wordmark small { display: block; font-size: 0.42em; color: var(--paper); text-shadow: 3px 3px 0 var(--ink); letter-spacing: 0.04em; margin-top: 0.35rem; }
.burst-tag { display: inline-block; margin-top: 1.4rem; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; color: var(--ink); background: var(--red); padding: 0.55rem 1rem 0.35rem; border: var(--edge); transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--ink); }
.burst-tag b { color: #fff; font-weight: 400; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.mode { border-top: 10px solid var(--blue); }
.mode.adventure { border-top-color: var(--yellow); }
.mode.arcade { border-top-color: var(--red); }
.mode h3 { color: var(--paper); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.6rem; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 0.9rem; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.02em; color: var(--paper); }
.gallery figcaption span { display: block; font-family: var(--body); font-size: 1.1rem; color: var(--muted); letter-spacing: 0; }

.crew { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
.fighter { text-align: center; padding: 0.9rem 0.6rem 1rem; background: var(--panel); border: var(--edge); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.fighter img { height: 190px; width: auto; margin: 0 auto 0.6rem; object-fit: contain; filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.45)); }
.fighter h3 { font-size: 1.25rem; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.fighter p { margin: 0.35rem 0 0; font-size: 1rem; line-height: 1.25; color: var(--muted); }
.fighter.c-bbl { background-color: #1f3a8a; } .fighter.c-gas { background-color: #1f6a35; } .fighter.c-moo { background-color: #5b3b28; }
.fighter.c-nani { background-color: #8a1d5a; } .fighter.c-tikka { background-color: #8a3f10; } .fighter.c-benny { background-color: #7a5a08; } .fighter.c-gigi { background-color: #4b2380; }

.facts-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.links-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.links-row a.panel { display: block; text-decoration: none; color: var(--text); transition: transform 0.12s ease; }
.links-row a.panel:hover { transform: translate(-2px, -2px); }
.links-row strong { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); margin-bottom: 0.3rem; }
.links-row span { color: var(--muted); }

/* ---------------------------------------------------------------- phones */
@media (max-width: 900px) {
  .feature, .game-hero .grid, .store-pair, .store-layout, .facts-list { grid-template-columns: 1fr; }
  .crew { grid-template-columns: repeat(4, 1fr); }
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1.12rem; }
  .logo img { height: 40px; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0.3rem; padding: 0.8rem 16px 1rem; background: var(--ink); border-bottom: 4px solid var(--blue); }
  .site-nav.is-open { display: flex; }
  .site-nav a { text-align: center; }
  .gallery, .links-row, .facts { grid-template-columns: 1fr; }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .game-card { grid-template-columns: 1fr; }
  .title-lockup img { width: 84px; height: 84px; border-radius: 22px; }
  .tilt-l, .tilt-r { transform: none; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Grid and flex children may shrink below their content (long words like BONKLEVILLE on phones). */
.game-hero .grid > *, .feature > *, .gallery > *, .store-pair > *, .store-layout > * { min-width: 0; }
@media (max-width: 720px) {
  .wordmark { font-size: clamp(2rem, 10.5vw, 3rem); }
  .title-lockup { gap: 0.8rem; }
  h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); overflow-wrap: anywhere; }
  .site-header { padding-left: 16px; padding-right: 16px; }
  body { overflow-x: hidden; }
}

/* Short pages keep the footer at the bottom of the window. */
body { display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
