:root {
  --footer-height: 32px;
}

.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 12px;
  opacity: 0.65;
  padding: 6px 10px;
  text-align: center;
  background: rgba(16, 18, 20, 0.7);
  color: rgba(255, 255, 255, 0.85);
  z-index: 1000;
  height: var(--footer-height);
  line-height: 1.6;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.app-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
}

.app-footer a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  margin-right: 2px;
}

.footer-icon-img {
  width: 12px;
  height: 12px;
  display: block;
  filter: brightness(0) invert(1);
}

.app-layout {
  height: calc(100vh - var(--footer-height));
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 900px), (max-height: 700px), (orientation: portrait), (pointer: coarse) and (hover: none) {
  :root {
    --footer-height: 56px;
  }

  .app-layout {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    padding-bottom: var(--footer-height);
  }

  .app-footer {
    font-size: 11px;
    padding: 6px 8px;
    line-height: 1.4;
    white-space: normal;
  }
}
