/* BounceBamBoom site. Dark arcade floor with neon trim, matching the game.
   The pixel font is for titles, labels and buttons only (as in the game's TypeScale);
   long text uses the system font so it stays easy to read. */

@font-face {
  font-family: "BBB Pixel";
  src: url("/assets/fonts/bbb-pixel.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #0b0613;
  --bg-2: #160b24;
  --panel: #120a1e;
  --text: #ece6f5;
  --muted: #a99bbd;
  --pink: #ff4fd8;
  --cyan: #40f0ff;
  --gold: #ffc94a;
  --purple: #b45cff;
  --green: #4dff88;
  --line: #3a2356;
  --pixel: "BBB Pixel", ui-monospace, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 33%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 41%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 23% 62%, #fff4 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 74%, #fff5 50%, transparent 51%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #9ff8ff; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  border-bottom: 2px solid var(--pink);
  box-shadow: 0 2px 18px #ff4fd855;
  background: #0b0613ee;
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 0 10px #ff4fd888; }
.brand span { font-family: var(--pixel); font-size: 12px; letter-spacing: 1px; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.nav a { font-family: var(--pixel); font-size: 10px; text-decoration: none; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); text-shadow: 0 0 8px #ffc94a99; }

/* Neon logo, three colors like the feature graphic */
.logo {
  font-family: var(--pixel);
  font-size: clamp(26px, 7vw, 64px);
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: 2px;
  word-spacing: -0.2em;
}
.logo .b1 { color: #ffd6f6; text-shadow: 0 0 6px var(--pink), 0 0 18px var(--pink), 0 0 36px #ff4fd899; }
.logo .b2 { color: #d9fdff; text-shadow: 0 0 6px var(--cyan), 0 0 18px var(--cyan), 0 0 36px #40f0ff99; }
.logo .b3 { color: #fff0cc; text-shadow: 0 0 6px var(--gold), 0 0 18px var(--gold), 0 0 36px #ffc94a99; }
.subtitle { font-family: var(--pixel); font-size: clamp(12px, 2.4vw, 18px); color: var(--purple); text-shadow: 0 0 10px #b45cff88; margin: 0 0 18px; }

/* Hero with a synthwave grid floor */
.hero { position: relative; overflow: hidden; text-align: center; padding: 56px 0 140px; }
.hero::after {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -40px; height: 220px;
  background:
    repeating-linear-gradient(90deg, #ff4fd8aa 0 2px, transparent 2px 60px),
    repeating-linear-gradient(0deg, #ff4fd8aa 0 2px, transparent 2px 36px);
  transform: perspective(260px) rotateX(62deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
  mask-image: linear-gradient(to top, #000 30%, transparent);
  pointer-events: none;
}
.hero .icon { width: 112px; height: 112px; margin: 0 auto 22px; border-radius: 24px; box-shadow: 0 0 0 2px var(--pink), 0 0 30px #ff4fd8aa; }
.tagline { font-size: 19px; color: var(--text); max-width: 560px; margin: 0 auto 26px; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--pixel); font-size: 13px; text-transform: uppercase; text-decoration: none;
  padding: 16px 22px; border-radius: 14px; border: 3px solid var(--green); color: #eafff1;
  background: #0f2a1a; box-shadow: 0 0 14px #4dff8877, inset 0 0 14px #4dff8833;
  transition: transform .08s ease, box-shadow .15s ease;
  line-height: 1.4;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 22px #4dff88aa, inset 0 0 18px #4dff8855; }
.btn small { display: block; font-size: 9px; color: #b9f5cc; }
.btn .play-mark { width: 22px; height: 22px; flex: none; }
.btn.secondary { border-color: var(--purple); background: #1c0f2e; color: #f1e3ff; box-shadow: 0 0 12px #b45cff66, inset 0 0 12px #b45cff22; }
.btn.secondary:hover { box-shadow: 0 0 20px #b45cffaa, inset 0 0 16px #b45cff44; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 48px 0; }
h2 {
  font-family: var(--pixel); font-size: clamp(15px, 3vw, 22px); font-weight: normal; line-height: 1.5;
  color: var(--gold); text-shadow: 0 0 10px #ffc94a77; text-transform: uppercase; margin: 0 0 18px;
}
h3 { font-family: var(--pixel); font-size: 12px; font-weight: normal; line-height: 1.6; color: var(--cyan); text-transform: uppercase; margin: 0 0 8px; }
.lead { font-size: 18px; }
p { margin: 0 0 14px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 18px 18px 6px;
}
.card.pink { border-color: var(--pink); box-shadow: 0 0 12px #ff4fd844; }
.card.cyan { border-color: var(--cyan); box-shadow: 0 0 12px #40f0ff44; }
.card.gold { border-color: var(--gold); box-shadow: 0 0 12px #ffc94a44; }
.card.purple { border-color: var(--purple); box-shadow: 0 0 12px #b45cff44; }
.card.green { border-color: var(--green); box-shadow: 0 0 12px #4dff8844; }

/* Screenshot strip: scrolls sideways inside itself, never the page */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px;
  overflow-x: auto; padding: 6px 4px 16px; scroll-snap-type: x mandatory;
  scrollbar-color: var(--purple) transparent;
}
.shots img { border-radius: 14px; border: 2px solid var(--line); scroll-snap-align: start; aspect-ratio: 9 / 16; width: 100%; object-fit: cover; }

.cabinets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 22px; }
.cabinets li { padding-left: 18px; position: relative; }
.cabinets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--c, var(--pink)); box-shadow: 0 0 8px var(--c, var(--pink)); }
.cabinets b { font-weight: 600; }

.beta {
  border: 3px solid var(--purple); border-radius: 18px; padding: 24px 20px 12px; text-align: center;
  background: linear-gradient(180deg, #1c0f2e, #120a1e); box-shadow: 0 0 22px #b45cff55;
}

/* Legal pages */
.doc { padding: 40px 0 56px; }
.doc h1 { font-family: var(--pixel); font-weight: normal; font-size: clamp(18px, 4vw, 28px); line-height: 1.5; color: var(--pink); text-shadow: 0 0 12px #ff4fd888; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.doc h2 { margin-top: 36px; font-size: clamp(13px, 2.6vw, 16px); }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--panel); border: 2px solid var(--cyan); border-radius: 14px; padding: 16px 18px 4px; box-shadow: 0 0 12px #40f0ff33; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); }
.doc th { background: var(--bg-2); color: var(--gold); font-weight: 600; }
.doc details { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.doc details[open] { border-color: var(--purple); }
.doc summary { cursor: pointer; font-weight: 600; }
.doc details > *:not(summary) { margin-top: 10px; }
code { font-family: ui-monospace, monospace; font-size: .92em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }

/* Footer */
.site-footer { border-top: 2px solid var(--purple); box-shadow: 0 -2px 18px #b45cff44; padding: 26px 0 34px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; padding-bottom: 120px; }
  .btn { width: 100%; }
  .nav { gap: 6px 12px; }
  .nav a { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
