:root {
  --accent: #ffffff;
  --bg-overlay: 0.35;
  --card-bg: rgba(10, 10, 10, .86);
  --card-border: rgba(255,255,255,.08);
  --card-border-hover: rgba(255,255,255,.22);
  --muted: rgba(255,255,255,.55);
  --muted-2: rgba(255,255,255,.4);
  --inner-bg: rgba(255,255,255,.04);
}

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

html, body {
  height: 100%;
  font-family: "Inter", system-ui, sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- Hintergrund ---------- */
.bg {
  position: fixed; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -3;
}
.bg video, .bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bg-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,var(--bg-overlay));
  z-index: -2;
}

/* ---------- Partikel-Canvas ---------- */
#fx { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  cursor: pointer;
  transition: opacity .7s ease, visibility .7s;
}
.splash.hide { opacity: 0; visibility: hidden; }
.splash-text {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: lowercase;
  color: rgba(255,255,255,.85);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.45} 50%{opacity:1} }

/* ---------- Content ---------- */
.content {
  position: relative;
  min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .9s ease .1s;
  overflow-y: auto;
}
.content.show { opacity: 1; }

/* ---------- Karte (eine große, vertikale Karte) ---------- */
.card {
  position: relative;
  width: min(500px, 94vw);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 12px;
  padding: 34px 26px 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 50px rgba(0,0,0,.55);
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform .18s ease-out,
    border-color .35s ease,
    box-shadow .45s ease,
    background .35s ease;
}
/* Tilt wird per JS gesetzt (folgt der Maus). Hover ändert nur Rahmen/Schatten. */
.card:hover {
  border-color: var(--card-border-hover);
  background: rgba(16, 16, 16, .9);
  box-shadow: 0 28px 70px rgba(0,0,0,.7),
              0 0 0 1px rgba(255,255,255,.05) inset;
}

/* ---------- Location (oben links) ---------- */
.card .location {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0;
  background: none;
  border: none;
  font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  text-shadow: 0 0 9px rgba(255,255,255,.5);
  z-index: 5;
}
.flag-lu {
  width: 16px; height: 11px;
  border-radius: 2px;
  background: linear-gradient(#ed2939 0 33.34%, #fff 33.34% 66.67%, #00a1de 66.67% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
  filter: drop-shadow(0 0 5px rgba(255,255,255,.45));
  flex-shrink: 0;
}

/* ---------- Lokale Uhrzeit (oben rechts) ---------- */
.card .localtime {
  position: absolute;
  top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.9);
  text-shadow: 0 0 9px rgba(255,255,255,.5);
  z-index: 5;
}
.card .localtime svg { opacity: .85; filter: drop-shadow(0 0 5px rgba(255,255,255,.4)); }

/* ---------- Avatar ---------- */
.avatar-wrap {
  position: relative;
  width: clamp(96px, 22vw, 118px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #fff 0%, #555 50%, #1a1a1a 100%);
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0a0a0a;
  background: #1a1a1a;
  display: block;
  transition: transform .4s ease;
}
.avatar-wrap { cursor: pointer; }
.avatar-wrap:hover .avatar { transform: scale(1.06); }
.presence-dot {
  position: absolute;
  right: 6%; bottom: 6%;
  width: 21%; height: 21%;
  min-width: 14px; min-height: 14px;
  border-radius: 50%;
  background: #0a0a0a;
  padding: 2px;
  box-sizing: border-box;
  display: none;
}
.presence-dot.show { display: block; }
.presence-dot svg { display: block; width: 100%; height: 100%; }

/* ---------- Name ---------- */
.name {
  display: flex; align-items: center; gap: 6px;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 2px;
}
/* Name "Rie" -> Wave-Glow, wandert zwischen Blau und Hellblau */
#display-name {
  display: inline-block;
  background: linear-gradient(to right, #2e93ff 0%, #c4e7ff 25%, #2e93ff 50%, #c4e7ff 75%, #2e93ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 9px rgba(80,165,255,.7));
  animation: textWave 3.2s linear infinite;
}
/* gemeinsamer Wave-Loop (nahtlos: Verlauf hat 2 Perioden) */
@keyframes textWave { to { background-position: 100% center; } }

.verified-wrap { display: inline-flex; align-items: center; }
.verified { fill: #fff; flex-shrink: 0; display: block; }
.verified.hide { display: none; }

/* ---------- Description / Bio ---------- */
.bio {
  min-height: 1.3em;
  color: var(--muted);
  font-size: clamp(.82rem, 2.6vw, .92rem);
  font-weight: 400;
  margin-top: -4px;
}
.caret { color: #fff; animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* "made with <3" -> glühendes, schlagendes Herz */
.bio .heart {
  display: inline-block;
  color: #ff3b5c;
  margin: 0 1px;
  text-shadow: 0 0 8px rgba(255,59,92,.85), 0 0 16px rgba(255,59,92,.5);
  animation: heartbeat 1.3s ease-in-out infinite;
  will-change: transform;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.3); }
  24%      { transform: scale(1); }
  36%      { transform: scale(1.2); }
  50%      { transform: scale(1); }
}

/* "aesthetic" -> Wave-Glow in Gold/Orange/Gelb */
.bio .glow-y {
  display: inline-block;
  background: linear-gradient(to right, #ffe14d 0%, #ff8c1a 25%, #ffe14d 50%, #ff8c1a 75%, #ffe14d 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,150,40,.8));
  animation: textWave 3.2s linear infinite;
}

/* ---------- Discord Live Card (guns.lol-style) ---------- */
.dc-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 14px 10px 10px;
  background: var(--inner-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  text-align: left;
  transform-origin: center;
  transition: transform .25s ease, background .25s, border-color .25s;
}
.dc-card[hidden] { display: none; }
.dc-card:hover {
  transform: scale(1.035);
  background: rgba(255,255,255,.07);
  border-color: var(--card-border-hover);
}
.dc-card-ava { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.dc-card-pfp {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  background: #1a1a1a; display: block;
}
.dc-card-dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #0d0d0d;
  padding: 2.5px;
  box-sizing: border-box;
}
.dc-card-dot svg { display: block; width: 100%; height: 100%; }
.dc-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dc-card-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dc-card-name {
  font-size: .92rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-card-badges { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.dc-card-badges:empty { display: none; }
.dc-card-badge {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.85);
  font-size: .9rem; line-height: 1;
}
.dc-card-badge svg { width: 16px; height: 16px; }
.dc-card-badge img { width: 16px; height: 16px; display: block; object-fit: contain; }
.dc-card-activity {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
  font-size: .77rem; color: var(--muted);
}
.dc-card-act-main { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.act-track { display: inline-flex; white-space: nowrap; will-change: transform; }
.act-seg { white-space: nowrap; }
.dc-card-act-time {
  flex-shrink: 0;
  color: rgba(255,255,255,.45);
  font-variant-numeric: tabular-nums;
}
.dc-card-act-time[hidden] { display: none; }

/* ---------- Links (guns.lol-Stil: schlichte weiße Glyphen + Glow) ---------- */
.socials {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px;
  margin-top: 10px;
}
.socials a {
  position: relative;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.45));
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
  opacity: .92;
}
.socials a:hover {
  transform: translateY(-3px) scale(1.14);
  filter: drop-shadow(0 0 11px rgba(255,255,255,.95));
  opacity: 1;
}
.socials a img {           /* optionales eigenes Bild-Logo, Glyph bleibt Standard */
  width: 100%; height: 100%; object-fit: contain; pointer-events: none;
}
.socials svg { width: 100%; height: 100%; display: block; }

/* ---------- Generischer Mini-Tooltip beim Hovern (überall nutzbar via class="tip" data-tip="…") ---------- */
.tip { position: relative; }
.tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(5px);
  padding: 4px 9px;
  background: rgba(22,22,22,.78); color: #f2f2f2;
  -webkit-text-fill-color: #f2f2f2;   /* überschreibt evtl. vererbtes transparent (Gradient-Text) */
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  font-size: .7rem; font-weight: 700;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}
.tip[data-tip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(5px);
  border: 5px solid transparent; border-top-color: rgba(22,22,22,.78);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}
.tip[data-tip]:hover::after,
.tip[data-tip]:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Musik-Player (in der Karte) ---------- */
.player {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 9px 10px;
  background: var(--inner-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  transform-origin: center;
  transition: transform .25s ease, background .25s, border-color .25s;
}
.player.hidden { display: none; }
.player:hover {
  transform: scale(1.035);
  background: rgba(255,255,255,.07);
  border-color: var(--card-border-hover);
}
.player-cover { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: #1a1a1a; flex-shrink: 0; }
.player-mid { flex: 1; min-width: 0; text-align: left; }
.player-meta { display: flex; flex-direction: column; line-height: 1.2; }
.player-title { font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar { height: 3px; margin-top: 7px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; cursor: pointer; }
.player-progress { height: 100%; width: 0; background: #fff; border-radius: 4px; }
.player-controls { display: flex; align-items: center; gap: 1px; }
.pbtn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: transparent; border: none; color: rgba(255,255,255,.75);
  border-radius: 7px; cursor: pointer; transition: background .2s, color .2s;
}
.pbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.pbtn-main { color: #fff; }

/* "Listening along with …"-Button (ersetzt die Controls beim Mithören) */
.la-stop {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  max-width: 62%;
  padding: 6px 12px;
  background: var(--inner-bg);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(255,255,255,.85);
  font-size: .68rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.la-stop[hidden] { display: none; }
.la-stop .la-stop-text { overflow: hidden; text-overflow: ellipsis; }
.la-stop:hover {
  transform: translateY(-1px);
  border-color: var(--card-border-hover);
  color: #fff;
}
/* dezenter Akzent am Player, während man mithört */
.player.la-active { border-color: var(--card-border-hover); background: rgba(255,255,255,.06); }

/* ---------- Discord Server Embed (in der Karte) ---------- */
.dc-server {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 9px 10px;
  background: var(--inner-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  color: #fff;
  text-align: left;
  transform-origin: center;
  transition: transform .25s ease, background .25s, border-color .25s;
}
.dc-server[hidden] { display: none; }
.dc-server:hover { transform: scale(1.035); background: rgba(255,255,255,.07); border-color: var(--card-border-hover); }
.dc-server-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  overflow: hidden;
}
.dc-server-icon-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.dc-server-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dc-server-name { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-server-meta { display: flex; align-items: center; gap: 4px; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.dc-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.6); flex-shrink: 0; }
.dc-sep { opacity: .5; }
.dc-server-join {
  flex-shrink: 0;
  padding: 6px 14px;
  background: #fff; color: #000;
  border-radius: 8px;
  font-size: .72rem; font-weight: 700;
  transition: transform .2s;
}
.dc-server:hover .dc-server-join { transform: translateY(-1px); }

/* ---------- Footer / Views ---------- */
.card-foot { display: flex; justify-content: center; margin-top: 6px; }
.views { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: .72rem; }

/* ---------- Easter-Egg: Herz-/Konfetti-Burst ---------- */
.burst-particle {
  position: fixed; z-index: 9999; pointer-events: none;
  left: 0; top: 0;
  color: #ff3b5c;
  text-shadow: 0 0 6px rgba(255,59,92,.7);
  animation-name: burstFly;
  animation-timing-function: cubic-bezier(.18,.7,.35,1);
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}
.burst-particle.confetti {
  width: 7px; height: 7px; border-radius: 1px;
  background: #fff; color: transparent;
  box-shadow: 0 0 6px rgba(255,255,255,.6);
}
@keyframes burstFly {
  0%   { transform: translate(-50%,-50%) scale(.3); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 90px)) scale(.9) rotate(var(--rot, 40deg)); opacity: 0; }
}

/* ---------- Listen Along ---------- */
.yt-wrap {
  position: fixed; left: -9999px; bottom: 0;
  width: 200px; height: 1px; opacity: 0; pointer-events: none;
}
.listen-along {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px;
  background: var(--inner-bg);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(255,255,255,.85);
  font-size: .68rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.listen-along[hidden] { display: none; }
.listen-along:hover { transform: translateY(-1px); border-color: var(--card-border-hover); color: #fff; }
.listen-along.active {
  background: #fff; color: #000; border-color: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .card { padding: 30px 20px 20px; }
}
