*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #000000;
  --s1: #111111;
  --s2: #1a1a1a;
  --s3: #222222;
  --border: #2a2a2a;
  --border2: #3a3a3a;
  --text: #f5f5f5;
  --sub: #aaaaaa;
  --dim: #666666;
  --accent: #9B1B30;
  --accent-hover: #C41E3A;
  --accent-soft: rgba(155, 27, 48, 0.18);
  --accent-glow: rgba(155, 27, 48, 0.28);
}

html { background: var(--bg); }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 52px;
}

@media (min-width: 900px) {
  body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100svh;
    padding: 48px 24px;
  }
  .page {
    max-width: 560px;
    width: 100%;
    padding-bottom: 0;
  }
  .hero {
    border-radius: 18px 18px 0 0;
    overflow: hidden;
  }
}

.hero {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.6) saturate(.75);
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(155, 27, 48, 0.1) 0%, transparent 32%, #000 100%);
}

.profile {
  padding: 0 22px 22px;
  border-bottom: 1px solid var(--border2);
  margin-top: -36px;
  position: relative;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid var(--border2);
  display: block;
  background: var(--s2);
  margin-bottom: 16px;
  object-fit: cover;
}
.profile-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.4px;
  color: #ffffff;
  margin-bottom: 6px;
}
.profile-desc {
  font-size: 13px;
  color: #bbbbbb;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 7px;
}
.soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border2);
  background: var(--s2);
  color: #999999;
  text-decoration: none;
  overflow: hidden;
  transition: border-color .15s, color .15s, background .15s;
}
.soc:hover {
  border-color: #555;
  color: #ffffff;
  background: var(--s3);
}
.soc svg,
.soc img,
.soc .soc-img {
  width: var(--soc-icon-size, 20px);
  height: var(--soc-icon-size, 20px);
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.soc svg.soc-brand {
  fill: currentColor;
  stroke: none;
}
.soc svg.soc-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-rule {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--accent-hover);
  border: 1px solid rgba(155, 27, 48, .55);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 99px;
}
.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-hover);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

.links {
  padding: 18px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #777777;
  padding: 12px 0 6px;
}
.group:first-child { padding-top: 0; }

.lk {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: background .14s, border-color .14s, transform .12s;
  position: relative;
  overflow: hidden;
}
.lk:hover {
  background: var(--s2);
  border-color: #444;
  transform: translateY(-1px);
}
.lk:active { transform: scale(.99); }

.lk.hi {
  background:
    linear-gradient(155deg, rgba(155, 27, 48, 0.55) 0%, rgba(40, 8, 14, 0.96) 46%, #0a0204 100%);
  border-color: rgba(155, 27, 48, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(196, 30, 58, 0.22),
    0 10px 28px var(--accent-soft);
}
.lk.hi:hover {
  background:
    linear-gradient(155deg, rgba(196, 30, 58, 0.58) 0%, rgba(58, 12, 20, 0.96) 46%, #140408 100%);
  border-color: rgba(196, 30, 58, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(196, 30, 58, 0.3),
    0 12px 32px var(--accent-glow);
}
.lk.hi .lk-title { color: #f6d4d8; }
.lk.hi .lk-sub { color: rgba(246, 212, 216, 0.62); }
.lk.hi .lk-ico {
  background: rgba(155, 27, 48, 0.28);
  border-color: rgba(196, 30, 58, 0.32);
  color: #f2a0ad;
}
.lk.hi .lk-arr { color: rgba(242, 160, 173, 0.55); }

.lk-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--s3);
  border: 1px solid #333;
  display: grid;
  place-items: center;
  color: #999999;
  transition: color .14s;
}
.lk:hover .lk-ico { color: #eeeeee; }
.lk-ico svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.lk-body { flex: 1; min-width: 0; }
.lk-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lk-sub {
  font-size: 11.5px;
  color: #999999;
  margin-top: 2px;
  font-weight: 400;
}

.lk-arr {
  flex-shrink: 0;
  color: #555555;
  display: flex;
  align-items: center;
  transition: color .14s, transform .15s;
}
.lk:hover .lk-arr {
  color: #aaaaaa;
  transform: translateX(2px);
}
.lk-arr svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.foot {
  margin: 26px 22px 0;
  padding-top: 18px;
  border-top: 1px solid var(--border2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.foot span {
  font-size: 11px;
  color: #666666;
}
.foot-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero, .profile, .lk, .group {
  opacity: 0;
  animation: up .3s ease forwards;
}
@keyframes up {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.hero { animation-delay: .03s; }
.profile { animation-delay: .1s; }
.lk:nth-child(1) { animation-delay: .13s; }
.lk:nth-child(2) { animation-delay: .17s; }
.lk:nth-child(3) { animation-delay: .20s; }
.lk:nth-child(4) { animation-delay: .23s; }
.lk:nth-child(5) { animation-delay: .26s; }
.lk:nth-child(6) { animation-delay: .29s; }
.lk:nth-child(7) { animation-delay: .32s; }
.lk:nth-child(8) { animation-delay: .35s; }
.lk:nth-child(9) { animation-delay: .38s; }
.lk:nth-child(10) { animation-delay: .41s; }
.lk:nth-child(11) { animation-delay: .44s; }
.lk:nth-child(12) { animation-delay: .47s; }
.group { animation-delay: .12s; }
