@font-face {
  font-family: "Angel Wish";
  src: url("../fonts/angel-wish.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #030303;
  --surface: rgba(6, 6, 7, 0.84);
  --surface-strong: rgba(5, 5, 6, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --text: #f4f3f1;
  --muted: #89898f;
  --dim: #525258;
  --line: rgba(255, 255, 255, 0.085);
  --accent: #f2f1ec;
  --accent-rgb: 242, 241, 236;
  --glow: rgba(255, 255, 255, 0.08);
  --online: #39df78;
  --display: "Angel Wish", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body:not(.is-entered) {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#particle-field,
.ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#particle-field {
  z-index: 1;
  opacity: 0;
  transition: opacity 1.5s ease;
}

body.is-entered #particle-field {
  opacity: 0.16;
}

.ambient {
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(var(--accent-rgb), 0.035), transparent 38%),
    radial-gradient(circle at 52% 115%, rgba(var(--accent-rgb), 0.1), transparent 44%),
    #030303;
}

.ambient::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.1)),
    radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.16) 78%, rgba(0, 0, 0, 0.48) 100%);
}

.ambient__video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--video-opacity, 0.94);
  filter: grayscale(0.18) saturate(1.02) contrast(1.03) brightness(1.2);
  transform: scale(1.025);
  transition: opacity 1.2s ease, filter 1.2s ease;
}

body:not(.is-entered) .ambient__video {
  opacity: 0.08;
  filter: grayscale(1) saturate(0) contrast(1.15) brightness(0.22);
}

.ambient__orb {
  position: absolute;
  z-index: 1;
  width: 48vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  display: none;
  background: var(--accent);
  transition: background 0.6s ease;
}

.ambient__orb--one {
  top: -24vw;
  left: -12vw;
  animation: drift-one 18s ease-in-out infinite alternate;
}

.ambient__orb--two {
  right: -28vw;
  bottom: -30vw;
  animation: drift-two 22s ease-in-out infinite alternate;
}

.ambient__grid {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: none;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.55) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  transform: perspective(700px) rotateX(67deg) scale(1.5) translateY(27%);
  transform-origin: center bottom;
}

.ambient__grain {
  position: absolute;
  z-index: 5;
  inset: -50%;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain 0.3s steps(2) infinite;
}

.entrance {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 15px;
  width: 100%;
  border: 0;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.entrance::before,
.entrance::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.entrance::before {
  width: min(630px, 78vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  box-shadow: 0 -70px 80px 25px rgba(255,255,255,0.045);
}

.entrance::after {
  width: 270px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  animation: entrance-ring 3s ease-in-out infinite;
}

.entrance.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.entrance__eyebrow,
.entrance__hint {
  position: relative;
  z-index: 1;
  color: #666;
  font: 10px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.entrance__mark {
  position: relative;
  z-index: 1;
  margin: -3px 0 -17px;
  color: #fff;
  font: 112px/1 var(--display);
  text-shadow: 0 0 16px rgba(255,255,255,0.65), 0 0 48px rgba(255,255,255,0.24);
  animation: mark-flicker 5s linear infinite;
}

.entrance__title {
  position: relative;
  z-index: 1;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.entrance__hint {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  color: #464646;
  letter-spacing: 0.15em;
}

.entrance__line {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.stage {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px 18px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.9s 0.22s ease, transform 0.9s 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.9s 0.22s;
}

.stage.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.profile-card {
  --card-shift-x: 0px;
  --card-shift-y: 0px;
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
  position: relative;
  width: min(820px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 5, 6, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 11px rgba(255, 255, 255, 0.43),
    0 0 30px rgba(255, 255, 255, 0.28),
    0 0 78px rgba(230, 234, 236, 0.14),
    0 20px 58px rgba(0, 0, 0, 0.58),
    inset 0 1px rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(22px) saturate(105%);
  backface-visibility: hidden;
  transform:
    perspective(1200px)
    translate3d(var(--card-shift-x), var(--card-shift-y), 0)
    rotateX(var(--card-tilt-x))
    rotateY(var(--card-tilt-y));
  transform-style: preserve-3d;
  will-change: transform;
  animation: profile-card-glow 5.8s ease-in-out infinite;
}

.profile-card::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 12%;
  width: 18%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.wordmark__sigil {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  font: 22px/1 var(--display);
  box-shadow: none;
}

.muted {
  color: var(--dim);
}

.discord-status-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 10px var(--online);
}

.discord-status-dot.is-idle {
  background: #f2b83d;
  box-shadow: 0 0 10px #f2b83d;
}

.discord-status-dot.is-dnd {
  background: #f04b5d;
  box-shadow: 0 0 10px #f04b5d;
}

.discord-status-dot.is-offline {
  background: #777982;
  box-shadow: none;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 25px;
  padding: 24px 28px 21px;
}

.avatar-wrap {
  position: relative;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
}

.avatar-wrap__orbit {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(var(--accent-rgb), 0.19);
  border-radius: 50%;
  animation: orbit 10s linear infinite;
}

.avatar-wrap__orbit::before,
.avatar-wrap__orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.avatar-wrap__orbit::before {
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.avatar-wrap__orbit::after {
  inset: 9px;
  border: 1px dashed rgba(var(--accent-rgb), 0.14);
}

.avatar {
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  background: #050505;
  box-shadow: inset 0 0 22px #000, 0 0 18px var(--glow);
}

.identity {
  min-width: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  color: #96969c;
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.19em;
}

.kicker span {
  color: var(--accent);
}

.name-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  color: #fffefa;
  font: clamp(54px, 5vw, 62px)/0.84 var(--display);
  letter-spacing: 0.025em;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 1),
    0 0 9px rgba(255, 255, 255, 0.75),
    0 0 26px rgba(230, 235, 238, 0.42);
  animation: profile-name-glow 4.6s ease-in-out infinite;
}

.badges {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  min-height: 42px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.015) 48%, rgba(0,0,0,0.12)),
    rgba(5,5,7,0.76);
  box-shadow:
    0 9px 24px rgba(0,0,0,0.34),
    inset 0 1px rgba(255,255,255,0.08),
    inset 0 -1px rgba(0,0,0,0.52);
  isolation: isolate;
  backdrop-filter: blur(14px) saturate(112%);
}

.badges::before {
  position: absolute;
  z-index: 0;
  top: 2px;
  right: 10px;
  left: 10px;
  height: 1px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  pointer-events: none;
}

.badge {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: #eeeeef;
  opacity: 0.98;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.badge__silver-icon {
  width: 27px;
  height: 27px;
  overflow: visible;
  fill: none;
  stroke: url(#silver-staff);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.34));
}

.badge--owner .badge__silver-icon { stroke: url(#silver-owner); }
.badge--bounty .badge__silver-icon { stroke: url(#silver-bounty); }
.badge--cash .badge__silver-icon { stroke: url(#silver-cash); }

.badge__mercedes-canvas {
  display: block;
  width: 29px;
  height: 29px;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.36));
}

.badge__silver-globe {
  display: block;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.22) brightness(1.2) drop-shadow(0 0 3px rgba(255,255,255,0.5));
}

.badge--staff .badge__silver-icon {
  animation: badge-staff-scan 4.1s ease-in-out -2.5s infinite;
}

.badge--owner .badge__silver-icon {
  overflow: visible;
}

.badge__owner-crown,
.badge__owner-banner {
  animation-duration: 5.4s;
  animation-iteration-count: infinite;
  animation-delay: -1.2s;
}

.badge__owner-crown {
  animation-name: badge-owner-crown-confirm;
  animation-timing-function: ease-in-out;
}

.badge__owner-banner {
  fill: none;
  stroke: url(#silver-owner);
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform-box: fill-box;
  filter: drop-shadow(0 0 1.5px rgba(255,255,255,0.44));
}

.badge__owner-banner--left {
  transform-origin: right center;
  animation-name: badge-owner-banner-left;
  animation-timing-function: ease-out;
}

.badge__owner-banner--right {
  transform-origin: left center;
  animation-name: badge-owner-banner-right;
  animation-timing-function: ease-out;
}

.badge--bounty .badge__silver-icon {
  overflow: visible;
}

.badge__bounty-base,
.badge__bounty-gap,
.badge__bounty-breach {
  animation-duration: 5.2s;
  animation-iteration-count: infinite;
  animation-delay: -1.7s;
}

.badge__bounty-base {
  animation-name: badge-bounty-base;
  animation-timing-function: ease-in-out;
}

.badge__bounty-gap {
  fill: none;
  stroke: #000;
  stroke-width: 3.8;
  stroke-linecap: round;
  stroke-dasharray: 4 40;
  opacity: 0;
  animation-name: badge-bounty-gap;
  animation-timing-function: linear;
}

.badge__bounty-breach {
  fill: none;
  stroke: #fff;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3.2 40.8;
  opacity: 0;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.8));
  animation-name: badge-bounty-breach;
  animation-timing-function: linear;
}

.badge--cash .badge__silver-icon {
  overflow: visible;
}

.badge__cash-frame {
  animation: badge-cash-frame 5.8s ease-in-out -2.3s infinite;
}

.badge__cash-reel {
  animation: badge-cash-slot 5.8s linear -2.3s infinite;
  transform-box: view-box;
  transform-origin: center;
  will-change: transform;
}

.badge--rule::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
  animation: badge-satellite-orbit 4.8s linear -1.4s infinite;
  pointer-events: none;
}

.badge:hover {
  z-index: 2;
  color: var(--accent);
  opacity: 1;
  background: rgba(255,255,255,0.055);
  transform: translateY(-1px);
}

.badge::after {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  width: max-content;
  max-width: 140px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  content: attr(data-label);
  color: var(--text);
  background: #0a0a0c;
  font: 9px/1 var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.badge:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bio {
  min-height: 22px;
  margin-bottom: 17px;
  color: #fff;
  font: 400 22px/22px "Angel Wish", sans-serif;
  letter-spacing: normal;
}

.type-cursor {
  color: var(--accent);
  animation: cursor-blink 1s step-end infinite;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.meta-row > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #dedee2;
  background: transparent;
  font: 600 12px/1 var(--mono);
}

.meta-row svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.tabs {
  display: flex;
  padding: 0 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  min-width: 130px;
  min-height: 56px;
  border: 0;
  color: var(--dim);
  background: transparent;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tab span {
  margin-left: 8px;
  color: #343439;
  font-size: 8px;
}

.tab::after {
  position: absolute;
  right: 28px;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tab:hover,
.tab.is-active {
  color: var(--text);
}

.tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.panel {
  padding: 18px 32px 23px;
  border-top: 1px solid var(--line);
  animation: panel-in 0.42s ease both;
}

.presence-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.presence-card__user,
.presence-name-row {
  display: flex;
  align-items: center;
}

.presence-card__user {
  gap: 11px;
}

.discord-avatar-wrap {
  position: relative;
}

.discord-avatar-wrap img {
  display: block;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.82);
}

.discord-status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border: 3px solid #09090a;
}

.presence-name-row {
  gap: 8px;
}

.presence-copy strong {
  display: block;
  color: var(--text);
  font: 600 13px/1.2 var(--mono);
}

.presence-copy > span {
  display: block;
  max-width: min(62vw, 520px);
  margin-top: 5px;
  overflow: hidden;
  color: #aaaab0;
  font: 11px/1.2 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--dim);
  background: transparent;
  cursor: pointer;
}

.copy-button:hover {
  color: var(--accent);
  background: var(--surface-soft);
}

.copy-button svg {
  width: 13px;
  height: 13px;
}

.guild-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--accent);
  background: transparent;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.1em;
}

.guild-tag__icon {
  font-size: 12px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 0;
  margin-top: 8px;
}

.social-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 3px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  border-color: rgba(var(--accent-rgb), 0.24);
  background: transparent;
  transform: translateX(2px);
}

.social-link img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.45) drop-shadow(0 0 4px rgba(255, 255, 255, 0.32));
}

.social-link .social-link__discord {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,255,255,0.58));
  opacity: 1;
}

.social-link span {
  min-width: 0;
  overflow: hidden;
  font: 600 11.5px/1.2 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link small {
  display: block;
  margin-bottom: 3px;
  color: #929298;
  font: 8.5px/1 var(--mono);
  letter-spacing: 0.12em;
}

.social-link b {
  color: var(--dim);
  font: 400 13px/1 var(--mono);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover b {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.skills-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.skills-heading h2 {
  margin-bottom: 0;
  font: 44px/0.95 var(--display);
  letter-spacing: 0.03em;
}

.skills-heading > p {
  max-width: 315px;
  margin-bottom: 0;
  color: var(--muted);
  font: 10px/1.6 var(--mono);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skill-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,0.022);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-card:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  transform: translateY(-3px);
}

.skill-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.skill-card__top img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.55);
}

.skill-card__top strong {
  color: var(--accent);
  font: 300 25px/1 var(--mono);
}

.skill-card__top small {
  color: var(--dim);
  font-size: 10px;
}

.skill-card h3 {
  margin: 0 0 6px;
  font: 600 14px/1 var(--mono);
}

.skill-card p {
  margin-bottom: 0;
  color: var(--dim);
  font: 8px/1.4 var(--mono);
  text-transform: uppercase;
}

.skill-bar {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.skill-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

#skills-panel.is-active .skill-bar span {
  width: var(--level);
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 40px;
  align-items: center;
  padding: 0 24px;
  border-top: 1px solid var(--line);
  color: #bcbcc2;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.1em;
}

.card-footer__center {
  grid-column: 2;
  color: #dedee2;
}

.card-footer__views {
  display: flex;
  grid-column: 1;
  align-items: center;
  gap: 7px;
  justify-self: start;
}

.card-footer__views svg {
  width: 13px;
  height: 13px;
  color: #dedee2;
}

.card-footer__copyright {
  grid-column: 3;
  justify-self: end;
}

.media-controls {
  position: fixed;
  z-index: 8;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(5,5,6,0.82);
  box-shadow: 0 12px 36px rgba(0,0,0,0.46), inset 0 1px rgba(255,255,255,0.045);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.55s 0.5s ease, transform 0.55s 0.5s ease;
  backdrop-filter: blur(18px) saturate(110%);
}

body.is-entered .media-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.media-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-control svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #d6d6da;
}

.media-control output {
  width: 22px;
  color: #a9a9af;
  font: 600 9px/1 var(--mono);
  text-align: right;
}

.media-controls__divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.control-range {
  width: 86px;
  height: 16px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.control-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ececef 0 var(--range-progress, 50%), rgba(255,255,255,0.13) var(--range-progress, 50%) 100%);
}

.control-range::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0,0,0,0.65);
  border-radius: 50%;
  appearance: none;
  background: linear-gradient(145deg, #fff, #92949b);
  box-shadow: 0 0 7px rgba(255,255,255,0.52);
}

.control-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0,0,0,0.65);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #92949b);
  box-shadow: 0 0 7px rgba(255,255,255,0.52);
}

.control-range::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ececef 0 var(--range-progress, 50%), rgba(255,255,255,0.13) var(--range-progress, 50%) 100%);
}

.toast {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(8,8,9,0.92);
  font: 9px/1 var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(18px);
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.noscript {
  position: fixed;
  z-index: 50;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 14px;
  color: #fff;
  background: #18181a;
  font: 12px var(--mono);
  text-align: center;
}

@keyframes drift-one {
  to { transform: translate(22vw, 14vh) scale(1.15); }
}

@keyframes drift-two {
  to { transform: translate(-18vw, -15vh) scale(0.85); }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -3%); }
  50% { transform: translate(-4%, 2%); }
  75% { transform: translate(3%, 4%); }
  100% { transform: translate(-2%, -1%); }
}

@keyframes entrance-ring {
  0%, 100% { opacity: 0.2; transform: scale(0.92); }
  50% { opacity: 0.55; transform: scale(1.04); }
}

@keyframes mark-flicker {
  0%, 17%, 19%, 21%, 100% { opacity: 1; }
  18%, 20% { opacity: 0.58; }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes badge-staff-scan {
  0%, 58%, 100% {
    opacity: 0.88;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.24));
    transform: scale(1);
  }
  68% {
    opacity: 1;
    filter: drop-shadow(-2px 0 3px rgba(255,255,255,0.78));
    transform: scale(1.025);
  }
  78% {
    filter: drop-shadow(2px 0 4px rgba(255,255,255,0.58));
  }
}

@keyframes badge-owner-crown-confirm {
  0%, 34%, 88%, 100% {
    opacity: 0.96;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.28));
  }
  56%, 76% {
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.58));
  }
}

@keyframes badge-owner-banner-left {
  0%, 32% { opacity: 0; transform: scaleX(0.06); }
  47% { opacity: 0.92; transform: scaleX(1.05); }
  57%, 76% { opacity: 0.9; transform: scaleX(1); }
  88%, 100% { opacity: 0; transform: scaleX(1); }
}

@keyframes badge-owner-banner-right {
  0%, 38% { opacity: 0; transform: scaleX(0.06); }
  53% { opacity: 0.92; transform: scaleX(1.05); }
  63%, 76% { opacity: 0.9; transform: scaleX(1); }
  88%, 100% { opacity: 0; transform: scaleX(1); }
}

@keyframes badge-bounty-base {
  0%, 24%, 80%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.28));
  }
  36%, 68% {
    opacity: 0.62;
    filter: drop-shadow(0 0 1px rgba(255,255,255,0.18));
  }
}

@keyframes badge-bounty-gap {
  0%, 24% { opacity: 0; stroke-dashoffset: 0; }
  31% { opacity: 1; }
  69% { opacity: 1; stroke-dashoffset: -70; }
  78%, 100% { opacity: 0; stroke-dashoffset: -78; }
}

@keyframes badge-bounty-breach {
  0%, 24% { opacity: 0; stroke-dashoffset: -5; }
  31% { opacity: 1; }
  69% { opacity: 1; stroke-dashoffset: -75; }
  78%, 100% { opacity: 0; stroke-dashoffset: -83; }
}

@keyframes badge-cash-frame {
  0%, 40%, 100% { filter: drop-shadow(0 0 2px rgba(255,255,255,0.24)); }
  56% { filter: drop-shadow(0 0 4px rgba(255,255,255,0.58)); }
  82% { filter: drop-shadow(0 0 3px rgba(255,255,255,0.42)); }
}

@keyframes badge-cash-slot {
  0%, 40% { transform: translateY(0%); }
  46% { transform: translateY(20%); }
  54% { transform: translateY(62%); }
  62% { transform: translateY(105%); }
  70% { transform: translateY(138%); }
  75% { transform: translateY(151.5%); }
  79% { transform: translateY(148.5%); }
  82%, 100% { transform: translateY(150%); }
}

@keyframes badge-satellite-orbit {
  0% { opacity: 0.25; transform: translate(-50%, -50%) rotate(0deg) translateX(13px) scale(0.72); }
  25% { opacity: 0.95; transform: translate(-50%, -50%) rotate(90deg) translateX(13px) scale(1); }
  50% { opacity: 0.35; transform: translate(-50%, -50%) rotate(180deg) translateX(13px) scale(0.72); }
  75% { opacity: 0.9; transform: translate(-50%, -50%) rotate(270deg) translateX(13px) scale(1); }
  100% { opacity: 0.25; transform: translate(-50%, -50%) rotate(360deg) translateX(13px) scale(0.72); }
}

@keyframes profile-card-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.15),
      0 0 11px rgba(255, 255, 255, 0.43),
      0 0 30px rgba(255, 255, 255, 0.28),
      0 0 78px rgba(230, 234, 236, 0.14),
      0 20px 58px rgba(0, 0, 0, 0.58),
      inset 0 1px rgba(255, 255, 255, 0.11);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.21),
      0 0 15px rgba(255, 255, 255, 0.63),
      0 0 39px rgba(255, 255, 255, 0.4),
      0 0 102px rgba(230, 234, 236, 0.19),
      0 22px 64px rgba(0, 0, 0, 0.6),
      inset 0 1px rgba(255, 255, 255, 0.15);
  }
}

@keyframes profile-name-glow {
  0%, 100% {
    text-shadow:
      0 0 2px rgba(255, 255, 255, 1),
      0 0 9px rgba(255, 255, 255, 0.75),
      0 0 26px rgba(230, 235, 238, 0.42);
  }
  50% {
    text-shadow:
      0 0 4px rgba(255, 255, 255, 1),
      0 0 14px rgba(255, 255, 255, 0.96),
      0 0 38px rgba(230, 235, 238, 0.6);
  }
}

@media (max-width: 780px) {
  .stage {
    place-items: start center;
    padding: 18px 12px 86px;
  }

  .profile-card {
    border-radius: 14px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 19px;
    padding: 25px 24px 22px;
    text-align: center;
  }

  .identity {
    width: 100%;
  }

  .kicker,
  .name-row,
  .meta-row {
    justify-content: center;
  }

  .name-row {
    flex-direction: column;
    gap: 8px;
  }

  h1 {
    font-size: clamp(50px, 15vw, 62px);
  }

  .bio {
    margin-bottom: 18px;
  }

  .tabs,
  .panel {
    padding-right: 24px;
    padding-left: 24px;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-heading {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }

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

  .skill-card {
    min-height: 160px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 0 16px;
  }

  .profile-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .avatar-wrap {
    width: 118px;
    height: 118px;
  }

  .avatar {
    width: 102px;
    height: 102px;
  }

  .badges {
    max-width: 100%;
  }

  .tabs,
  .panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tab {
    min-width: 50%;
  }

  .presence-copy > span {
    max-width: 45vw;
  }

  .guild-tag {
    padding: 0 8px;
  }

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

  .social-link {
    min-height: 46px;
  }

  .card-footer {
    grid-template-columns: 1fr 1fr;
    min-height: 58px;
    row-gap: 5px;
    padding: 8px 16px;
  }

  .card-footer__center {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .card-footer__views {
    grid-column: 1;
    grid-row: 2;
  }

  .card-footer__copyright {
    grid-column: 2;
    grid-row: 2;
  }

  .media-controls {
    bottom: 10px;
    gap: 10px;
    width: calc(100% - 24px);
    justify-content: center;
    padding: 0 10px;
  }

  .media-control {
    min-width: 0;
    gap: 6px;
  }

  .control-range {
    width: min(21vw, 82px);
  }
}

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

  #particle-field {
    display: none;
  }

  .ambient__video {
    display: none;
  }

  .profile-card {
    transform: none;
    will-change: auto;
  }
}
