/* Discord tile (owner, 2026-10-28): the Download Client tile's mirror in the bottom-left
   corner, in Discord purple: the same size, frame, type and motion (css/client-download.css).
   No inline style (CSP). */
:root {
  --discord: #5865f2;
  --discord-hot: #d4d8ff;
  --discord-line: rgba(88, 101, 242, 0.42);
}

.discord-tile {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  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(--discord-line);
  border-radius: 4px;
  background: rgba(4, 5, 18, 0.78);
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(88, 101, 242, 0.08);
  color: var(--discord-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;
}
.discord-tile img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(88, 101, 242, 0.55));
  transition: transform 0.2s ease;
}
.discord-tile:hover,
.discord-tile:focus-visible {
  border-color: rgba(88, 101, 242, 0.75);
  background: rgba(14, 16, 48, 0.85);
  color: #eef0ff;
}
.discord-tile:hover img {
  transform: translateY(-2px);
}
.discord-tile:focus-visible {
  outline: 2px solid var(--discord);
  outline-offset: 3px;
}

/* Phones: the tiles leave the viewport-fixed corners and drop into the page below the login
   frame instead (owner-reported overlap, 2026-11-06) — see the shared .corner-tiles rule in
   css/client-download.css. Desktop keeps the fixed corners above untouched. */
@media (max-width: 600px) {
  .discord-tile {
    position: static;
    width: 96px;
    height: 96px;
    gap: 3px;
    padding: 6px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .discord-tile,
  .discord-tile img {
    transition: none;
  }
}
