:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: rgba(8, 10, 13, 0.34);
  --panel-strong: rgba(14, 17, 21, 0.5);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f4f7f8;
  --muted: rgba(244, 247, 248, 0.62);
  --cyan: #98f1ff;
  --red: #d7e1e4;
  --green: #46ff9f;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(2, 3, 6, 0.08), rgba(2, 3, 6, 0.7)),
    url("assets/guns-bg.webp") center / cover fixed,
    var(--bg);
  color: var(--text);
}

body.is-entered {
  animation: backgroundSettle 7s ease forwards;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.05), transparent 24%),
    rgba(2, 3, 6, 0.36);
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: soft-light;
  opacity: 0.18;
  pointer-events: none;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px 18px;
}

.profile {
  width: min(455px, 100%);
  padding: 28px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel), rgba(4, 5, 7, 0.24));
  box-shadow:
    0 24px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  text-align: center;
  backdrop-filter: blur(18px) saturate(122%);
  transform: translateY(8px);
  opacity: 0;
  transition:
    transform 700ms ease,
    opacity 700ms ease;
}

body.is-entered .profile {
  transform: translateY(0);
  opacity: 1;
}

.avatar-wrap {
  display: grid;
  width: min(185px, 52vw);
  aspect-ratio: 1;
  position: relative;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.035),
    0 22px 58px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(152, 241, 255, 0.07);
}

.avatar-img {
  position: relative;
  z-index: 3;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.36);
}

.decoration-mask {
  position: absolute;
  z-index: 2;
  width: 148%;
  height: 116%;
  left: 50%;
  top: 43%;
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.avatar-decoration {
  width: 100%;
  height: auto;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 10vw, 58px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.18),
    0 0 34px rgba(152, 241, 255, 0.12);
}

.tagline {
  min-height: 23px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.badges span {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 247, 248, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 20px;
}

.action-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.action-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.action-list a:hover,
.action-list a:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.action-list span {
  color: rgba(244, 247, 248, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.action-list strong {
  color: rgba(244, 247, 248, 0.58);
  font-size: 12px;
}

.icon-row a,
.icon-row button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.icon-row .image-link {
  overflow: hidden;
  padding: 0;
}

.image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-row a:hover,
.icon-row button:hover,
.icon-row a:focus-visible,
.icon-row button:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.meta-grid div {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.meta-grid span,
.meta-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-grid span {
  color: rgba(246, 251, 255, 0.54);
  font-size: 11px;
}

.meta-grid strong {
  margin-top: 4px;
  color: rgba(246, 251, 255, 0.92);
  font-size: 13px;
}

.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.08), transparent 24%),
    rgba(2, 3, 6, 0.82);
  color: white;
  font: inherit;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition:
    opacity 480ms ease,
    visibility 480ms ease;
}

.enter-screen span {
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.36),
    0 0 28px rgba(152, 241, 255, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}

body.is-entered .enter-screen {
  visibility: hidden;
  opacity: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 12;
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 10, 13, 0.78);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(14px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes backgroundSettle {
  from {
    background-size: auto, 108%;
  }

  to {
    background-size: auto, 100%;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (max-width: 520px) {
  body {
    background-position: center;
  }

  .page-shell {
    padding: 18px 14px;
  }

  .profile {
    padding: 22px 16px 18px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }
}

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