/* ── Reset & Variablen ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #ffffff;
  --card-bg: rgba(255, 255, 255, var(--card-opacity, 0.05));
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --spotify-green: #1db954;
  --status-online: #23a55a;
  --status-idle: #f0b232;
  --status-dnd: #f23f43;
  --status-offline: #80848e;
  --overlay-opacity: 0.55;
  --card-opacity: 0.05;
  --card-blur: 24px;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* ── Cursor ── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  mix-blend-mode: difference;
}

.cursor.hover {
  width: 24px;
  height: 24px;
}

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.025) 0%, transparent 65%);
  transition: transform 0.4s ease;
}

/* ── Particle canvas ── */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Hintergrundvideo ── */
#bgVideo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-opacity));
  z-index: -1;
}

/* ── Audio Toggle ── */
.audio-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease;
  color: var(--text-secondary);
}

.audio-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* ── Profilkarte ── */
.profile-card {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, var(--card-opacity));
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px 28px 24px;
  width: 330px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  transform-style: preserve-3d;
  will-change: transform;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 40px 80px rgba(0,0,0,0.6);
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Profil-Link ── */
.profile-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: opacity 0.2s ease, transform 0.15s ease;
  cursor: none;
}

.profile-link:hover { opacity: 0.85; transform: translateY(-2px); }

.profile-link:hover .avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.profile-link:hover .username {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.4);
}

/* ── Lade-Animation ── */
.loading {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

.loading-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.loading-dots span {
  width: 7px;
  height: 7px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: dotPulse 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ── Avatar ── */
.avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--card-border);
  transition: box-shadow 0.2s ease;
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(10,10,10,0.9);
  transition: background 0.4s ease;
}

.status-dot.online  { background: var(--status-online); }
.status-dot.idle    { background: var(--status-idle); }
.status-dot.dnd     { background: var(--status-dnd); }
.status-dot.offline { background: var(--status-offline); }

/* ── Nutzername & Status ── */
.user-info {
  text-align: center;
  margin-bottom: 4px;
}

.username {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  transition: text-decoration 0.2s ease;
}

.custom-status {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 5px;
  min-height: 18px;
}

/* ── Bio ── */
.bio-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 10px 0 4px;
  padding: 0 4px;
}

/* ── Social Links ── */
.social-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 4px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  fill: rgba(255,255,255,0.8);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: none;
}

.social-btn svg {
  display: block;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}

/* SVGs inside clickable elements must not capture mouse events 
   otherwise the custom cursor shrinks when hovering over icons */
a svg, button svg {
  pointer-events: none;
}

.social-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* ── Trennlinie ── */
.section-divider {
  height: 1px;
  background: var(--card-border);
  margin: 16px 0;
}

/* ── Sektion-Label ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}


.spotify-art {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}

.spotify-info {
  flex: 1;
  min-width: 0;
}

.spotify-song {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-artist {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-progress-wrapper {
  margin-top: 9px;
}

.spotify-timestamps {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}

.spotify-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}

.spotify-progress-fill {
  height: 100%;
  background: var(--spotify-green);
  border-radius: 2px;
  transition: width 1s linear;
  width: 0%;
}

/* ── Aktivitäten ── */
.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 6px;
}

.activity-item:last-child { margin-bottom: 0; }

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}

.activity-info { flex: 1; min-width: 0; }

.activity-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-detail {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Animationen ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px) perspective(1000px);
  }
  to {
    opacity: 1;
    transform: translateY(0) perspective(1000px);
  }
}


/* ════════════════════════════════════════════════
   TWITCH LIVE BADGE & SECTION
════════════════════════════════════════════════ */

/* Wrapper: full-width block, centers inline children */
.twitch-badge-center {
  text-align: center;
  margin-top: 6px;
  padding-top: 2px;
  overflow: visible;
}

/* Badge: inline-flex so text-align:center on parent works.
   Size/padding exactly as original — nothing changed here. */
.twitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(145, 70, 255, 0.18);
  border: 1px solid rgba(145, 70, 255, 0.35);
  color: #c4a3ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 5px;
  text-decoration: none;
  cursor: none;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.twitch-badge:hover {
  transform: translateY(-2px);
  background: rgba(145, 70, 255, 0.28);
  border-color: rgba(145, 70, 255, 0.55);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #ff4040;
  border-radius: 50%;
  animation: live-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.3; transform: scale(0.75); }
}

.twitch-section {
  padding: 4px 0 2px;
}

.twitch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.twitch-toggle-btn {
  background: rgba(145, 70, 255, 0.15);
  border: 1px solid rgba(145, 70, 255, 0.3);
  color: #c4a3ff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.twitch-toggle-btn:hover {
  background: rgba(145, 70, 255, 0.28);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════
   STEAM NOW PLAYING
════════════════════════════════════════════════ */

.steam-section {
  padding: 4px 0 2px;
}



.steam-art {
  width: 80px;
  height: 37px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.steam-game-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════
   EFFECT: CARD AURA GLOW  (class added by fx-extras.js)
════════════════════════════════════════════════ */

.fx-aura {
  animation: fx-aura-cycle 5s ease-in-out infinite;
}

@keyframes fx-aura-cycle {
  0%,  100% { box-shadow: 0 0 24px 6px rgba(255, 0, 128, 0.38), 0 8px 32px rgba(0,0,0,0.45); }
  33%        { box-shadow: 0 0 24px 6px rgba(64, 220, 208, 0.38), 0 8px 32px rgba(0,0,0,0.45); }
  66%        { box-shadow: 0 0 24px 6px rgba(120, 40, 200, 0.45), 0 8px 32px rgba(0,0,0,0.45); }
}
.spotify-content {
  text-decoration: none;
  cursor: none;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.spotify-content:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.steam-content {
  text-decoration: none;
  cursor: none;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.steam-content:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}
