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

:root {
  --bg: #0a0a12;
  --card-bg: #13131a;
  --card-border: rgba(255, 255, 255, 0.07);
  --accent: #c8a96e;
  --text: #e8e4dc;
  --muted: rgba(232, 228, 220, 0.45);
  --glow: rgba(200, 169, 110, 0.18);
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
  cursor: default;
}

/* subtle noise grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}

canvas {
  position: fixed;
  inset: 0;
}

.scene {
  perspective: 900px;
  z-index: 1;
}

.card {
  width: 400px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 36px 36px;
  position: relative;
  transform-style: preserve-3d;
  transform: scale(1) rotateX(0deg) rotateY(0deg);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  cursor: default;
  will-change: transform;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 40px var(--glow);
  animation: card-glow-pulse 3.2s ease-in-out infinite;
}

.card:hover {
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 60px var(--glow);
}

/* shimmer highlight that follows mouse */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 169, 110, 0.13) 0%,
    transparent 45%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

@keyframes card-glow-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.5),
      0 0 26px var(--glow);
  }
  50% {
    box-shadow:
      0 10px 40px rgba(0, 0, 0, 0.72),
      0 0 60px var(--glow);
  }
}

/* top accent line */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 1px;
  opacity: 0.6;
}

.card-border {
  position: absolute;
  inset: -1.5px;
  border-radius: 21px;
  z-index: 0;
  pointer-events: none;
}

.card-border::before,
.card-border::after {
  content: '';
  position: absolute;
  border-radius: 21px;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 169, 110, 0.13) 0%,
    transparent 45%
  );
}

.card-border::before {
  inset: 0;
  border: 1.5px solid transparent;
}

.card-border::after {
  inset: -1.5px;
  border-radius: 23px;
}

.card-footer {
  z-index: -10;
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  text-align: center;
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #5a5040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s 0.07s;
}

.card:hover .card-footer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(calc(100%));
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s 0.09s;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.tag-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(0.7);
  }
}

/* ── Components ────────────────────────────────────────── */

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 12px;
  width: 100%;
}

.card-icon {
  width: 100px;
  height: 100px;
  border-radius: 35px;
  background: linear-gradient(135deg, #1e1e2a, #252535);
  border: 0.5px solid rgba(200, 169, 110, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.nick {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  display: inline-block;
  animation: glow-pulse 2.8s ease-in-out infinite;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--card-border), transparent);
  margin-bottom: 20px;
}

/* Cheat Sheet */
.cheat-list {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cheat-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cheat-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cheat-hash {
  font-size: 10px;
  color: var(--muted);
}

.cheat-name {
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.cheat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 8%, transparent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
}

/* Links Section */
.links-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  gap: 9px;
}

.link-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 0px rgba(180, 140, 60, 0.12),
    inset 0 0px 0 0 rgba(180, 140, 60, 0.18);
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.link:hover .link-content {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(180, 140, 60, 0.2),
    inset 0 1px 0 0 rgba(180, 140, 60, 0.25),
    0 0 24px 4px rgba(180, 140, 60, 0.15);
}

.link-name {
  font-family:
    'SF Pro Display',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--accent);
  transition: color 0.2s;
}

.link:hover .link-name {
  color: var(--accent);
}

.link-desc {
  margin-top: 6px;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1;
}

/* Animations */
@keyframes card-glow-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.5),
      0 0 26px var(--glow);
  }
  50% {
    box-shadow:
      0 10px 40px rgba(0, 0, 0, 0.72),
      0 0 60px var(--glow);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    text-shadow:
      0 0 4px rgba(200, 169, 110, 0.3),
      0 0 10px rgba(200, 169, 110, 0.15),
      0 0 20px rgba(200, 169, 110, 0.05);
  }
  50% {
    text-shadow:
      0 0 6px rgba(200, 169, 110, 0.7),
      0 0 18px rgba(200, 169, 110, 0.25),
      0 0 40px rgba(200, 169, 110, 0.1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(0.7);
  }
}

.card-footer {
  margin-top: 24px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  opacity: 0.5;
  font-family: 'JetBrains Mono', monospace;
}
