:root {
  color-scheme: dark;
  --bg: #060606;
  --text: #efefef;
  --muted: #bdbdbd;
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(12, 12, 12, 0.74);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 50% -30%, #1a1a1a 0%, transparent 45%),
    linear-gradient(180deg, #0b0b0b 0%, var(--bg) 75%);
  color: var(--text);
  overflow-x: hidden;
}

#meshCatCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
}

.topbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 92vw);
  margin: 0 auto;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: rgba(8, 8, 8, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.36em;
  color: #f4f4f4;
  padding-left: 0.4rem;
}

.topnav {
  display: flex;
  gap: 1rem;
}

.topnav a {
  color: #d9d9d9;
  text-decoration: none;
  font-size: 0.9rem;
}

.topnav a:hover {
  color: #fff;
}

.layout {
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: 7rem 0 3rem;
  position: relative;
  z-index: 2;
}

.hero {
  text-align: center;
  padding: 2rem 1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.hero h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2.2rem, 8vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0;
  color: #cdcdcd;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.username {
  margin: 0.35rem 0 0;
  font-size: 1.06rem;
  color: #cfcfcf;
}

.subtitle {
  color: var(--muted);
  margin: 0.65rem 0 0;
  font-size: 0.97rem;
}

.profile-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.connect {
  margin-top: 0.9rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.7rem;
}

.card-wide {
  padding: 1rem 1.05rem;
}

.label {
  margin: 0;
  color: #d2d2d2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
}

.value {
  margin: 0.38rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.copy-row {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

code {
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.44rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
}

button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ebebeb;
  font-weight: 700;
  padding: 0.48rem 0.84rem;
  cursor: pointer;
  transition: filter 130ms ease, transform 130ms ease;
}

button:hover {
  filter: brightness(1.07);
}

button:active {
  transform: translateY(1px) scale(0.996);
}

.lanyard-profile {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.lanyard-profile img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.lanyard-state,
.lanyard-activity {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: #d6d6d6;
}

.copy-state {
  min-height: 1.3rem;
  margin: 0.62rem 0 0;
  color: #e7e7e7;
  font-size: 0.9rem;
}

.social-row {
  margin-top: 0.72rem;
}

.socials {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.58rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.5rem 0.74rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ededed;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 120ms ease, filter 120ms ease;
}

.social-link:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.05);
}

.social-button {
  font: inherit;
}

.quote {
  margin-top: 0.35rem;
  text-align: center;
  color: #d6d6d6;
  font-size: 0.95rem;
}

.quote p {
  margin: 0;
}

.quote span {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.82rem;
  color: #aaaaaa;
}

.fun-zone {
  margin-top: 0.75rem;
}

.window-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.cat-window img {
  display: block;
  width: 100%;
  margin-top: 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #111;
  min-height: 210px;
  object-fit: cover;
}

.aurora {
  display: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(#fff 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

@media (max-width: 900px) {
  .topbar {
    width: min(94vw, 760px);
  }

  .hero {
    padding: 1.3rem 0.9rem 1rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}
