.fabe-bar {
  --fabe-bg: #2c1200;
  --fabe-text: #ffffff;
  --fabe-accent: #b1bf7a;
  --fabe-accent-text: #ffffff;
  --fabe-divider: rgba(255,255,255,.18);
  position: fixed;
  z-index: 99999;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  color: var(--fabe-text);
  pointer-events: none;
}

.fabe-bar *,
.fabe-bar *::before,
.fabe-bar *::after { box-sizing: border-box; }

.fabe-bar__inner {
  display: grid;
  grid-template-columns: repeat(var(--fabe-count, 3), minmax(0, 1fr));
  width: 100%;
  overflow: hidden;
  background: var(--fabe-bg);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: auto;
}

.fabe-bar__item {
  min-width: 0;
  min-height: 72px;
  padding: 9px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--fabe-text) !important;
  background: var(--fabe-bg);
  text-decoration: none !important;
  border-right: 1px solid var(--fabe-divider);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition: filter .18s ease, background-color .18s ease, color .18s ease;
}

.fabe-bar__item:last-child { border-right: 0; }
.fabe-bar__item--accent {
  color: var(--fabe-accent-text) !important;
  background: var(--fabe-accent);
}

.fabe-bar__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}
.fabe-bar__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.fabe-bar__label {
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fabe-bar__item:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: -4px;
}

@media (hover: hover) and (pointer: fine) {
  .fabe-bar__item:hover { filter: brightness(1.08); }
}

@media (max-width: 390px) {
  .fabe-bar__item { gap: 5px; padding-left: 4px; padding-right: 4px; }
  .fabe-bar__label { font-size: 13px; }
  .fabe-bar__icon { font-size: 21px; }
}

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