@font-face {
  font-family: "ZRAW Digital";
  src: url("DSEG7Classic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.bottom-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.bottom-actions { justify-self: end; }

.site-status {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.site-clock {
  display: block;
  color: #ff1020;
  font-family: "ZRAW Digital", monospace;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.site-status-details {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

#visitorCount { min-width: 5ch; }

@media (max-width: 900px) {
  .bottom-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding-inline: 14px;
  }

  .bottom-bar > p {
    grid-column: 1;
    grid-row: 1;
    font-size: 11px;
    line-height: 1.4;
  }

  .bottom-actions {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    gap: 8px;
    min-width: 0;
  }

  .bottom-actions .button {
    padding-inline: 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  .site-status {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
  }

  .site-clock { font-size: 30px; }
  .site-status-details { font-size: 9px; gap: 4px; }
  .panel { padding-bottom: calc(144px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .bottom-bar { column-gap: 8px; padding-inline: 10px; }
  .bottom-actions .button { font-size: 11px; padding-inline: 4px; }
  .site-clock { font-size: 27px; }
}
