:root {
  --text:        #f5f5f7;
  --text-muted:  #9a9aa0;
  --card-bg:     rgba(0, 0, 0, 0.521);
  --card-border: rgba(255, 255, 255, 0.06);
  --overlay:     rgba(0, 0, 0, 0.5);
  --blur:        15px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #000;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#bg-video {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
#bg-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: -1;
}

#enter {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  cursor: pointer;
  transition: opacity 0.6s ease;
}
#enter.hidden { opacity: 0; pointer-events: none; }
#enter .prompt { text-align: center; animation: pulse 2s ease-in-out infinite; }
#enter h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

main {
  position: relative;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.6s ease 0.15s;
}
main.visible { opacity: 1; }

.card {
  width: min(480px, 100%);
  background: var(--card-bg);
  border: none;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  padding: 1.5rem 1.25rem;
  animation: cardIn 0.6s ease 0.2s both;
  will-change: transform;
}
.card.tilt-ready {
  transition: transform 0.15s ease-out;
}
.card.tilt-ready.tilt-reset {
  transition: transform 0.5s ease;
}
@keyframes cardIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.avatar-wrap { display: flex; justify-content: center; margin-bottom: 0.75rem; }
.avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  object-fit: cover;
}

.name {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.bio {
  text-align: center;
  color: var(--text-muted);
  margin: 0.5rem 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.socials {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem;
}
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
  text-decoration: none;
}
.socials a:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.socials svg { width: 17px; height: 17px; }

.crypto {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.crypto button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.crypto button:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.crypto svg { width: 17px; height: 17px; }

.crypto button::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(0,0,0,0.9);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 5px 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  border: 1px solid var(--card-border);
}
.crypto button:hover::after,
.crypto button.copied::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.audio-ctrl {
  position: fixed;
  bottom: 1rem; right: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(var(--blur));
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}
main.visible ~ .audio-ctrl { opacity: 1; }
.audio-ctrl button {
  background: none; border: none; color: var(--text);
  cursor: pointer; display: flex; align-items: center; padding: 0;
}
.audio-ctrl svg { width: 16px; height: 16px; }
.audio-ctrl input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 70px; height: 2px;
  background: rgba(255,255,255,0.2);
  outline: none; cursor: pointer;
}
.audio-ctrl input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
}
