:root {
  --bg: #070b14;
  --card: rgba(10, 16, 28, 0.72);
  --line: rgba(140, 180, 255, 0.14);
  --txt: #eef3ff;
  --dim: #93a3c4;
  --blue: #2f7bff;
  --blue-hi: #5c94ff;
  --gold: #f0b232;
}

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

html, body { height: 100%; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- enter overlay ---------- */
#enter {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: opacity 0.6s ease;
}
#enter.hide { opacity: 0; pointer-events: none; }
.enter-box { text-align: center; }
.enter-brand {
  font-family: "Unbounded", sans-serif;
  font-size: 13px; letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--dim); margin-bottom: 18px;
}
.enter-btn {
  font-family: "Unbounded", sans-serif;
  font-size: 20px; font-weight: 600;
  padding: 16px 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(47, 123, 255, 0.12);
  box-shadow: 0 0 40px rgba(47, 123, 255, 0.25), inset 0 0 24px rgba(47, 123, 255, 0.08);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(47, 123, 255, 0.18); }
  50% { box-shadow: 0 0 60px rgba(47, 123, 255, 0.4); }
}

/* ---------- background ---------- */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: url("./bg.png") center / cover no-repeat;
  filter: brightness(0.85);
}
.bg-tint {
  position: fixed; inset: 0; z-index: 1;
  background: linear-gradient(135deg,
    rgba(6, 12, 22, 0.88), rgba(20, 40, 66, 0.62) 30%,
    rgba(150, 40, 60, 0.26) 58%, rgba(5, 10, 18, 0.88));
}
#snow { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

/* ---------- card ---------- */
.wrap {
  position: relative; z-index: 3;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 16px 24px;
}
.card {
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 30px 26px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(47, 123, 255, 0.08);
  animation: rise 0.8s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.avatar-ring {
  position: relative;
  width: 118px; height: 118px;
  margin: 0 auto 16px;
}
.avatar-ring::before {
  content: ""; position: absolute; inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--blue), #9fd0ff, #e04863, var(--blue));
  filter: blur(1px);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#avatar {
  position: relative;
  width: 118px; height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0a101c;
  background: #0a101c;
}
.status {
  position: absolute; right: 8px; bottom: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #23a55a;
  border: 5px solid #0a101c;
  z-index: 2;
}

.name {
  font-family: "Unbounded", sans-serif;
  font-size: 34px; font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(47, 123, 255, 0.45);
}
.uid {
  margin-top: 6px;
  font-size: 12px; color: var(--dim);
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: all;
}
.uid:hover { color: var(--blue-hi); }

.typed {
  margin-top: 10px;
  min-height: 22px;
  font-size: 15px; color: var(--dim);
}
.caret { color: var(--blue-hi); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.badges {
  display: flex; gap: 8px; justify-content: center;
  margin: 16px 0 20px;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #ffd76a;
  background: rgba(240, 178, 50, 0.1);
  border: 1px solid rgba(240, 178, 50, 0.35);
  padding: 5px 11px;
  border-radius: 999px;
}
.badge:nth-child(2) { color: #9fd0ff; background: rgba(47, 123, 255, 0.1); border-color: rgba(47, 123, 255, 0.4); }
.badge:nth-child(3) { color: #ff9db1; background: rgba(224, 72, 99, 0.1); border-color: rgba(224, 72, 99, 0.4); }

/* ---------- links ---------- */
.links { display: flex; flex-direction: column; gap: 10px; }
.link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--txt); text-decoration: none;
  font-weight: 500; font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.link:hover {
  transform: translateY(-2px);
  background: rgba(47, 123, 255, 0.12);
  border-color: rgba(47, 123, 255, 0.5);
  box-shadow: 0 8px 28px rgba(47, 123, 255, 0.25);
}
.link svg { flex: none; }
.link .go { margin-left: auto; color: var(--dim); font-size: 18px; }
.link:hover .go { color: var(--blue-hi); }

/* ---------- meta ---------- */
.meta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px;
  font-size: 13px; color: var(--dim);
}
.views { display: inline-flex; align-items: center; gap: 6px; }
.views b { color: var(--txt); font-variant-numeric: tabular-nums; }
.dot { opacity: 0.5; }

.foot {
  margin-top: 18px;
  font-size: 12px; color: var(--dim); opacity: 0.7;
  letter-spacing: 0.06em;
}

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10, 18, 30, 0.95);
  border: 1px solid rgba(47, 123, 255, 0.5);
  color: var(--txt);
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}
#toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 480px) {
  .name { font-size: 28px; }
  .card { padding: 30px 20px 22px; }
}
