/* Download Client tile (r221). The forum's "Mainframe" nav tile, in matrix-code yellow:
   a dark square, the pixel monitor icon and a monospace label. Shown only once the owner has
   uploaded a client in Architect; js/client-download.js fills in the link. No inline style (CSP). */
:root {
  --code-yellow: #ffe600;
  --code-yellow-hot: #fff6a8;
  --code-yellow-line: rgba(255, 230, 0, 0.32);
}

.client-tile {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 112px;
  height: 112px;
  padding: 10px 8px 8px;
  border: 1px solid var(--code-yellow-line);
  border-radius: 4px;
  background: rgba(8, 7, 0, 0.78);
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 230, 0, 0.06);
  color: var(--code-yellow-hot);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: var(--ink-shadow);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.client-tile[hidden] {
  display: none;
}
.client-tile img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(255, 230, 0, 0.4));
  transition: transform 0.2s ease;
}
.client-tile-note {
  color: rgba(255, 230, 0, 0.62);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.client-tile:not(.is-off):hover,
.client-tile:not(.is-off):focus-visible {
  border-color: rgba(255, 230, 0, 0.6);
  background: rgba(40, 34, 0, 0.82);
  color: #fffbe0;
}
.client-tile:not(.is-off):hover img {
  transform: translateY(-2px);
}
.client-tile:focus-visible {
  outline: 2px solid var(--code-yellow);
  outline-offset: 3px;
}
.client-tile.is-off {
  cursor: default;
  opacity: 0.6;
}
.client-tile.is-off img {
  filter: grayscale(0.6);
}

/* Phones (owner-reported overlap, 2026-11-06): the wrapper around both tiles (index.html,
   right after the glass panel) becomes a real row that sits below the login frame, in the
   same scrolling area as the panel, instead of floating fixed over it. On desktop this media
   query never applies, so .corner-tiles stays a real-but-childless 0-height box (its children
   are position:fixed and escape it) and the two tiles keep today's fixed viewport corners. */
@media (max-width: 600px) {
  .corner-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 max(14px, env(safe-area-inset-bottom));
  }
  .client-tile {
    position: static;
    width: 96px;
    height: 96px;
    gap: 3px;
    padding: 6px;
    font-size: 10px;
  }
  .client-tile-note {
    font-size: 8.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .client-tile,
  .client-tile img {
    transition: none;
  }
}
