*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #08080f;
  font-family: 'Microsoft YaHei', '微软雅黑', 'Microsoft JhengHei', '微软正黑体', 'PingFang SC', '苹方', '等线', 'DengXian', 'SimHei', '黑体', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#spider-canvas, #ripple-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#spider-canvas {
  z-index: 0;
}

#ripple-canvas {
  z-index: 1;
}

#app {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  pointer-events: auto;
  transition: border-color 0.4s;
}

.avatar-ring:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.name {
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 6px;
  margin-top: 18px;
  text-transform: uppercase;
  user-select: none;
  text-shadow: 0 0 30px rgba(255,255,255,0.15);
}

.radial-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.nav-link {
  position: absolute;
  pointer-events: auto;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
  transition: left 0.35s cubic-bezier(.4,0,.2,1), top 0.35s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, color 0.2s, text-shadow 0.2s;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 4px;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
}

.nav-link.nav-highlight {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(200, 200, 255, 0.3);
}

.quote {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  animation: quoteIn 1s ease 0.8s forwards;
}

.quote .hitokoto {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 19px;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 1px;
}

.quote .from {
  display: inline-block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  margin-top: 8px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

@keyframes quoteIn {
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .avatar-ring {
    width: 76px;
    height: 76px;
  }
  .name {
    font-size: 20px;
    margin-top: 14px;
    letter-spacing: 4px;
  }
  .nav-link {
    font-size: 13px;
    padding: 4px 8px;
    letter-spacing: 0.5px;
  }
  .quote {
    bottom: 30px;
  }
  .quote .hitokoto {
    font-size: 16px;
  }
  .quote .from {
    font-size: 13px;
  }
}
