/* BreakPlay site footer - one footer for every page (games, guides, hubs).
   Self-contained: game pages do not load styles.css, so nothing here relies on it. */
.bp-footer {
  --bpf-bg: #060915;
  --bpf-line: rgba(148, 163, 184, 0.18);
  --bpf-ink: #e7eaf6;
  --bpf-muted: #9aa3bd;
  --bpf-accent: #b7ff3c;
  position: relative;
  z-index: 1;
  clear: both;
  margin: 32px 0 0;
  padding: 36px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--bpf-bg);
  border-top: 1px solid var(--bpf-line);
  color: var(--bpf-muted);
  font: 400 15px/1.6 "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
}
.bp-footer *, .bp-footer *::before, .bp-footer *::after { box-sizing: border-box; }
.bp-footer__inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 28px; }
.bp-footer__top { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); }
.bp-footer__brand p { margin: 12px 0 16px; max-width: 420px; }
.bp-footer__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--bpf-ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.bp-footer__sigil {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #b7ff3c, #4be3ff); color: #071018; font-weight: 900; font-size: 0.95rem;
}
.bp-footer__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-footer__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--bpf-line); color: var(--bpf-ink); text-decoration: none; font-weight: 700;
}
.bp-footer__btn--primary { background: var(--bpf-accent); border-color: var(--bpf-accent); color: #0b1204; }
.bp-footer__cols { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Site-wide heading/link styles (styles.css, bp-site-mobile.css) must not leak in. */
footer.bp-footer h2 {
  margin: 0 0 10px !important; padding: 0 !important; color: var(--bpf-ink) !important;
  font: 800 0.8rem/1.3 "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  letter-spacing: 0.08em !important; text-transform: uppercase !important; text-align: left !important;
  background: none !important; -webkit-text-fill-color: currentColor !important; border: 0 !important;
}
footer.bp-footer p, footer.bp-footer a, footer.bp-footer summary, footer.bp-footer li { font-family: "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif; }
footer.bp-footer li::before, footer.bp-footer li::marker { content: none; }
.bp-footer ul { list-style: none; margin: 0; padding: 0; }
.bp-footer__cols li a {
  display: inline-flex; align-items: center; min-height: 36px; width: auto; padding: 0;
  color: var(--bpf-muted); text-decoration: none; background: none; border: 0; border-radius: 0;
}
.bp-footer a:hover, .bp-footer a:focus-visible { color: var(--bpf-ink); text-decoration: underline; text-underline-offset: 3px; }
.bp-footer a:focus-visible, .bp-footer summary:focus-visible { outline: 2px solid var(--bpf-accent); outline-offset: 2px; }
.bp-footer__dir { border: 1px solid var(--bpf-line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.bp-footer__dir > summary {
  cursor: pointer; min-height: 48px; padding: 12px 16px; color: var(--bpf-ink); font-weight: 700; list-style-position: inside;
}
.bp-footer__dir-body { padding: 4px 16px 16px; display: grid; gap: 18px; }
.bp-footer__dir-body ul { display: grid; gap: 2px 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.bp-footer__dir-body a { display: inline-block; padding: 6px 0; min-height: 0; color: var(--bpf-muted); text-decoration: none; font-size: 0.9rem; }
.bp-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center;
  padding-top: 18px; border-top: 1px solid var(--bpf-line); font-size: 0.85rem;
}
.bp-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.bp-footer__bottom a { color: var(--bpf-muted); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.bp-footer__bottom p, .bp-footer .bp-last-updated { margin: 0; font-size: 0.8rem; color: var(--bpf-muted); }

@media (max-width: 860px) {
  .bp-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .bp-footer { padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
  .bp-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .bp-footer__cols > div:last-child { grid-column: 1 / -1; }
  .bp-footer__cta .bp-footer__btn { flex: 1 1 auto; }
  .bp-footer__dir-body ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Developer Social Links & Feedback */
.bp-footer__social {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px;
}
.bp-footer__social-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--bpf-line);
  border-radius: 10px; color: var(--bpf-muted); text-decoration: none; font-size: 0.9rem;
  transition: all 0.2s ease;
}
.bp-footer__social-link:hover, .bp-footer__social-link:focus-visible {
  background: rgba(255, 255, 255, 0.1); color: var(--bpf-ink); text-decoration: none;
  border-color: rgba(255, 255, 255, 0.2);
}
.bp-footer__social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.bp-footer__social-link--instagram:hover { border-color: #e1306c; color: #e1306c; }
.bp-footer__social-link--twitter:hover { border-color: #1da1f2; color: #1da1f2; }
.bp-footer__social-link--feedback {
  background: linear-gradient(135deg, rgba(183, 255, 60, 0.15), rgba(75, 227, 255, 0.1));
  border-color: rgba(183, 255, 60, 0.3);
}
.bp-footer__social-link--feedback:hover {
  background: linear-gradient(135deg, rgba(183, 255, 60, 0.25), rgba(75, 227, 255, 0.2));
  border-color: var(--bpf-accent); color: var(--bpf-accent);
}
.bp-footer__dev-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--bpf-muted); opacity: 0.7;
}
@media (max-width: 520px) {
  .bp-footer__social { gap: 8px; }
  .bp-footer__social-link { padding: 6px 10px; font-size: 0.8rem; }
}
