:root {
  --accent: #ffd23f;
  --text: #f2f2f2;
  --muted: #b8b8b8;
  --card-bg: rgba(15, 15, 15, 0.35);
}

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

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #000;
  color: var(--text);
  overflow: hidden;
  cursor: url('assets/cursor.webp') 16 16, auto;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  z-index: 0;
}

#bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

#splash {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

#splash span {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--text);
  opacity: 0.9;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

#volume-control {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

#volume-btn {
  flex: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

#volume-btn:hover { background: rgba(255,255,255,0.18); }
#volume-btn svg { width: 18px; height: 18px; fill: currentColor; }

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  outline: none;
  opacity: 0;
  cursor: pointer;
  transition: width 0.25s ease, opacity 0.25s ease;
}

#volume-control:hover #volume-slider,
#volume-slider:focus {
  width: 80px;
  opacity: 1;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.7);
  cursor: pointer;
}

#volume-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.7);
  cursor: pointer;
}

#card {
  position: relative;
  z-index: 5;
  height: 100%;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 20px 20px 20px 25px;
  text-align: left;
}

#avatar {
  height: 110px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.25));
}

#username {
  font-size: 2.4rem;
  font-weight: 600;
  text-shadow:
    0 0 8px rgba(255,255,255,0.9),
    0 0 20px rgba(255,255,255,0.6),
    0 0 40px rgba(255,255,255,0.35);
}

#username-cursor {
  animation: blink 1s step-start infinite;
}

#bio {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  min-height: 1.4em;
}

#cursor {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

#links {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.link-icon {
  width: 35px;
  height: 35px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.link-icon:hover {
  transform: translateY(-2px);
}

.link-icon svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
  filter: drop-shadow(1px 0 7px rgba(255,255,255,0.9));
}

.trail-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
  pointer-events: none;
  z-index: 25;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,20,0.9);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  #username { font-size: 1.35rem; }
  #avatar { width: 72px; height: 72px; }
}
