:root {
  --slide-pfp-duration: 0.8s;
  --slide-h1-delay: 0.6s;
  --slide-h1-duration: 0.8s;
  --glow-delay: 1.6s;
  --glow-duration: 1.8s;
  --dropdown-delay: 0.9s;
  --dropdown-duration: 0.4s;
  --link-fade-duration: 0.8s;
  --link-stagger: 0.15s;
  --wallet-fade-duration: 0.2s;
  --wallet-slide-distance: 40px;
}

body {
  margin: 0;
  background: linear-gradient(135deg, rgb(0,0,0), rgb(9,9,9));
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

header {
  display: flex;
  justify-content: space-between;
  top: 0;
  z-index: 5;
  position: sticky;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  padding: 8px 12px;
}

.header-logo img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  z-index: 5;
  backdrop-filter: blur(8px);
  animation: slidePfp var(--slide-pfp-duration) ease-in-out forwards;
}

.header-logo h1 {
  display: flex;
  gap: 8px;
  color: rgb(242,242,242);
  backdrop-filter: blur(8px);
  background: rgba(30,30,30,0.6);
  font-size: 2.6rem;
  line-height: 64px;
  padding: 0 12px;
  margin: 0 0 0 -8px;
  border-radius: 0 12px 12px 0;
  opacity: 0;
  animation: slideH1 var(--slide-h1-duration) ease-out var(--slide-h1-delay) forwards,
    glow var(--glow-duration) ease-in-out var(--glow-delay)
}

nav {
  display: flex;
  align-self: flex-start;
  gap: 16px;
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(8px);
  border-radius: 0 0 0 12px;
  padding: 12px 24px;
  transform: translateY(-100%);
  animation: dropNav var(--dropdown-duration) ease-out var(--dropdown-delay) forwards;
}

nav a {
  color: rgba(242,242,242,0);
  text-decoration: none;
  font-size: 1.8rem;
  animation: fadeLink var(--link-fade-duration) ease-in forwards;
}
nav a:nth-child(1) {
  animation-delay: calc(var(--dropdown-delay) + var(--dropdown-duration));
}
nav a:nth-child(2) {
  animation-delay: calc(var(--dropdown-delay) + var(--dropdown-duration) + var(--link-stagger));
}
nav a:hover {
  text-decoration: underline;
}

#wallets {
  display: grid;
  gap: 8px;;
  width: calc(100dvw - 24px);
  max-width: 1150px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 auto 24px auto;
}

.wallet-item {
  backdrop-filter: blur(8px);
  border-radius: 12px;
  background: rgba(20,20,20,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
  cursor: default;
  box-shadow: 0 0 2px 1px rgba(0,0,0,0) inset;
  transition: 0.2s all ease;
  opacity: 0;
  animation: fadeSlide var(--wallet-fade-duration) ease-in forwards;
}
.wallet-item:nth-child(odd) {
  transform: translateX(calc(-1 * var(--wallet-slide-distance)));
}
.wallet-item:nth-child(even) {
  transform: translateX(var(--wallet-slide-distance));
}
.wallet-item:hover {
  background: rgba(30,31,33,0.8);
  box-shadow: 0 0 2px 1px rgba(88,88,88,0.9) inset;
}

.wallet-item img {
  padding: 24px 0;
  width: 64px;
  height: 64px;
}

.wallet-item code {
  color: #d8d8d8;
  font-size: 1.2rem;
  word-break: break-all;
  text-align: center;
}

@media (max-width: 1000px) {
  #wallets {
    padding: 10px;
    width: calc(100% - 32px);
  }
  .wallet-item {
    padding: 0px 12px;
  }
  .wallet-item img {
    width: 32px;
    height: 32px;
  }
  .wallet-item code {
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  .header-logo {
    padding: 0;
  }
  .header-logo img {
    width: 64px;
    height: 64px;
    opacity: 0.9;
    border-radius: 0;
  }
  .header-logo h1 {
    color: rgb(242,242,242);
    font-size: 1.4rem;
    margin: 0;
    border-radius: 0;
  }
  nav {
    padding: 8px;
    display: flex;
    gap: 12px;
  }
  nav a {
    font-size: 1.4rem;
    padding: 12px 8px;
  }
  .wallet-item img {
    width: 32px;
    height: 24px;
  }
  .wallet-item code {
    font-size: 0.85rem;
  }
}

@keyframes slidePfp {
  0% {
    transform: translateX(-100%) translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

@keyframes glow {
  0%, 100% {
    text-shadow: none;
  }
  60% {
    text-shadow: 0 0 12px rgba(255,255,255,0.8);
  }
}

@keyframes slideH1 {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes dropNav {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeLink {
  0% {
    color: rgba(242,242,242,0);
  }
  100% {
    color: rgba(255,255,255,1);
  }
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}