:root {
  --bg: #0f0f0f;
  --bg-elev: #1c1c1c;
  --bg-elev-hover: #272727;
  --border: #2e2e2e;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --text-soft: #717171;
  --brand: #6cdc4c;
  --yt: #ff0033;
  --rumble: #85c742;
  --discord: #5865f2;
  --instagram: #e1306c;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 720px;
  --font: "Inter", "Segoe UI", Roboto, ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.banner {
  position: relative;
  z-index: 0;
  width: 100%;
  background: #0d180d;
  border-bottom: 1px solid var(--border);
  line-height: 0;
}

.banner__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(15, 15, 15, 0.55));
  pointer-events: none;
}

.profile {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 1.25rem;
}

.profile__head {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.profile__avatar {
  flex: 0 0 auto;
  position: relative;
  z-index: 10;
  width: clamp(96px, 18vw, 160px);
  height: clamp(96px, 18vw, 160px);
  margin-top: calc(clamp(-4.25rem, -12vw, -2.75rem) + 1.5625rem);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  border: 4px solid var(--bg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.profile__meta {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 0.15rem;
  margin-top: 2rem;
}

.profile__name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.profile__handle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile__handle .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-soft);
}

.profile__handle strong {
  font-weight: 600;
  color: var(--text);
}

.profile__handle-site {
  color: var(--text-muted);
}

.profile__bio {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 38rem;
}

.links {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 2.5rem;
}

.link {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.link:hover {
  background: var(--bg-elev-hover);
  border-color: #3a3a3a;
}

.link:active {
  transform: scale(0.995);
}

.link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.link__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff;
}

.link--youtube .link__icon { background: var(--yt); }
.link--rumble  .link__icon { background: var(--rumble); color: #0c1a05; }
.link--discord .link__icon { background: var(--discord); }
.link--instagram .link__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

.link__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.link__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.link__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-block;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  background: rgba(133, 199, 66, 0.16);
  border: 1px solid rgba(133, 199, 66, 0.38);
  color: #9fd65c;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.link__cta {
  flex: 0 0 auto;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  color: #0f0f0f;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.link:hover .link__cta {
  background: var(--brand);
  color: #0c1a05;
}

.featured {
  margin: 1.5rem 0 3rem;
}

.featured__label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin: 0 0 0.75rem 0.25rem;
}

.featured__card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.featured__card:hover {
  border-color: var(--brand);
}

.featured__card:active {
  transform: scale(0.995);
}

.featured__card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.featured__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-top: 1px solid var(--border);
}

.featured__content {
  padding: 1.25rem;
}

.featured__title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.featured__domain {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.featured__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.featured__code {
  display: inline-block;
  background: rgba(108, 220, 76, 0.15);
  color: var(--brand);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px dashed rgba(108, 220, 76, 0.3);
  margin-top: 0.25rem;
}

.foot {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
}

.foot a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.foot a:hover {
  color: var(--text);
  text-decoration-color: var(--brand);
}

@media (max-width: 560px) {
  .profile__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    padding-top: 0;
  }

  .profile__avatar {
    z-index: 10;
    margin-top: -10px;
    border-width: 4px;
  }

  .profile__meta {
    padding-bottom: 0;
    margin-top: 0;
  }

  .profile__handle {
    justify-content: center;
  }

  .profile__bio {
    text-align: center;
  }

  .link {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    padding: 0.75rem 0.85rem;
  }

  .link__cta {
    display: none;
  }

  .link__sub {
    white-space: normal;
  }
}
