:root {
  --bg: #070605;
  --ink: #f6ecd7;
  --mute: #a8946e;
  --line: rgba(212, 175, 55, 0.18);
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --gold-deep: #8a6a1f;
  --sand: #c4a574;
  --glass: rgba(18, 14, 8, 0.72);
  --display: "Cinzel", Georgia, serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --safe: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg__sand {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(138, 106, 31, 0.18), transparent 50%),
    radial-gradient(ellipse 45% 35% at 90% 70%, rgba(196, 165, 116, 0.12), transparent 50%),
    linear-gradient(180deg, #0b0906 0%, #120e08 45%, #070605 100%);
}

.bg__rays {
  position: absolute;
  inset: -20%;
  opacity: 0.22;
  background: conic-gradient(
    from 210deg at 50% 20%,
    transparent 0deg,
    rgba(240, 215, 140, 0.18) 18deg,
    transparent 36deg,
    rgba(212, 175, 55, 0.12) 54deg,
    transparent 72deg,
    rgba(240, 215, 140, 0.14) 90deg,
    transparent 120deg
  );
  animation: rays 28s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 15%, #000 10%, transparent 65%);
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 75%);
}

.bg__vignet {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

@keyframes rays {
  to { transform: rotate(360deg); }
}

.bio {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2 * var(--safe)));
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(28px, 6vh, 56px) 0;
}

.bio__mark {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
  animation: fade-up 0.7s ease both;
}

.types {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 32px 18px 22px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(36, 28, 14, 0.92), rgba(12, 10, 7, 0.88));
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(240, 215, 140, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.08s + 0.08s);
}

.type__glow {
  position: absolute;
  inset: auto 20% -40% 20%;
  height: 55%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 70%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

.type:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 215, 140, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(240, 215, 140, 0.14),
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 175, 55, 0.12),
    0 0 40px rgba(212, 175, 55, 0.12);
}

.ds-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 10px;
}

.ds-avatar__img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.55);
  background: #1a140c;
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.45);
}

.ds-avatar__ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(240, 215, 140, 0.28);
  animation: pulse-ring 2.8s ease-in-out infinite;
  pointer-events: none;
}

.ds-avatar__dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #120e08;
  background: #6b7280;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.ds-avatar__dot--online {
  background: #3dd68c;
  box-shadow: 0 0 10px rgba(61, 214, 140, 0.55);
}

.ds-avatar__dot--idle {
  background: #f0b232;
  box-shadow: 0 0 10px rgba(240, 178, 50, 0.5);
}

.ds-avatar__dot--dnd {
  background: #f23f43;
  box-shadow: 0 0 10px rgba(242, 63, 67, 0.45);
}

.ds-avatar__dot--offline {
  background: #6b7280;
}

.type__title {
  font-family: var(--display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--gold-2);
}

.type__handle {
  font-size: 13px;
  color: var(--mute);
  word-break: break-all;
}

.type__status {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}

.type__activity {
  width: 100%;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: #ddd0b0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.type__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.chip:hover,
.chip:focus-visible {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(240, 215, 140, 0.55);
  color: #fff8e6;
  outline: none;
  transform: translateY(-1px);
}

.chip--copy {
  color: var(--mute);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(18, 14, 8, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 600;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

@media (max-width: 860px) {
  .types {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg__rays,
  .ds-avatar__ring,
  .type,
  .bio__mark {
    animation: none !important;
  }
}
