html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #000000;
  font-family: "Courier New", monospace;
  color: #f2f2f2;
  box-sizing: border-box;
  user-select: none;
  cursor: none;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.background {
  position: fixed;
  inset: 0;
  background: #000000;
  opacity: 0;
  transition: opacity 700ms ease;
}

.lamp {
  position: fixed;
  right: 7vw;
  top: 42%;
  z-index: 1;
  width: 480px;
  max-height: none;
  height: auto;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: 50% 0;
  filter: brightness(0.72) contrast(1.08);
  transition: opacity 900ms ease, filter 220ms ease;
  animation: lamp-swing 2.3s ease-in-out infinite;
}

@keyframes lamp-swing {
  0% {
    transform: translateY(-50%) rotate(-6deg);
  }

  50% {
    transform: translateY(-50%) rotate(6deg);
  }

  100% {
    transform: translateY(-50%) rotate(-6deg);
  }
}

.enter {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  border: 0;
  background: #000000;
  color: #ffffff;
  font: 400 12px / 1 "Courier New", monospace;
  letter-spacing: 4px;
  cursor: none;
  transition: opacity 450ms ease, visibility 450ms ease;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  padding: 40px 0 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 900ms ease 140ms;
}

.title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #f2f2f2;
}

.subtitle {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f2f2f2;
  opacity: 0.25;
}

.profile-row {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 92px);
  align-items: center;
  justify-content: center;
  gap: 30px 34px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 900ms ease 220ms;
}

.profile-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f2f2f2;
  font: 400 10px / 1 "Courier New", monospace;
  letter-spacing: 2px;
  cursor: none;
  transition: filter 200ms ease;
}

.profile-button:hover {
  filter: brightness(0.6);
}

.profile-button img {
  width: 78px;
  height: 78px;
  border: 1px solid #222222;
  object-fit: cover;
  object-position: center;
  background: #050505;
}

.profile-button span {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.045), transparent 34%),
    rgba(0, 0, 0, 0.82);
  cursor: none;
  backdrop-filter: blur(2px);
}

.card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 190px 1fr;
  width: min(620px, 92vw);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #202020;
  background: #050505;
  box-shadow:
    0 28px 100px rgba(0, 0, 0, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity 240ms ease, transform 240ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.12;
  pointer-events: none;
}

.modal.open .card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 1px solid #222222;
  background: #050505;
  color: #555555;
  font: 400 18px / 1 "Courier New", monospace;
  cursor: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.modal-close:hover {
  border-color: #333333;
  background: #0d0d0d;
  color: #ffffff;
}

.card-profile {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  border-right: 1px solid #181818;
  background: rgba(0, 0, 0, 0.28);
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 230px;
  padding: 36px 34px 30px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.card-pfp-wrap {
  width: 132px;
  height: 132px;
  padding: 0;
  border: 1px solid #242424;
  background: #050505;
  overflow: hidden;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.card-pfp {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #050505;
}

.card-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.card-name {
  text-align: left;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.card-badge {
  position: relative;
  display: none;
  width: 32px;
  height: 32px;
  transform: translateY(-3px);
}

.card-badge.visible {
  display: inline-flex;
}

.card-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.badge-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  padding: 8px 10px;
  border: 1px solid #202020;
  background: #050505;
  color: #d8d8d8;
  font: 400 12px / 1 "Courier New", monospace;
  letter-spacing: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.card-badge:hover .badge-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.card-description {
  width: 100%;
  min-height: 74px;
  margin: 18px 0 24px;
  padding: 14px 0 0;
  border-top: 1px solid #181818;
  color: #a8a8a8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: block;
  min-width: 150px;
  padding: 13px 12px;
  border: 1px solid #202020;
  background: #070707;
  color: #777777;
  text-align: center;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.pill:hover {
  border-color: #363636;
  background: #101010;
  color: #ffffff;
}

@media (max-width: 560px) {
  .card {
    grid-template-columns: 1fr;
  }

  .card-profile {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid #181818;
  }

  .card-content {
    min-height: 190px;
    align-items: center;
    text-align: center;
  }

  .card-name-row,
  .card-name,
  .card-description {
    justify-content: center;
    text-align: center;
  }
}

.cursor-star {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 14px;
  height: 14px;
  pointer-events: none;
  transform: translate3d(-50px, -50px, 0);
}

.cursor-star svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

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

.cursor-trail path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entered .background,
.entered .lamp,
.entered .profile-row,
.entered header {
  opacity: 1;
}

.entered .enter {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
