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

:root {
    --bg: #030303;
    --surface: rgba(255,255,255,.035);
    --border: rgba(255,255,255,.07);
    --border-hover: rgba(255,255,255,.18);

    --text: #fff;
    --muted: rgba(255,255,255,.5);

    --accent: #fff;
    --accent2: #d6d6d6;

    --shadow: rgba(0,0,0,.75);
    --glow: rgba(255,255,255,.08);
}

html, body {
  height: 100%;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#c { position: fixed; inset: 0; z-index: 0; }

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

#enter {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
#enter.out { opacity: 0; transform: scale(0.97); pointer-events: none; }

.enter-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.62rem, 2vw, 0.75rem);
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.enter-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.5rem;
}
.enter-cursor {
  display: inline-block; width: 3px; height: 0.85em;
  background: #fff; margin-left: 4px; vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.enter-tag {
  font-size: 0.75rem; color: var(--muted);
  letter-spacing: 0.08em; margin-bottom: 3.2rem;
  font-style: italic;
}

.tap-ring {
  position: relative; width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.tap-ring::before, .tap-ring::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  animation: ripple 2.4s ease-out infinite;
}
.tap-ring::after { animation-delay: 1.2s; }
@keyframes ripple {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}
.tap-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 14px rgba(255,255,255,0.6);
}
.tap-label {
  margin-top: 1.1rem;
  font-size: 0.66rem; letter-spacing: 0.28em;
  color: rgba(255,255,255,0.22); text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
#app {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem 1.25rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease 0.15s;
  overflow-y: auto;
}
#app.visible { opacity: 1; pointer-events: auto; }

.avatar-wrap {
  position: relative; width: 82px; height: 82px;
  margin-bottom: 1rem; flex-shrink: 0;
}
.avatar-glow {

    background: conic-gradient(

        from 0deg,

        rgba(255,255,255,.18),

        rgba(255,255,255,.03),

        rgba(255,255,255,.18)

    );

    opacity: .6;

    filter: blur(6px);

}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-img {
  position: relative; z-index: 1;
  width: 82px; height: 82px; border-radius: 50%;
  background: #0f0f0f;
  border: 2.5px solid var(--bg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.avatar-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.profile-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem; font-weight: 500;
  letter-spacing: -0.01em; margin-bottom: 0.3rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.name-prefix { color: rgba(255,255,255,0.3); font-size: 1rem; }
.profile-bio {
  font-size: 0.77rem; color: var(--muted);
  text-align: center; max-width: 250px;
  line-height: 1.6; margin-bottom: 1.5rem;
  font-weight: 300;
}
.bio-dot { color: rgba(255,255,255,0.18); margin: 0 0.3em; }

.links {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem; width: 100%; max-width: 320px;
  margin-bottom: 1.2rem;
}
.link-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text); text-decoration: none;
  font-size: 0.84rem; font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  white-space: nowrap;
}
.link-btn svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.75; }
.link-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.link-btn:active { transform: scale(0.97); }

#player {
  width: 100%; max-width: 320px;
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 0.2rem 0;
}

.player-cover-row {
  display: flex; align-items: center; gap: 0.85rem;
}

#cover-img {
  width: 52px; height: 52px;
  border-radius: 10px; object-fit: cover; flex-shrink: 0;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
}

@keyframes disc-spin { to { transform: rotate(360deg); } }

.track-meta { flex: 1; min-width: 0; }
.track-title {
  font-size: 0.85rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 0.18rem; color: #fff;
}
.track-artist {
  font-size: 0.71rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.viz { display: flex; align-items: flex-end; gap: 2.5px; height: 18px; flex-shrink: 0; }
.vb {
  width: 3px; border-radius: 2px; height: 3px;
  background: rgba(255,255,255,0.6);
}
.vb.on { animation: vbar var(--s,.5s) ease-in-out infinite alternate; }
@keyframes vbar { to { height: 18px; } }

.progress-wrap {
  display: flex; align-items: center; gap: 0.55rem;
}
.progress-bar {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.1);
  position: relative; cursor: pointer;
}
.progress-fill {
  height: 100%; border-radius: 2px;
  background: #fff;
  width: 0%; transition: width 0.5s linear;
  position: relative;
}
.progress-fill::after {
  content: ''; position: absolute; right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; opacity: 0;
  transition: opacity 0.2s;
}
.progress-bar:hover .progress-fill::after { opacity: 1; }
.time-label {
  font-size: 0.63rem; color: var(--muted);
  font-family: 'JetBrains Mono', monospace; flex-shrink: 0;
}

.controls {
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
}
.ctrl {
  background: none; border: none; color: rgba(255,255,255,0.55);
  cursor: pointer; padding: 0.35rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, transform 0.12s;
}
.ctrl:hover { color: #fff; }
.ctrl:active { transform: scale(0.88); }
.ctrl svg { width: 19px; height: 19px; }
.ctrl.main {

    background: #fff;

    color: #000;

}

.ctrl.main:hover {

    background: #ececec;

}
.ctrl.main svg { width: 20px; height: 20px; }

.foot {
  position: fixed; bottom: 1rem; left: 0; right: 0;
  text-align: center; font-size: 0.6rem;
  color: rgba(255,255,255,0.12); letter-spacing: 0.12em;
  font-family: 'JetBrains Mono', monospace;
  z-index: 5; pointer-events: none;
}
