@font-face {
  font-family: "JetBrains Mono Nerd";
  src: local("JetBrainsMono Nerd Font"), local("JetBrains Mono Nerd"), local("JetBrainsMonoNerdFont");
  font-display: swap;
}

:root {
  --bg: rgb(0, 0, 0);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgb(255, 255, 255);
  --muted: rgb(100, 100, 100);
  --soft: rgba(255, 255, 255, 0.08);
  --shadow: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.05), transparent 25%),
    rgb(0, 0, 0);
  overflow: hidden;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

button, a {
  font: inherit;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.24;
  pointer-events: none;
  z-index: 1;
}

.glow-one {
  width: 26rem;
  height: 26rem;
  top: 10%;
  left: 10%;
  background: rgba(255, 255, 255, 0.12);
}

.glow-two {
  width: 24rem;
  height: 24rem;
  bottom: 6%;
  right: 14%;
  background: rgba(255, 255, 255, 0.1);
}

.render-panel {
  position: absolute;
  left: clamp(16px, 2vw, 38px);
  bottom: clamp(18px, 3vw, 42px);
  z-index: 2;
  width: min(28vw, 260px);
  min-width: 220px;
  padding: 0.9rem 0.9rem 0.7rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: "JetBrains Mono Nerd", "JetBrains Mono", monospace;
}

.render-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.8);
}

.render-tag {
  opacity: 0.9;
}

.render-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem 0.7rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.7);
}

.content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 2rem 5vw 2rem 2rem;
}

.profile-card {
  position: fixed;
  right: clamp(24px, 4vw, 64px);
  top: 50%;
  width: min(100%, 420px);
  transform: translateY(-50%);
  padding: 1.2rem 1.2rem 1.1rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  user-select: none;
  cursor: grab;
  z-index: 4;
}

.profile-card.dragging {
  cursor: grabbing;
  transition: none;
}

.avatar-frame {
  width: 100%;
  height: 210px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.identity-block {
  margin-top: 1.15rem;
  padding: 0 0.15rem;
  font-family: "Indie Flower", "Segoe Print", cursive;
}

.identity-block h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.085em;
  color: rgb(255, 255, 255);
  line-height: 0.82;
  font-family: "Indie Flower", "Segoe Print", cursive;
}

.identity-block p {
  margin: 0.7rem 0 0;
  font-size: 0.93rem;
  line-height: 1.45;
  color: rgb(100, 100, 100);
  letter-spacing: -0.02em;
  font-family: "Indie Flower", "Segoe Print", cursive;
}

.action-button {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 56px;
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgb(255, 255, 255);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.button-icon,
.button-action {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.button-icon img,
.button-action img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.button-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-align: left;
  color: rgb(255, 255, 255);
  font-family: "Indie Flower", "Segoe Print", cursive;
}

@media (max-width: 760px) {
  .render-panel {
    left: 14px;
    bottom: 12px;
    width: 200px;
    min-width: 200px;
  }

  .profile-card {
    width: min(82vw, 380px);
    right: 5vw;
  }
}

@media (max-width: 520px) {
  body {
    overflow: auto;
  }

  .content-wrap {
    justify-content: center;
    padding: 1.25rem 1rem 5rem;
  }

  .profile-card {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 3.5rem auto 0;
  }

  .render-panel {
    position: fixed;
    left: 12px;
    bottom: 12px;
    width: 170px;
    min-width: 170px;
  }
}
