:root {
  color-scheme: dark;
  --tile-size: 96px;
  --panel: rgba(5, 7, 10, 0.92);
  --line: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: #f7f3e8;
  font-family: Arial, Helvetica, sans-serif;
  background: #101417;
}

.skin-wall {
  position: fixed;
  inset: 0 0 -100vh;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--tile-size));
  grid-auto-rows: var(--tile-size);
  justify-content: center;
  animation: wall-scroll 34s linear infinite;
  will-change: transform;
}

.skin {
  position: relative;
  width: var(--tile-size);
  height: var(--tile-size);
  image-rendering: pixelated;
  contain: layout;
}

.skin img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.skin span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  max-width: 180px;
  padding: 5px 8px;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fff6d0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.skin:hover {
  z-index: 4;
}

.skin:hover span {
  opacity: 1;
}

.thanks {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.message {
  width: min(620px, 100%);
  padding: clamp(28px, 7vw, 56px);
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.72);
}

.message p {
  margin: 0 auto;
  max-width: 520px;
  color: #eee7d8;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.45;
}

.message p + p {
  margin-top: 20px;
}

@keyframes wall-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@media (max-width: 640px) {
  :root {
    --tile-size: 72px;
  }

  .message {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skin-wall {
    animation: none;
  }

  .skin,
  .skin span {
    transition: none;
  }
}
