@font-face {
  font-family: "Satoshi";
  src: url("/assets/satoshi.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Satoshi", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --text: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  cursor: url("/assets/cursor.png") 16 16, auto !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #050505;
  color: var(--text);
  font-family: "Satoshi", sans-serif;
}

.background-video-layer {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.background-video-layer iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
}

.background-shade {
  position: fixed;
  z-index: 1;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

body.has-background-video .background-video-layer,
body.has-background-video .background-shade {
  opacity: 1;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: #fff;
  color: #000;
}

.profile-stage {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 50px 15px;
  background: transparent;
  perspective: 1000px;
}

.profile-shell {
  position: relative;
  width: min(640px, 100%);
  height: 349px;
  flex: 0 0 auto;
  padding: 35px 15px;
  transform-style: preserve-3d;
  transition: transform 140ms ease-out;
  will-change: transform;
}

.avatar-wrap {
  position: absolute;
  top: 35px;
  left: 50%;
  width: 118px;
  height: 118px;
  transform: translateX(-50%);
}

.avatar {
  display: block;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
}

.uid-badge {
  position: absolute;
  z-index: 2;
  top: 87.6px;
  left: 50%;
  display: block;
  padding: 4.8px 11.2px;
  transform: translateX(-50%);
  border: 2px solid rgba(26, 26, 26, 0.2);
  border-radius: 15px;
  background: rgba(20, 20, 20, 0.39);
  color: #fafafa;
  font-size: 14.4px;
  font-weight: 400;
  line-height: 18.72px;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 0s linear 160ms;
  transform: translate(-50%, 4px);
}

.profile-shell:has(.display-name:hover) .uid-badge,
.profile-shell:has(.display-name:focus-visible) .uid-badge {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.display-name {
  position: absolute;
  top: 153px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 30px);
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  font-size: 39.5px;
  font-weight: 600;
  line-height: 53px;
  text-align: center;
  text-shadow: 0 0 16.5px #fff;
  white-space: nowrap;
}

.display-name:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 5px;
}

.display-name::after {
  position: absolute;
  inset: -8px -11px;
  color: transparent;
  content: attr(data-text);
  background-image: url("/assets/sparkle-white.gif");
  background-repeat: repeat;
  background-size: 90px 68px;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}

.typewriter {
  position: absolute;
  top: 211px;
  left: 50%;
  display: flex;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  font-size: 19px;
  font-weight: 570;
  line-height: 24px;
  white-space: nowrap;
}

.typewriter-cursor {
  margin-left: 1px;
  animation: typewriter-cursor 1s infinite;
}

.typewriter-cursor.is-finished {
  animation: none;
  opacity: 1;
}

.social-links {
  position: absolute;
  top: 267px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  transform: translateX(-50%);
}

.social-icon {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9e9eff;
}

.social-icon[href] {
  cursor: pointer !important;
}

.social-icon.is-custom-logo {
  width: 80px;
  flex-basis: 80px;
}

.social-icon[href]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.social-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(1px 0 7px #a3a3a3);
}

.social-icon.is-custom-logo img {
  width: 80px;
  height: 40px;
}

.social-fallback {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  font-size: 19px;
  font-weight: 600;
}

.social-icon:disabled {
  opacity: 1;
}

.views-count {
  position: absolute;
  bottom: 12px;
  left: 15px;
  display: inline-flex;
  height: 19px;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  line-height: 19px;
  white-space: nowrap;
}

.views-count svg {
  display: block;
  width: 14px;
  height: 14px;
}

.entry-screen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  font-family: "Satoshi", sans-serif;
  opacity: 1;
  transition: opacity 350ms ease;
}

.entry-screen span {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.entry-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.entry-screen.is-hidden {
  display: none;
}

.cursor-particles {
  position: fixed;
  z-index: 9998;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes typewriter-cursor {
  0%,
  49%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .entry-screen span {
    font-size: clamp(18px, 7.4vw, 30px);
  }

  .uid-badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
