/* BitBolt pages only (/bitbolt, /bitbolt/privacy, /bitbolt/terms). Every class is
   prefixed bb- so nothing collides with /style.css. Built from the BitBolt website
   kit (bitbolt/README.md): arcade neon, the game's own font, flat colors. */

@font-face {
  font-family: "BitBolt Sans";
  src: url("/bitbolt/fonts/BitBoltSans.woff2") format("woff2");
  font-display: swap;
}


/* ---- Fitting into sofritoconrecao.com ---- */

.bb-body::before,
.bb-body::after { content: none; }            /* no grain, scanlines or vignette over the neon */
.bb-body > nav { background: rgba(11, 8, 32, .94); border-bottom-color: #2a2450; }
.bb-body > footer { background: #050506; }   /* the site footer stays the site's */
main.bb { max-width: none; width: 100%; margin: 0; padding: 0; } /* site main is 920 px with padding */


/* ---- Tokens (README "Palette") ---- */

.bb-body {
  --bb-night: #0b0820;
  --bb-dusk: #210a3d;
  --bb-panel: #170f38;
  --bb-cyan: #2ef2ff;
  --bb-pink: #ff2e97;
  --bb-pink-soft: #ff5fa2;
  --bb-gold: #ffd166;
  --bb-yellow: #ffe94a;
  --bb-dim: #3b3566;
  --bb-text: #f2f0ff;
  --bb-outline: #7a0f4a;

  --bb-pixel: "BitBolt Sans", ui-monospace, monospace;
  --bb-horizon: 62%;

  color-scheme: dark;
  background: var(--bb-night);
  color: var(--bb-text);
}

.bb {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--bb-text);
  /* a still night sky behind the whole page: two offset tiles of tiny stars */
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 233, 74, .55) 1px, transparent 1.5px) 0 0 / 173px 173px,
    radial-gradient(circle at 70% 80%, rgba(242, 240, 255, .4) 1px, transparent 1.5px) 0 0 / 251px 251px,
    var(--bb-night);
}

.bb a { color: var(--bb-cyan); text-decoration: underline; text-underline-offset: 3px; }
.bb a:hover { color: var(--bb-text); }
.bb a:focus-visible,
.bb button:focus-visible,
.bb [tabindex]:focus-visible { outline: 3px solid var(--bb-yellow); outline-offset: 3px; }

/* The pixel font: whole-pixel sizes only (16, 24, 32, 48, 64), no faux bold,
   no smoothing tricks. Ligatures off: the font's "fi" and "fl" ligature glyphs
   are wrong ("finish" renders as "Anish"). */
.bb h1, .bb h2, .bb h3,
.bb-pixel, .bb-btn, .bb-hero-btn, .bb-tag,
.bb-footer-links {
  font-family: var(--bb-pixel);
  font-weight: 400;
  font-synthesis: none;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  letter-spacing: 0;
  line-height: 1.25;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.bb-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .bb-wrap { padding-inline: 32px; } }

.bb-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ---- Neon background (README "Patterns") ----
   The horizon sits at --bb-horizon; the grid floor scrolls below it. */

.bb-sky {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(var(--bb-night), var(--bb-dusk) var(--bb-horizon), var(--bb-night));
}
.bb-sky::before { /* horizon glow */
  content: ""; position: absolute; left: 0; right: 0; top: var(--bb-horizon); height: 4px;
  background: var(--bb-pink);
  box-shadow: 0 0 40px 12px rgba(255, 46, 151, .45);
  z-index: -1;
}
.bb-sky::after { /* grid floor */
  content: ""; position: absolute; left: -50%; right: -50%; top: var(--bb-horizon); bottom: -40%;
  background:
    linear-gradient(rgba(255, 46, 151, .8) 3px, transparent 3px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(46, 242, 255, .55) 3px, transparent 3px) 0 0 / 64px 100%;
  transform: perspective(300px) rotateX(60deg);
  transform-origin: top;
  -webkit-mask-image: linear-gradient(transparent, #000 40%);
  mask-image: linear-gradient(transparent, #000 40%);
  animation: bb-grid 1.6s linear infinite;
  z-index: -2;
}
@keyframes bb-grid { to { background-position: 0 48px, 0 0; } }

.bb-stars { /* twinkling stars, above the horizon only */
  position: absolute; left: 0; right: 0; top: 0; bottom: calc(100% - var(--bb-horizon));
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle, var(--bb-yellow) 1.5px, transparent 2px) 12% 18% / 4px 4px no-repeat,
    radial-gradient(circle, var(--bb-text) 1.5px, transparent 2px) 31% 9% / 4px 4px no-repeat,
    radial-gradient(circle, var(--bb-yellow) 1.5px, transparent 2px) 48% 26% / 4px 4px no-repeat,
    radial-gradient(circle, var(--bb-text) 1.5px, transparent 2px) 66% 12% / 4px 4px no-repeat,
    radial-gradient(circle, var(--bb-yellow) 1.5px, transparent 2px) 83% 31% / 4px 4px no-repeat,
    radial-gradient(circle, var(--bb-text) 1.5px, transparent 2px) 92% 7% / 4px 4px no-repeat,
    radial-gradient(circle, var(--bb-text) 1.5px, transparent 2px) 6% 52% / 4px 4px no-repeat,
    radial-gradient(circle, var(--bb-yellow) 1.5px, transparent 2px) 76% 58% / 4px 4px no-repeat;
  animation: bb-twinkle 3.2s steps(2) infinite alternate;
}
@keyframes bb-twinkle { to { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  .bb-sky::after, .bb-stars { animation: none; }
}


/* ---- Neon card, buttons, glow heading, tag ---- */

.bb-card {
  background: var(--bb-panel);
  border: 3px solid var(--bb-cyan);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(46, 242, 255, .45);
}

.bb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 20px;
  font-size: 24px; color: var(--bb-text);
  background: var(--bb-panel);
  border: 3px solid var(--bb-cyan); border-radius: 8px;
  box-shadow: 0 0 12px rgba(46, 242, 255, .45);
  cursor: pointer;
  transition: box-shadow .15s ease, transform .12s cubic-bezier(.3, 1.6, .5, 1);
}
.bb-btn:hover { box-shadow: 0 0 16px rgba(46, 242, 255, .6); }
.bb-btn:active { transform: scale(.94); border-color: #fff; }
.bb-btn[aria-disabled="true"] { opacity: .4; cursor: default; box-shadow: none; }
.bb-btn[aria-disabled="true"]:active { transform: none; border-color: var(--bb-cyan); }
.bb-btn[hidden] { display: none; } /* display above beats the browser's own [hidden] rule */

/* The one main action: the Google Play link, with an OUT NOW tag above it. */
.bb-cta { display: grid; gap: 12px; justify-items: inherit; }
.bb-cta .bb-tag { font-size: 24px; }
.bb-small { margin: 0; font-size: 16px; color: var(--bb-text); }
.bb-hero-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 10px 24px;
  font-size: 24px; color: #fff; text-align: center;
  background: var(--bb-pink);
  border: 3px solid #fff; border-radius: 8px;
  box-shadow: 0 0 12px rgba(255, 46, 151, .7);
  text-shadow:
    -2px -2px 0 var(--bb-outline), 0 -2px 0 var(--bb-outline), 2px -2px 0 var(--bb-outline),
    -2px 0 0 var(--bb-outline), 2px 0 0 var(--bb-outline),
    -2px 2px 0 var(--bb-outline), 0 2px 0 var(--bb-outline), 2px 2px 0 var(--bb-outline);
  text-decoration: none;
  transition: box-shadow .15s ease, transform .12s cubic-bezier(.3, 1.6, .5, 1);
}
.bb a.bb-hero-btn, .bb a.bb-hero-btn:visited { color: #fff; text-decoration: none; }
a.bb-hero-btn:hover { box-shadow: 0 0 18px rgba(255, 46, 151, .9); }
a.bb-hero-btn:active { transform: scale(.94); }

.bb-glow { color: #fff; text-shadow: 0 0 12px var(--bb-cyan); }
.bb-glow--pink { text-shadow: 0 0 12px var(--bb-pink); }

.bb-tag {
  display: inline-block; padding: 2px 10px;
  font-size: 16px; color: #fff;
  background: var(--bb-pink-soft); border-radius: 6px;
}


/* ---- Game page: hero ---- */

.bb-hero {
  --bb-floor: clamp(120px, 18vw, 200px);       /* height of the grid floor under the content */
  --bb-horizon: calc(100% - var(--bb-floor));
  padding-block: 32px var(--bb-floor);
  text-align: center;
}
.bb-hero-inner { display: grid; gap: 24px; justify-items: center; }

.bb-logo { margin: 0; line-height: 0; }
.bb-logo img { width: min(100%, 462px); height: auto; image-rendering: pixelated; }
@media (min-width: 600px) { .bb-logo img { width: min(100%, 720px); } }

.bb-tagline { margin: 0; font-size: 32px; }
@media (min-width: 640px) { .bb-tagline { font-size: 48px; } }

.bb-lead { margin: 0; max-width: 34ch; font-size: 24px; }

.bb-video { position: relative; width: min(100%, 800px); margin: 0; overflow: hidden; line-height: 0; }
.bb-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; background: var(--bb-night); }
.bb-video-toggle { position: absolute; right: 12px; bottom: 12px; min-width: 112px; font-size: 24px; line-height: 1; }

@media (min-width: 960px) {
  .bb-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "logo video" "tagline video" "lead video" "cta video";
    align-items: center; justify-items: start; text-align: left; column-gap: 48px; row-gap: 20px;
  }
  .bb-logo { grid-area: logo; }
  .bb-tagline { grid-area: tagline; }
  .bb-lead { grid-area: lead; }
  .bb-cta { grid-area: cta; }
  .bb-video { grid-area: video; }
}


/* ---- Game page: sections ---- */

.bb-section { padding-block: 48px; }
.bb-section h2 { margin: 0 0 24px; font-size: 32px; }
@media (min-width: 640px) { .bb-section { padding-block: 64px; } .bb-section h2 { font-size: 48px; } }

/* Screenshot strip: swipe on phones (scroll-snap), arrows on desktop (added by script). */
.bb-shots { position: relative; }
.bb-shots-track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--bb-cyan) transparent;
  padding: 12px 4px 16px;
  border-radius: 8px;
}
.bb-shots-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.bb-shots-list li { flex: 0 0 min(88%, 720px); scroll-snap-align: center; }
.bb-shots-list .bb-card { margin: 0; overflow: hidden; line-height: 0; }
.bb-shots-list img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.bb-shots-arrows { display: none; }
@media (hover: hover) and (min-width: 768px) {
  .bb-shots-arrows:not([hidden]) { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
}
@media (min-width: 1024px) { .bb-shots-list li { flex-basis: calc((100% - 16px) / 1.6); } }

/* Features */
.bb-features-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.bb-runner { width: 128px; height: auto; flex: none; margin-bottom: 8px; }
@media (min-width: 640px) { .bb-runner { width: 192px; } }
.bb-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .bb-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bb-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bb-features li { padding: 20px; }
.bb-features h3 { margin: 0 0 8px; font-size: 24px; }
.bb-features p { margin: 0; }


/* ---- Footer row (all three pages) ---- */

.bb-footer { padding-block: 32px 40px; border-top: 3px solid var(--bb-dim); text-align: center; }
.bb-footer-links {
  margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px;
  font-family: var(--bb-pixel); font-size: 24px; line-height: 1.25;
}
.bb-footer-links a { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 4px; }
.bb-footer-links span { color: var(--bb-dim); }
.bb-footer-small { margin: 8px auto 0; max-width: 60ch; font-size: 14px; color: #c9c4ea; }


/* ---- Legal pages ---- */

.bb-band { --bb-horizon: 68%; padding-block: 24px 56px; }
.bb-band a { display: inline-block; line-height: 0; }
.bb-band img { width: min(100%, 360px); height: auto; image-rendering: pixelated; }

.bb-doc { padding-block: 32px 48px; }
.bb-doc-body {
  max-width: 70ch; margin: 0 auto; padding: 24px 20px;
  background: var(--bb-panel); border: 3px solid var(--bb-dim); border-radius: 8px;
  overflow-wrap: break-word;
}
@media (min-width: 640px) { .bb-doc-body { padding: 40px 48px; } }
.bb-doc-body h1 { margin: 0 0 8px; font-size: 32px; }
.bb-doc-body h2 { margin: 40px 0 12px; font-size: 24px; color: var(--bb-gold); }
.bb-doc-body p, .bb-doc-body ul { margin: 0 0 16px; }
.bb-doc-body ul { padding-left: 1.25em; }
.bb-doc-body li { margin-bottom: 8px; }
.bb-doc-body strong { color: #fff; }
.bb-doc-date { color: #c9c4ea; }
.bb-doc-contact { margin: 0; font-style: normal; }
.bb-doc-nav { max-width: 70ch; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 12px; }
.bb-doc-nav .bb-btn { color: var(--bb-text); text-decoration: none; font-size: 24px; }
