* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background-color: #0f0f13;
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(168, 85, 247, 0.1) 0%,
      transparent 50%
    );
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.wrapper {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.icon > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  height: 100px;
  min-width: 100px;
  justify-content: center;
  border-radius: 16px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.icon > a:hover,
.icon > a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  outline: none;
}

.icon img {
  width: 44px;
  height: 44px;
  filter: invert(1) opacity(0.6);
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.icon img.icon-img-light {
  filter: opacity(0.6);
}

.icon > a:hover img,
.icon > a:focus-visible img {
  filter: invert(1) opacity(1);
  transform: scale(1.08);
}

.icon > a:hover img.icon-img-light,
.icon > a:focus-visible img.icon-img-light {
  filter: opacity(1);
}

@media (max-width: 560px) {
  .wrapper {
    width: min(100% - 32px, 320px);
    padding: 24px;
  }

  .icons {
    justify-content: space-between;
  }

  .icon > a {
    width: 120px;
  }
}
