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

html,
body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: #e8e8ed;
  background: #0a0a0c;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transition: filter 0.45s ease, transform 0.45s ease;
}

body.is-gated .bg-video {
  filter: blur(36px);
  transform: scale(1.04);
}

.bg-video::-webkit-media-controls {
  display: none !important;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: min(22rem, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 16, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.avatar {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: block;
  margin: 0 auto 1rem;
}

.name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.handle {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.95rem;
  color: rgba(232, 232, 237, 0.55);
}

.bio {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(232, 232, 237, 0.88);
  line-height: 1.35;
}

.bio-sub {
  margin: 0 0 1.15rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(232, 232, 237, 0.55);
}

.bio-sub__link {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
}

.bio-sub__link:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:active {
  transform: translateY(1px);
}

/* Discord-inspired user popout (loosely based on their quick profile / hover card layout) */
.dc-pop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.dc-pop[hidden] {
  display: none;
}

.dc-pop__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.dc-pop__panel {
  position: relative;
  z-index: 1;
  width: min(20rem, 100%);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1f2023;
  background: #111214;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  color: #f2f3f5;
  text-align: left;
  animation: dc-pop-in 0.18s ease-out;
}

@keyframes dc-pop-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dc-pop__x {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.dc-pop__x:hover {
  background: rgba(0, 0, 0, 0.5);
}

.dc-pop__banner {
  position: relative;
  height: 4.5rem;
  overflow: hidden;
  background: #1e1f22;
}

.dc-pop__banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.dc-pop__content {
  padding: 0 1rem 1rem;
  margin-top: -2.5rem;
}

.dc-pop__avatar-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.dc-pop__avatar-wrap {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 4px solid #111214;
  background: #111214;
  flex-shrink: 0;
}

.dc-pop__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.dc-pop__status {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #3ba55d;
  border: 3px solid #111214;
  box-sizing: content-box;
}

.dc-pop__display {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.dc-pop__user {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: #b5bac1;
  font-weight: 500;
}

.dc-pop__bio {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #dbdee1;
  font-weight: 500;
}

.dc-pop__bio-sub {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #949ba4;
}

.dc-pop__bio-link {
  color: #00a8fc;
  text-decoration: none;
  font-weight: 600;
}

.dc-pop__bio-link:hover {
  text-decoration: underline;
}

.dc-pop__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dc-pop__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  border: none;
  background: #248046;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.dc-pop__btn:hover {
  filter: brightness(1.06);
}

.dc-pop__btn--link {
  text-decoration: none;
  background: #4e5058;
}

.dc-pop__btn--link:hover {
  filter: brightness(1.08);
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
  user-select: none;
}

.gate--gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.gate__text {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}
