:root {
  --bg: #05050a;
  --panel: rgba(5, 5, 10, .78);
  --line: rgba(110, 252, 232, .22);
  --text: #fff;
  --muted: #c7c4d8;
  --cyan: #14f195;
  --teal: #6efce8;
  --purple: #9945ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(20, 241, 149, .18), transparent 30rem),
    radial-gradient(circle at 78% 18%, rgba(153, 69, 255, .22), transparent 34rem),
    linear-gradient(180deg, #080812, var(--bg));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.hero-overlay {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 0 18px 18px;
  pointer-events: none;
}

.hero-content {
  width: min(920px, 100%);
  padding: 18px 20px 16px;
  border: 2px solid #000;
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, .92);
  color: #05050a;
  text-align: center;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .38);
  pointer-events: auto;
}

.hero-content h1 {
  margin: 0;
  color: #05050a;
  font-size: clamp(2.5rem, 7vw, 6.4rem);
  line-height: .88;
  font-weight: 1000;
  text-transform: uppercase;
}

.hero-content p {
  margin: 0;
  color: #272435;
  font-weight: 900;
}

#count {
  margin-bottom: 10px;
  color: #5d22ce;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.social-links a {
  min-width: 112px;
  padding: 10px 14px;
  border: 2px solid #05050a;
  border-radius: 999px;
  color: #05050a;
  background: linear-gradient(90deg, #14f195, #6efce8);
  font-size: .78rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #05050a;
  transition: transform .16s ease, box-shadow .16s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #05050a;
}

#status.is-ok { color: var(--cyan); }
#status.is-error { color: #ff7fa8; }

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  min-height: 100vh;
  padding: 0;
}

.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 62%, rgba(20, 241, 149, .11), transparent 48%),
    rgba(12, 13, 28, .72);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .05);
  pointer-events: none;
}

.tile:hover,
.tile:focus-visible {
  z-index: 2;
  transform: scale(1.08);
  outline: 0;
  background:
    radial-gradient(circle at 50% 60%, rgba(110, 252, 232, .22), transparent 52%),
    rgba(18, 16, 39, .96);
  box-shadow: 0 0 0 1px rgba(110, 252, 232, .45), 0 18px 44px rgba(0, 0, 0, .45);
}

.tile.is-copied {
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 34px rgba(20, 241, 149, .36);
}

.tile img {
  width: 98%;
  height: 98%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .38));
  pointer-events: none;
}

.tile span {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  overflow: hidden;
  color: rgba(255, 255, 255, .74);
  font-size: .63rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .16s ease, transform .16s ease;
}

.tile:hover span,
.tile:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero-overlay {
    padding: 0 10px 10px;
  }

  .hero-content {
    padding: 14px 12px 12px;
    border-radius: 20px 20px 0 0;
  }

  .social-links a {
    min-width: 0;
    padding: 9px 11px;
  }

  .wall {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
