:root {
  --ab-bg: #0b0a13;
  --ab-panel: rgba(16, 14, 28, 0.85);
  --ab-accent: #7cff6b;
  --ab-accent-2: #47c7ff;
  --ab-text: #e6e6f2;
  --ab-muted: #9aa0b5;
  --ab-border: rgba(255, 255, 255, 0.08);
}

#colophon.ab-footer,
.ab-footer {
  border-top: 1px solid var(--ab-border);
  padding: 40px 24px 20px;
  background: #0a0814;
  color: var(--ab-text);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

#colophon.ab-footer * {
  box-sizing: border-box;
}

#colophon.ab-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#colophon.ab-footer a,
.ab-footer a {
  color: inherit;
  text-decoration: none;
}

.ab-footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  align-items: start;
}

.ab-footer-brand {
  display: grid;
  gap: 12px;
}

.ab-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ab-footer-logo .ab-logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.ab-footer-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.ab-footer-logo-text .ab-aliens {
  color: var(--ab-accent);
  text-shadow: 0 0 14px rgba(124, 255, 107, 0.5);
}

.ab-footer-logo-text .ab-builds {
  color: #e6e6f2;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.ab-footer-brand p {
  margin: 0;
  color: #c2c7de;
  line-height: 1.6;
  font-weight: 400;
}

.ab-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ab-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ab-border);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.ab-social a i {
  color: #c2c7de;
  font-size: 15px;
}

.ab-social a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.ab-footer .ab-footer-links h4 {
  margin: 0 0 12px;
  font-family: "Press Start 2P", cursive !important;
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.2;
  font-weight: 700;
  color: #e6e6f2 !important;
}

.ab-link-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 24px;
}

.ab-link-columns a {
  color: #c2c7de;
  font-size: 14px;
  line-height: 1.8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 6px;
  text-align: center;
  display: block;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ab-link-columns a:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.ab-footer-bottom {
  max-width: 1280px;
  margin: 28px auto 0;
  color: #6f748e;
  font-size: 13px;
  text-align: center;
}

.ab-footer-divider {
  width: 34ch;
  max-width: 90%;
  margin: 24px auto 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(124, 255, 107, 0.1),
    rgba(124, 255, 107, 0.4),
    rgba(124, 255, 107, 0.1)
  );
  box-shadow: 0 0 18px rgba(124, 255, 107, 0.45);
}

.ab-cookie-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 11000;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.ab-cookie-toggle {
  width: 72px;
  height: 72px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  animation: abCookieFloat 2.8s ease-in-out infinite;
}

.ab-cookie-toggle:hover,
.ab-cookie-toggle:focus,
.ab-cookie-toggle:active,
.ab-cookie-toggle:focus-visible {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.ab-cookie-widget.is-open .ab-cookie-toggle {
  animation: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ab-cookie-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.4));
}

.ab-cookie-popup {
  width: min(340px, calc(100vw - 28px));
  background: rgba(11, 10, 19, 0.98);
  border: 1px solid rgba(124, 255, 107, 0.35);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 14px 14px 12px;
  display: none;
  gap: 12px;
  position: relative;
}

.ab-cookie-popup[hidden] {
  display: none !important;
}

.ab-cookie-widget.is-open .ab-cookie-popup {
  display: grid;
}

.ab-cookie-popup p {
  margin: 0;
  color: #d8dcee;
  line-height: 1.5;
  font-size: 14px;
  padding-right: 26px;
}

.ab-cookie-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
}

.ab-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-cookie-actions .button {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(
    135deg,
    rgba(124, 255, 107, 0.16),
    rgba(71, 199, 255, 0.12)
  ) !important;
  color: #e6e6f2 !important;
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  line-height: 1.2 !important;
  text-shadow: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-decoration: none !important;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.ab-cookie-actions .button.alt {
  background: transparent !important;
  border: 1px solid rgba(124, 255, 107, 0.5) !important;
}

.ab-cookie-actions .button:hover,
.ab-cookie-actions .button:focus,
.ab-cookie-actions .button:active,
.ab-cookie-actions .button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5) !important;
  background: linear-gradient(
    135deg,
    rgba(124, 255, 107, 0.16),
    rgba(71, 199, 255, 0.12)
  ) !important;
  color: #e6e6f2 !important;
}

.ab-cookie-actions .button.alt:hover,
.ab-cookie-actions .button.alt:focus,
.ab-cookie-actions .button.alt:active,
.ab-cookie-actions .button.alt:focus-visible {
  background: transparent !important;
  border-color: rgba(124, 255, 107, 0.5) !important;
}

@keyframes abCookieFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .ab-footer-wrap {
    grid-template-columns: 1fr;
  }

  .ab-link-columns {
    grid-template-columns: 1fr;
  }

  .ab-cookie-widget {
    right: 12px;
    bottom: 12px;
  }

  .ab-cookie-toggle {
    width: 64px;
    height: 64px;
  }
}
