/* =========================================================
   MyNameIsKillua — Nebula Bio
   Theme: Purple & Black  |  Style easy tweakbar via :root
   ========================================================= */

:root {
  /* --- Farben --- */
  --bg:           #05030a;
  --bg-2:         #0b0716;
  --purple:       #a855f7;
  --purple-deep:  #6d28d9;
  --magenta:      #d946ef;
  --pink:         #ec4899;
  --glow:         #b14bff;
  --text:         #efe9ff;
  --muted:        #a394c9;
  --line:         rgba(168, 85, 247, 0.25);

  /* --- Fonts (Name-Font hier tauschen: 'Cinzel Decorative' | 'Unbounded') --- */
  --font-display: 'Cinzel Decorative', 'Unbounded', serif;
  --font-ui:      'Outfit', system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  background: radial-gradient(140% 120% at 50% 0%, var(--bg-2) 0%, var(--bg) 55%, #020104 100%);
  color: var(--text);
  font-family: var(--font-ui);
  overflow: hidden;
  cursor: default;
}

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

/* =========================================================
   HINTERGRUND
   ========================================================= */

#stars {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.nebula {
  position: fixed; inset: -20%;
  z-index: 0;
  filter: blur(60px);
  pointer-events: none;
}
.nebula__blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}
.nebula__blob--1 {
  width: 46vw; height: 46vw;
  top: 8%; left: 12%;
  background: radial-gradient(circle, var(--purple) 0%, transparent 65%);
  animation: drift1 22s ease-in-out infinite;
}
.nebula__blob--2 {
  width: 40vw; height: 40vw;
  bottom: 6%; right: 10%;
  background: radial-gradient(circle, var(--magenta) 0%, transparent 65%);
  animation: drift2 26s ease-in-out infinite;
}
.nebula__blob--3 {
  width: 32vw; height: 32vw;
  top: 40%; left: 45%;
  background: radial-gradient(circle, var(--purple-deep) 0%, transparent 70%);
  animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(8%, 6%) scale(1.15)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-7%,-5%) scale(1.1)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-6%, 7%) scale(1.2)} }

.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 480px; height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177,75,255,0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-100px,-100px);
  transition: transform 0.18s ease-out;
  mix-blend-mode: screen;
}

.vignette {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(2,1,6,0.85) 100%);
}

/* Aurora-Baender (fliessende Polarlicht-Schleier am Rand) */
.aurora { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.aurora__band {
  position: absolute; left: -20%; width: 140%; height: 50%;
  filter: blur(54px);
  opacity: 0.4;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent 0%, rgba(180,100,255,0.75) 22%, rgba(232,90,255,0.7) 48%, rgba(120,130,255,0.65) 72%, transparent 100%);
  background-size: 220% 100%;
  will-change: transform, background-position;
}
.aurora__band--top    { top: -16%;    animation: auroraTop 17s ease-in-out infinite; }
.aurora__band--bottom { bottom: -16%; animation: auroraBottom 21s ease-in-out infinite; }
@keyframes auroraTop {
  0%,100% { transform: translateX(-9%) skewX(-9deg) scaleY(1);    background-position: 0% 0; }
  50%     { transform: translateX(9%)  skewX(9deg)  scaleY(1.25); background-position: 100% 0; }
}
@keyframes auroraBottom {
  0%,100% { transform: translateX(7%)  skewX(7deg)  scaleY(1.1);  background-position: 100% 0; }
  50%     { transform: translateX(-7%) skewX(-7deg) scaleY(0.85); background-position: 0% 0; }
}

/* Bokeh-Orbs (weiche Lichtkugeln, schweben hoch) */
.bokeh {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bokeh__orb {
  position: absolute; bottom: -15%;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation-name: bokehRise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes bokehRise {
  0%   { transform: translateY(0) scale(0.7);    opacity: 0; }
  12%  { opacity: var(--o, 0.3); }
  88%  { opacity: var(--o, 0.3); }
  100% { transform: translateY(-125vh) scale(1.15); opacity: 0; }
}

/* Film-Grain (dezente Koernung ueber dem Hintergrund) */
.grain {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.5s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4%, -3%); }
  50%  { transform: translate(3%, -4%); }
  75%  { transform: translate(-3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* FX-Canvas fuer das Intro (Partikel-Burst) */
#fx {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 40;
  pointer-events: none;
}

/* =========================================================
   ENTER / REVEAL
   ========================================================= */

.enter {
  position: fixed; inset: 0;
  z-index: 50;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 50%, rgba(11,7,22,0.85), rgba(2,1,5,0.97));
  backdrop-filter: blur(2px);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.enter.is-hidden { opacity: 0; visibility: hidden; }

.enter__inner {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  animation: floaty 5s ease-in-out infinite;
}
.enter__line {
  width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  opacity: 0.6;
}
.enter__btn {
  display: flex; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 12px var(--glow), 0 0 30px rgba(177,75,255,0.6);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  animation: pulseText 2.6s ease-in-out infinite;
}
.enter__btn:hover {
  transform: scale(1.06);
  text-shadow: 0 0 18px #fff, 0 0 40px var(--glow), 0 0 70px var(--magenta);
}
.enter__cloud { font-size: 0.8em; opacity: 0.85; filter: drop-shadow(0 0 8px var(--glow)); }

@keyframes pulseText { 0%,100%{opacity:0.82} 50%{opacity:1} }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* =========================================================
   STAGE + CARD
   ========================================================= */

.stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid; place-items: center;
  padding: 24px;
  perspective: 1100px;
  opacity: 0;
  transition: opacity 1s ease 0.2s;
}
.stage.is-visible { opacity: 1; }

.card {
  position: relative;
  width: min(420px, 92vw);
  padding: 38px 30px 26px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(28,18,46,0.72), rgba(10,6,20,0.82));
  box-shadow:
    0 0 0 1px rgba(217,70,239,0.08),
    0 30px 80px rgba(0,0,0,0.65),
    0 0 60px rgba(124,58,237,0.25);
  backdrop-filter: blur(14px) saturate(140%);
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
  will-change: transform;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animierter Gradient-Border */
.card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--purple), var(--magenta), var(--purple-deep), var(--pink));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.85;
  transform: translateZ(1px);          /* vor den Banner holen -> umrahmt ihn rundum */
  animation: borderFlow 8s linear infinite;
  pointer-events: none;
}
@keyframes borderFlow { 0%{background-position:0% 50%} 100%{background-position:300% 50%} }

/* Shine/Glare folgt der Maus */
.card__shine {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.card:hover .card__shine { opacity: 1; }

.card__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  transform-style: preserve-3d;
  animation: cardIn 1s cubic-bezier(.2,.9,.2,1) both;
}

/* Parallax-Tiefe */
.layer { transform: translateZ(0); transition: transform 0.2s ease-out; }

/* =========================================================
   BANNER (Discord-Style)
   ========================================================= */

.banner {
  position: relative;
  width: calc(100% + 60px);     /* blutet ueber das Card-Padding (2x30px) */
  height: 116px;
  margin: -38px -30px 0;        /* zieht bis an die Card-Kanten */
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid rgba(178,75,255,0.55);   /* durchgehende Trennlinie */
  box-shadow: 0 1px 16px rgba(124,58,237,0.35);     /* sanfter Glow darunter */
  overflow: hidden;
  z-index: 1;
}
.banner__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner__fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 38%, rgba(11,7,22,0.6) 78%, rgba(11,7,22,0.96) 100%);
}

/* =========================================================
   AVATAR
   ========================================================= */

.avatar {
  position: relative;
  z-index: 2;
  width: 116px; height: 116px;
  margin: -58px 0 14px;         /* ueberlappt den Banner */
}
.avatar__img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 26px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 30px rgba(177,75,255,0.55);
}
.avatar__ring {
  position: absolute; inset: -8px;
  border-radius: 32px;
  background: conic-gradient(from 0deg, var(--purple), var(--magenta), var(--pink), var(--purple));
  filter: blur(7px);
  opacity: 0.85;
  z-index: -1;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar__status {
  position: absolute; right: 4px; bottom: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #0b0716;
  box-shadow: 0 0 10px #22c55e;
  transition: background 0.3s, box-shadow 0.3s;
}

/* =========================================================
   NAME + HANDLE
   ========================================================= */

.name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.1;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #e9b8ff 45%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(177,75,255,0.85)) drop-shadow(0 0 30px rgba(217,70,239,0.5));
  margin-bottom: 10px;
  animation: nameGlow 4s ease-in-out infinite;
}
@keyframes nameGlow {
  0%,100% { filter: drop-shadow(0 0 12px rgba(177,75,255,0.7)) drop-shadow(0 0 26px rgba(217,70,239,0.4)); }
  50%     { filter: drop-shadow(0 0 20px rgba(177,75,255,1)) drop-shadow(0 0 44px rgba(217,70,239,0.7)); }
}

.handle {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 14px;
}
.handle__at  { color: #cbb6f5; }
.handle__dot { opacity: 0.5; }
.handle__tag { color: var(--purple); }
.badge-0day {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.5px;
  color: #ffd0d0;
  background: rgba(236,72,153,0.15);
  border: 1px solid rgba(236,72,153,0.4);
  padding: 2px 8px; border-radius: 20px;
  box-shadow: 0 0 12px rgba(236,72,153,0.3);
}

/* =========================================================
   MINI-BADGES
   ========================================================= */

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.badge {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  font-size: 15px; line-height: 1;
  background: rgba(168,85,247,0.10);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.badge:hover {
  transform: translateY(-4px) scale(1.12);
  border-color: var(--bc, var(--purple));
  background: color-mix(in srgb, var(--bc, var(--purple)) 18%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--bc, var(--purple)) 60%, transparent);
}
/* Glyph-Badges (✓ und </>) statt Emoji */
.badge--glyph {
  font-size: 12px; font-weight: 700;
  color: var(--bc, var(--purple));
  font-family: var(--font-ui);
}
/* Pentagram-Badge (666) — gezeichnet statt Emoji */
.badge--pent svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--bc, var(--purple));
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: filter 0.2s ease;
}
.badge--pent:hover svg { filter: drop-shadow(0 0 5px var(--bc, var(--purple))); }
.badge--security {
  color: var(--bc, #22d3ee);
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
  font-size: 15px;
  filter: drop-shadow(0 0 5px rgba(34,211,238,0.38));
}

/* =========================================================
   CUSTOM TOOLTIPS (statt haesslichem Browser-Default)
   ========================================================= */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%; bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px) scale(0.96);
  padding: 5px 11px;
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  color: #f1ebff; white-space: nowrap;
  background: linear-gradient(180deg, rgba(40,22,62,0.96), rgba(18,10,30,0.96));
  border: 1px solid color-mix(in srgb, var(--bc, var(--c, var(--purple))) 55%, var(--line));
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.55),
              0 0 16px color-mix(in srgb, var(--bc, var(--c, var(--purple))) 45%, transparent);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s cubic-bezier(.2,.9,.2,1.4);
  z-index: 20;
}
[data-tip]::before {
  content: "";
  position: absolute;
  left: 50%; bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: rgba(30,16,46,0.96);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 20;
}
[data-tip]:hover::after  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
[data-tip]:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   ROTIERENDE TAGLINE
   ========================================================= */

.tagline {
  min-height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  margin-bottom: 16px;
  padding: 0 4px;
}
.tagline__quote {
  font-size: 14px; line-height: 1.5;
  color: #d9ccf5; font-style: italic;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.tagline__src {
  font-size: 11px; color: var(--purple);
  margin-top: 6px; letter-spacing: 0.4px;
  transition: opacity 0.55s ease;
}
.tagline.is-out .tagline__quote { opacity: 0; transform: translateY(7px); }
.tagline.is-out .tagline__src   { opacity: 0; }

.divider {
  width: 78%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 4px 0 18px;
}

/* =========================================================
   DISCORD PRESENCE (Lanyard)
   ========================================================= */

.presence {
  display: flex; align-items: center; gap: 10px;
  max-width: 100%;
  padding: 8px 13px 8px 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(88,101,242,0.10);              /* leichter Discord-Blurple-Tint */
  border: 1px solid rgba(88,101,242,0.30);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.presence:hover { border-color: #5865f2; box-shadow: 0 0 14px rgba(88,101,242,0.4); background: rgba(88,101,242,0.16); }
.presence__brand { width: 18px; height: 18px; fill: #7d8cf5; flex: 0 0 auto; }
.presence__art { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.presence__body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.presence__label {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.7px; text-transform: uppercase;
  color: #9fa8e8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.presence__text {
  font-size: 12.5px; color: #e2d8f7;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.presence__text b { color: #fff; font-weight: 600; }
.presence__dot {
  position: relative;
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; color: #22c55e;
  box-shadow: 0 0 8px currentColor;
  flex: 0 0 auto; margin-left: auto;            /* nach rechts schieben */
}
.presence__dot::after {                          /* Live-Puls in Status-Farbe */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 currentColor;
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 0.7; }
  100% { box-shadow: 0 0 0 7px transparent; opacity: 0; }
}

/* =========================================================
   SOCIALS
   ========================================================= */

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-bottom: 22px; }
.social {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.social svg { width: 20px; height: 20px; fill: #cdbdf0; transition: fill 0.25s; }
.social__logo {
  width: 22px; height: 22px; object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.25s, filter 0.25s;
}
/* Logo mit schwarzem Hintergrund -> Schwarz wird per screen-Blend unsichtbar */
.social__logo--blend { mix-blend-mode: screen; }
/* Farbige Logos mit transparentem Hintergrund -> etwas groesser, fuellen den Button */
.social__logo--badge { width: 27px; height: 27px; }
/* Logo mit solidem Hintergrund (Discord-JPG) -> rund zuschneiden = sauberer Chip */
.social__logo--chip { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.social:hover .social__logo { opacity: 1; filter: drop-shadow(0 0 6px var(--c)); }
.social:hover {
  transform: translateY(-5px) scale(1.08);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border-color: var(--c);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 45%, transparent), 0 0 18px color-mix(in srgb, var(--c) 35%, transparent);
}
.social:hover svg { fill: var(--c); }

/* =========================================================
   FOOTER (Views + Musik)
   ========================================================= */

.card__footer {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.views {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.views svg { width: 17px; height: 17px; fill: var(--purple); filter: drop-shadow(0 0 4px var(--glow)); }

.music-control {
  display: flex; align-items: center; gap: 8px;
}
.music {
  display: flex; align-items: center; gap: 9px;
  background: rgba(168,85,247,0.1);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.music:hover { color: #fff; border-color: var(--purple); box-shadow: 0 0 14px rgba(168,85,247,0.4); }
.music svg { width: 16px; height: 16px; }
.music__bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.music__bars i {
  width: 2.5px; height: 4px;
  background: currentColor; border-radius: 2px;
}
.music.is-playing { color: var(--magenta); border-color: var(--magenta); }
/* Fallback-Equalizer (laeuft, wenn kein echter Audio-Visualizer aktiv ist) */
.music.is-playing .music__bars i { animation: eq 0.9s ease-in-out infinite; }
.music.is-playing .music__bars i:nth-child(2) { animation-delay: 0.15s; }
.music.is-playing .music__bars i:nth-child(3) { animation-delay: 0.3s; }
.music.is-playing .music__bars i:nth-child(4) { animation-delay: 0.45s; }
/* Echter Visualizer: JS setzt die Hoehen -> CSS-Animation aus */
.music.is-visualizing .music__bars i { animation: none !important; }
@keyframes eq { 0%,100%{height:4px} 50%{height:14px} }

.volume__slider {
  --volume: 33%;
  appearance: none;
  -webkit-appearance: none;
  width: 76px; height: 18px;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.volume__slider::-webkit-slider-runnable-track {
  height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, var(--magenta) 0 var(--volume), rgba(163,148,201,0.28) var(--volume) 100%);
  box-shadow: 0 0 8px rgba(217,70,239,0.18);
}
.volume__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  margin-top: -4.5px;
  border: 2px solid #f5eaff; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px rgba(217,70,239,0.7);
  transition: transform 0.15s, box-shadow 0.15s;
}
.volume__slider::-moz-range-track {
  height: 4px; border-radius: 99px;
  background: rgba(163,148,201,0.28);
}
.volume__slider::-moz-range-progress {
  height: 4px; border-radius: 99px;
  background: var(--magenta);
  box-shadow: 0 0 8px rgba(217,70,239,0.18);
}
.volume__slider::-moz-range-thumb {
  width: 10px; height: 10px;
  border: 2px solid #f5eaff; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px rgba(217,70,239,0.7);
  transition: transform 0.15s, box-shadow 0.15s;
}
.volume__slider:hover::-webkit-slider-thumb,
.volume__slider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 14px rgba(217,70,239,0.95);
}
.volume__slider:hover::-moz-range-thumb,
.volume__slider:focus-visible::-moz-range-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 14px rgba(217,70,239,0.95);
}
.volume__slider:focus-visible {
  border-radius: 99px;
  box-shadow: 0 0 0 3px rgba(168,85,247,0.2);
}
.volume__value {
  width: 28px;
  color: var(--muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* =========================================================
   TOAST (Easter-Egg)
   ========================================================= */

.toast {
  position: fixed;
  left: 50%; bottom: 42px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 14px;
  background: rgba(18,8,26,0.92);
  border: 1px solid var(--magenta);
  color: #fff; font-size: 14px; letter-spacing: 1px;
  box-shadow: 0 0 26px rgba(217,70,239,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, transform .4s ease, visibility .4s;
  z-index: 60; pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* =========================================================
   666 MODE (Konami-Code Easter-Egg)
   ========================================================= */

body.mode-666 {
  --purple: #ff2b2b;
  --purple-deep: #7f0d0d;
  --magenta: #ff1744;
  --pink: #ff5252;
  --glow: #ff2d2d;
  --line: rgba(255,43,43,0.30);
  animation: flash666 0.5s ease;
}
body.mode-666 .name {
  background: linear-gradient(180deg, #fff 0%, #ff9a9a 45%, #ff2b2b 100%);
  -webkit-background-clip: text; background-clip: text;
}
body.mode-666 .avatar__status { background: #ff2b2b; box-shadow: 0 0 10px #ff2b2b; }
@keyframes flash666 { 0%{filter:none} 50%{filter:hue-rotate(-18deg) brightness(1.25) saturate(1.3)} 100%{filter:none} }

/* 666 Lightning (rote Blitz-Flashes im Evil-Mode) */
.lightning {
  position: fixed; inset: 0; z-index: 39;
  pointer-events: none; opacity: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255,42,42,0.55), transparent 65%);
}
.lightning.flash { animation: ltFlash 0.45s ease-out; }
@keyframes ltFlash {
  0%   { opacity: 0; }
  8%   { opacity: 0.92; }
  18%  { opacity: 0.15; }
  28%  { opacity: 0.7; }
  100% { opacity: 0; }
}

/* =========================================================
   RESPONSIVE / MOTION
   ========================================================= */

@media (max-width: 480px) {
  .card { padding: 32px 22px 22px; }
  .banner { width: calc(100% + 44px); margin: -32px -22px 0; }
  .cursor-glow { display: none; }
}
@media (max-width: 360px) {
  .music-control { gap: 5px; }
  .music { gap: 6px; padding: 6px 9px; }
  .volume__slider { width: 56px; }
  .volume__value { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* =========================================================
   LITE-MODE — automatisch bei schwacher Performance
   (z.B. wenn Hardware-Beschleunigung im Browser aus ist).
   Schaltet die GPU-teuersten Effekte ab -> kein Lag.
   ========================================================= */
body.lite .card { backdrop-filter: none; background: linear-gradient(165deg, rgba(26,16,42,0.97), rgba(10,6,20,0.98)); }
body.lite .grain,
body.lite .bokeh,
body.lite .aurora,
body.lite .cursor-glow { display: none !important; }
body.lite .nebula { filter: blur(26px); opacity: 0.4; }
body.lite .nebula__blob { animation: none !important; }
body.lite .card::before { animation: none !important; }
body.lite .avatar__ring { animation: none !important; filter: blur(5px); }
body.lite .name { animation: none !important; }
body.lite .name { filter: drop-shadow(0 0 12px rgba(177,75,255,0.8)); }

/* =========================================================
   SCROLL-CUE + KOMMENTAR-WALL
   ========================================================= */

/* Seite wird erst nach dem Reveal scrollbar */
body.entered { overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }

/* Scroll-Hinweis am unteren Hero-Rand */
.scrollcue {
  position: absolute; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: var(--font-ui);
  font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease, color .25s;
  z-index: 3;
}
.stage.is-visible .scrollcue { opacity: 0.78; pointer-events: auto; animation: cueFloat 2.4s ease-in-out infinite; }
.scrollcue:hover { color: var(--text); }
.scrollcue.is-hidden { opacity: 0 !important; pointer-events: none; animation: none; }
.scrollcue__chevs { position: relative; width: 18px; height: 16px; }
.scrollcue__chevs i {
  position: absolute; left: 1px; width: 14px; height: 14px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); border-radius: 1px;
}
.scrollcue__chevs i:nth-child(1) { top: -3px; opacity: 0.5; }
.scrollcue__chevs i:nth-child(2) { top: 3px; }
@keyframes cueFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* Wall-Container */
.wall { position: relative; z-index: 2; display: flex; justify-content: center; padding: 36px 20px 92px; }
.wall__card {
  position: relative;
  width: min(560px, 94vw);
  background: linear-gradient(165deg, rgba(28,18,46,0.74), rgba(10,6,20,0.86));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(124,58,237,0.18);
  backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.wall__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
}
.wall__title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: 0.4px; color: var(--text); }
.wall__icon { width: 20px; height: 20px; stroke: var(--purple); filter: drop-shadow(0 0 6px var(--glow)); }
.wall__live {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: #9ff0b8;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
}
.wall__livedot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: livePulse2 1.8s ease-out infinite; }
@keyframes livePulse2 { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); } 100% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }

/* Nachrichtenliste */
.wall__scroll { max-height: 460px; overflow-y: auto; padding: 12px; scrollbar-width: thin; scrollbar-color: rgba(168,85,247,0.5) transparent; }
.wall__scroll::-webkit-scrollbar { width: 8px; }
.wall__scroll::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.4); border-radius: 8px; }
.wall__scroll::-webkit-scrollbar-track { background: transparent; }
.wall__list { display: flex; flex-direction: column; gap: 10px; }
.wall__empty { text-align: center; color: var(--muted); padding: 34px 10px; font-size: 14px; }

/* Einzelner Kommentar */
.cmt { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px;
  background: rgba(168,85,247,0.06); border: 1px solid var(--line); border-radius: 14px;
  animation: cmtIn 0.4s cubic-bezier(.2,.9,.2,1.2) both; }
@keyframes cmtIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cmt__av { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.cmt__body { min-width: 0; flex: 1; }
.cmt__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.cmt__name { font-weight: 600; font-size: 13.5px; color: #e9ddff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58%; }
.cmt__time { font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }
/* Owner (Killua, eingeloggt) — Crown + Gold-Name + dezenter Glow */
.cmt.is-owner { border-color: rgba(253,224,71,0.42); background: rgba(253,224,71,0.055);
  box-shadow: inset 0 0 22px rgba(253,224,71,0.10); }
.cmt.is-owner .cmt__av { border-color: rgba(253,224,71,0.45); box-shadow: 0 0 10px rgba(253,224,71,0.25); }
.cmt.is-owner .cmt__name { color: #ffe08a; text-shadow: 0 0 10px rgba(253,224,71,0.35); }
.cmt__crown { font-size: 12.5px; line-height: 1; filter: drop-shadow(0 0 5px rgba(253,224,71,0.7)); flex: 0 0 auto; }
.cmt__msg { font-size: 13.5px; line-height: 1.5; color: #d9ccf5; word-break: break-word; white-space: pre-wrap; }
/* Herz-Reaktion */
.cmt__heart {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px; padding: 3px 9px 3px 7px;
  background: rgba(168,85,247,0.08); border: 1px solid var(--line); border-radius: 20px;
  color: var(--muted); font: inherit; font-size: 11.5px; line-height: 1.4;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.cmt__heart:hover { border-color: var(--purple); background: color-mix(in srgb, var(--purple) 16%, transparent); transform: translateY(-1px); }
.cmt__heart.is-liked { border-color: var(--purple); color: #e9ddff; background: color-mix(in srgb, var(--purple) 20%, transparent); }
.cmt__hicon { font-size: 12.5px; line-height: 1; }
.cmt__hnum { font-variant-numeric: tabular-nums; }
.cmt__heart.pop .cmt__hicon { animation: heartPop 0.4s cubic-bezier(.2,.9,.2,1.5); }
@keyframes heartPop { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }

.cmt__meta { font-size: 10.5px; color: var(--muted); margin-top: 5px; opacity: 0.75; font-family: ui-monospace, monospace; }
.cmt__meta.is-flagged { color: #ffb38a; opacity: 0.95; }
.cmt__del { flex: 0 0 auto; align-self: flex-start; background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 16px; line-height: 1; padding: 2px 5px; border-radius: 7px; opacity: 0.55; transition: 0.2s; }
.cmt__del:hover { color: #ff7676; opacity: 1; background: rgba(239,68,68,0.12); }

/* Composer */
.wall__form { padding: 14px 16px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.wall__row { display: flex; gap: 10px; }
.wall__name, .wall__msg {
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.28); color: var(--text); font: inherit; font-size: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; min-width: 0;
}
.wall__name { flex: 1; }
.wall__msg { flex: 1; }
.wall__name:focus, .wall__msg:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(168,85,247,0.16); }
.wall__emoji { flex: 0 0 auto; width: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.28); cursor: pointer; font-size: 20px; line-height: 1; transition: border-color 0.2s, transform 0.15s; }
.wall__emoji:hover { border-color: var(--purple); transform: translateY(-2px); }
.wall__send { flex: 0 0 auto; padding: 0 24px; border-radius: 12px; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  box-shadow: 0 6px 18px rgba(168,85,247,0.35); transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s; }
.wall__send:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(217,70,239,0.45); }
.wall__send:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.wall__note { font-size: 12.5px; min-height: 16px; color: var(--muted); }
.wall__note.err { color: #ff9a9a; }
.wall__note.ok  { color: #9ff0b8; }
/* Honeypot — fuer Menschen unsichtbar, Bots tappen rein */
.wall__hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Emoji-Leiste (Popover) */
.wall__emojibar {
  position: absolute; left: 16px; right: 16px; bottom: 74px;
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
  padding: 10px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(40,22,62,0.98), rgba(18,10,30,0.98));
  border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0,0,0,0.55);
  z-index: 6;
}
.wall__emojibar[hidden] { display: none; }
.wall__emojibar button { background: none; border: none; cursor: pointer; font-size: 20px; padding: 4px 6px; border-radius: 8px; transition: 0.15s; }
.wall__emojibar button:hover { background: rgba(168,85,247,0.2); transform: scale(1.2); }
.wall__emojibar button.is-sel { background: color-mix(in srgb, var(--purple) 30%, transparent); box-shadow: 0 0 0 1px var(--purple) inset; }

/* Evil-Mode: LIVE-Badge mitfaerben (Rest laeuft ueber die Theme-Variablen) */
body.mode-666 .wall__live { color: #ffb3b3; background: rgba(255,43,43,0.12); border-color: rgba(255,43,43,0.35); }
body.mode-666 .wall__livedot { background: #ff2b2b; box-shadow: 0 0 8px #ff2b2b; animation: none; }

/* Lite-Mode: teure Effekte auf der Wall aus */
body.lite .wall__card { backdrop-filter: none; background: linear-gradient(165deg, rgba(26,16,42,0.97), rgba(10,6,20,0.98)); }

@media (max-width: 480px) {
  .wall { padding: 28px 14px 80px; }
  .wall__scroll { max-height: 58vh; }
  .scrollcue { font-size: 10.5px; letter-spacing: 1.2px; }
}

/* Discord-Tag kopieren: @handle als klickbar markieren */
#copyTag { cursor: pointer; transition: color 0.2s, text-shadow 0.2s; }
#copyTag:hover { color: #fff; text-shadow: 0 0 10px var(--glow); }

/* =========================================================
   SNAKE MINI-GAME (verstecktes Easter-Egg)
   ========================================================= */
.snake { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px;
  background: rgba(2,1,6,0.8); backdrop-filter: blur(4px); }
.snake[hidden] { display: none; }
.snake__panel {
  background: linear-gradient(165deg, rgba(28,18,46,0.96), rgba(10,6,20,0.98));
  border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 50px rgba(124,58,237,0.25);
  animation: cardIn 0.4s cubic-bezier(.2,.9,.2,1) both; max-width: 96vw;
}
.snake__top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.snake__title { font-weight: 600; font-size: 16px; color: var(--text); }
.snake__score { margin-left: auto; font-size: 13px; color: var(--muted); }
.snake__score b { color: var(--purple); font-variant-numeric: tabular-nums; }
.snake__close { background: rgba(168,85,247,0.12); border: 1px solid var(--line); color: var(--text);
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer; font-size: 14px; transition: 0.2s; }
.snake__close:hover { border-color: #ef4444; color: #ffb4b4; }
.snake__main { display: flex; gap: 14px; align-items: stretch; }
.snake__stage { position: relative; width: 480px; max-width: min(480px, calc(96vw - 220px)); flex: 0 0 auto; }
.snake__stage canvas { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.3); display: block; aspect-ratio: 1 / 1; }
/* Start- + Game-Over-Overlays */
.snake__start, .snake__over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(5,3,10,0.82); border-radius: 12px; text-align: center; padding: 16px; }
.snake__start[hidden], .snake__over[hidden] { display: none; }
.snake__startt { font-size: 30px; filter: drop-shadow(0 0 14px var(--glow)); }
.snake__name { width: min(220px, 80%); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.35); color: var(--text); font: inherit; font-size: 14px; outline: none; text-align: center; }
.snake__name:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(168,85,247,0.16); }
.snake__play { padding: 10px 26px; border-radius: 10px; border: none; cursor: pointer; font: inherit; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--magenta)); box-shadow: 0 6px 18px rgba(168,85,247,0.35); transition: 0.2s; }
.snake__play:hover:not(:disabled) { transform: translateY(-2px); }
.snake__play:disabled { opacity: 0.45; cursor: default; }
.snake__colors { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; max-width: 240px; }
.snake__sw { width: 22px; height: 22px; padding: 0; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15); cursor: pointer; background: none; transition: transform 0.15s; }
.snake__sw.is-default { background: rgba(255,255,255,0.06); color: var(--muted); font-size: 11px; }
.snake__sw.is-sel { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--purple); }
.snake__sw:hover { transform: scale(1.15); }
/* Snake-Skins (per Bestscore freigeschaltet) */
.snake__skins { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; max-width: 260px; }
.snake__skin {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 5px; border-radius: 20px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.3);
  color: var(--muted); font: inherit; font-size: 11px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}
.snake__skin i { width: 13px; height: 13px; border-radius: 50%; display: block; }
.snake__skin:hover:not(:disabled) { color: var(--text); }
.snake__skin.is-sel { border-color: var(--purple); color: var(--text); background: color-mix(in srgb, var(--purple) 16%, transparent); }
.snake__skin.is-locked { opacity: 0.45; cursor: not-allowed; }
.snake__skin.is-locked i { filter: grayscale(1); }

.snake__modes { display: flex; gap: 6px; }
.snake__mode { padding: 5px 14px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0,0,0,0.3);
  color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; transition: 0.2s; }
.snake__mode.is-sel { border-color: var(--purple); color: var(--text); background: color-mix(in srgb, var(--purple) 18%, transparent); }
.snake__mode:hover { color: var(--text); }
.snake__start small, .snake__over small { font-size: 11.5px; color: var(--muted); }
.snake__over b { font-size: 26px; color: var(--glow); filter: drop-shadow(0 0 12px var(--glow)); }
.snake__over span { font-size: 14px; color: var(--text); }
/* Leaderboard */
.snake__board { flex: 1 1 190px; min-width: 175px; display: flex; flex-direction: column;
  background: rgba(168,85,247,0.06); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.snake__boardhead { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 8px; }
.snake__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 432px; }
.snake__list li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 13px; }
.snake__list li:nth-child(1) { background: rgba(253,224,71,0.12); }
.snake__list li:nth-child(2) { background: rgba(203,182,245,0.10); }
.snake__list li:nth-child(3) { background: rgba(251,146,60,0.10); }
.snake__list li.is-me { outline: 1px solid var(--purple); }
.snake__rank { color: var(--muted); width: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.snake__lname { flex: 1; color: #e9ddff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snake__lscore { color: var(--purple); font-weight: 600; font-variant-numeric: tabular-nums; }
.snake__empty { color: var(--muted); justify-content: center; font-size: 12px; }
.snake__hint { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 11px; letter-spacing: 0.4px; }
@media (max-width: 700px) {
  .snake__main { flex-direction: column; }
  .snake__stage { width: min(480px, 86vw); max-width: 86vw; }
  .snake__board { max-height: 150px; }
  .snake__list { max-height: 110px; }
}

/* Namensfarbe-Swatches im Composer-Popover */
#colorBar { gap: 6px; }
#colorBar button { width: 26px; height: 26px; padding: 0; border-radius: 7px; border: 1px solid rgba(255,255,255,0.15); }
#colorBar button.is-default { background: rgba(255,255,255,0.06); color: var(--muted); font-size: 13px; }
#colorBar button.is-sel { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--purple); }
#colorBar button:hover { transform: scale(1.15); }

/* =========================================================
   GEHEIMES TERMINAL
   ========================================================= */
.term { position: fixed; inset: 0; z-index: 71; display: grid; place-items: center; padding: 16px;
  background: rgba(2,1,6,0.8); backdrop-filter: blur(4px); }
.term[hidden] { display: none; }
.term__win { width: min(620px, 96vw); height: min(440px, 80vh); display: flex; flex-direction: column;
  background: rgba(6,4,12,0.97); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 50px rgba(124,58,237,0.25);
  font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace; animation: cardIn 0.35s cubic-bezier(.2,.9,.2,1) both; }
.term__bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(168,85,247,0.1); border-bottom: 1px solid var(--line); }
.term__dots { display: flex; gap: 6px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; background: #444; }
.term__dots i:nth-child(1) { background: #ff5f56; } .term__dots i:nth-child(2) { background: #ffbd2e; } .term__dots i:nth-child(3) { background: #27c93f; }
.term__ttl { font-size: 12px; color: var(--muted); }
.term__close { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.term__close:hover { color: #ffb4b4; }
.term__out { flex: 1; overflow-y: auto; padding: 12px 14px; font-size: 13px; line-height: 1.55; color: #b9f5c8; }
.term__row { white-space: pre-wrap; word-break: break-word; }
.term__row .g { color: #9ff0b8; } .term__row .p { color: var(--purple); } .term__row .r { color: #ff6b6b; }
.term__row b { color: #fff; font-weight: 600; } .term__row a { color: #7fd7ff; }
.term__line { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--line); }
.term__prompt { color: var(--purple); font-size: 13px; white-space: nowrap; }
.term__in { flex: 1; background: none; border: none; outline: none; color: #b9f5c8; font: inherit; font-size: 13px; }
body.mode-666 .term__out { color: #ffb3b3; } body.mode-666 .term__in { color: #ffb3b3; }
/* Typespeed: Ziel-Woerter */
.term__row.term__words { color: #7fd7ff; opacity: 0.9; padding: 4px 0; }

/* =========================================================
   GODSPEED MODE (Killua / HxH Easter-Egg — tippe "killua")
   ========================================================= */
body.mode-godspeed {
  --purple: #38bdf8;
  --purple-deep: #0c4a6e;
  --magenta: #22d3ee;
  --pink: #7dd3fc;
  --glow: #3ecbff;
  --line: rgba(56,189,248,0.32);
  animation: flashGs 0.5s ease;
}
@keyframes flashGs { 0%{filter:none} 50%{filter:hue-rotate(45deg) brightness(1.3) saturate(1.4)} 100%{filter:none} }
body.mode-godspeed .name {
  background: linear-gradient(180deg, #fff 0%, #a5e6ff 45%, #38bdf8 100%);
  -webkit-background-clip: text; background-clip: text;
}
body.mode-godspeed .avatar__status { background: #3ecbff; box-shadow: 0 0 10px #3ecbff; }
body.mode-godspeed .lightning { background: radial-gradient(120% 80% at 50% -10%, rgba(62,203,255,0.55), transparent 65%); }
/* elektrische Aura um die Card */
body.mode-godspeed .card { animation: gsAura 1.1s ease-in-out infinite; }
@keyframes gsAura {
  0%,100% { box-shadow: 0 0 0 1px rgba(62,203,255,0.18), 0 30px 80px rgba(0,0,0,0.65), 0 0 44px rgba(62,203,255,0.38); }
  50%     { box-shadow: 0 0 0 1px rgba(62,203,255,0.42), 0 30px 80px rgba(0,0,0,0.65), 0 0 92px rgba(62,203,255,0.68); }
}
/* alles etwas schneller/elektrischer */
body.mode-godspeed .avatar__ring { animation-duration: 2s; }
body.mode-godspeed .name { animation-duration: 1.5s; }
body.mode-godspeed .card::before { animation-duration: 2.6s; }
body.mode-godspeed .aurora__band--top { animation-duration: 7s; }
body.mode-godspeed .aurora__band--bottom { animation-duration: 9s; }

/* Sichtbarer Secrets-Button oben rechts */
.helpfab {
  position: fixed; right: 16px; top: 16px; z-index: 45;
  display: flex; align-items: center; gap: 7px;
  min-width: 104px; height: 38px; padding: 0 9px 0 12px;
  border-radius: 99px; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, rgba(34,18,54,0.88), rgba(14,8,26,0.9));
  border: 1px solid var(--line); color: #d9c8f5;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; line-height: 1;
  backdrop-filter: blur(9px) saturate(135%);
  box-shadow: 0 8px 26px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.25s;
}
.helpfab::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.12) 45%, transparent 65%);
  transform: translateX(-120%);
}
.helpfab__spark {
  color: var(--magenta); font-size: 15px;
  filter: drop-shadow(0 0 7px var(--glow));
  animation: secretSpark 2.6s ease-in-out infinite;
}
.helpfab__count {
  display: grid; place-items: center;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 99px;
  background: rgba(168,85,247,0.18);
  border: 1px solid rgba(168,85,247,0.3);
  color: #eadcff; font-size: 10px;
}
body.entered .helpfab {
  opacity: 0.82; pointer-events: auto; transform: none;
  animation: secretArrive 0.7s 0.65s cubic-bezier(.2,.9,.2,1.25) both;
}
.helpfab:hover,
.helpfab:focus-visible {
  opacity: 1; color: #fff; border-color: var(--purple);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 20px rgba(168,85,247,0.4);
  transform: translateY(-2px);
  outline: none;
}
.helpfab:hover::before { animation: secretShine 0.75s ease; }
@keyframes secretSpark { 0%,100%{transform:scale(1) rotate(0);opacity:.75} 50%{transform:scale(1.2) rotate(18deg);opacity:1} }
@keyframes secretArrive { from{opacity:0;transform:translateY(-10px) scale(.92)} to{opacity:.82;transform:none} }
@keyframes secretShine { to{transform:translateX(120%)} }

/* =========================================================
   SECRETS-PANEL (?)
   ========================================================= */
.help {
  position: fixed; inset: 0; z-index: 72;
  display: grid; place-items: center;
  padding: 18px; overflow-y: auto;
  background: rgba(2,1,6,0.8);
  backdrop-filter: blur(6px);
}
.help[hidden] { display: none; }
.help__panel {
  position: relative; overflow: hidden;
  width: min(500px, 94vw);
  max-height: min(680px, 90vh);
  overflow-y: auto;
  background:
    radial-gradient(100% 65% at 100% 0%, rgba(168,85,247,0.18), transparent 58%),
    linear-gradient(165deg, rgba(28,18,46,0.98), rgba(10,6,20,0.99));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.72), 0 0 58px rgba(124,58,237,0.25);
  animation: cardIn 0.35s cubic-bezier(.2,.9,.2,1) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.5) transparent;
}
.help__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  color: var(--text); margin-bottom: 9px;
}
.help__heading { display: flex; flex-direction: column; gap: 3px; }
.help__eyebrow {
  color: var(--purple); font-size: 9px; font-weight: 700;
  letter-spacing: 2.4px;
}
.help__title {
  font-family: var(--font-display);
  font-size: 25px; font-weight: 700; line-height: 1.1;
  background: linear-gradient(180deg, #fff, #c697f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(177,75,255,0.35));
}
.help__close {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(168,85,247,0.08);
  border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; font-size: 13px; transition: 0.2s;
}
.help__close:hover,
.help__close:focus-visible {
  color: #ffb4b4; border-color: rgba(239,68,68,0.5);
  background: rgba(239,68,68,0.1); outline: none;
}
.help__intro {
  margin: 0 42px 16px 0;
  color: var(--muted); font-size: 12.5px; line-height: 1.55;
}
.help__list { display: flex; flex-direction: column; gap: 8px; }
.help__row {
  width: 100%; display: grid;
  grid-template-columns: 40px minmax(0,1fr) 20px;
  align-items: center; gap: 11px;
  padding: 11px 12px;
  border: 1px solid rgba(168,85,247,0.14); border-radius: 13px;
  background: rgba(168,85,247,0.055);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: transform 0.18s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.help__row:hover,
.help__row:focus-visible {
  transform: translateX(3px);
  border-color: rgba(168,85,247,0.48);
  background: rgba(168,85,247,0.12);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22), inset 0 0 18px rgba(168,85,247,0.055);
  outline: none;
}
.help__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(0,0,0,0.26); border: 1px solid var(--line);
  color: #dfc4ff; font-family: ui-monospace, monospace;
  font-size: 18px; font-weight: 700;
  filter: drop-shadow(0 0 7px rgba(177,75,255,0.42));
}
.help__copy { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.help__name { color: #efe9ff; font-size: 13.5px; font-weight: 600; }
.help__desc {
  grid-column: 1 / -1;
  color: var(--muted); font-size: 11.5px; line-height: 1.4;
}
.help__row kbd {
  grid-column: 2; grid-row: 1;
  max-width: 170px; overflow: hidden; text-overflow: ellipsis;
  padding: 4px 7px; border-radius: 7px;
  background: rgba(0,0,0,0.34); border: 1px solid var(--line);
  color: #ddc8ff; font-family: ui-monospace, monospace;
  font-size: 10px; white-space: nowrap;
}
.help__launch {
  color: var(--purple); font-size: 15px; opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}
.help__row:hover .help__launch { opacity: 1; transform: translate(2px,-2px); }
.help__tip {
  display: flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 8px 10px; border-radius: 10px;
  background: rgba(74,163,255,0.07); border: 1px solid rgba(74,163,255,0.15);
  color: #aeb8d9; font-size: 11px;
}
.help__foot {
  margin-top: 12px; text-align: center;
  color: var(--muted); font-size: 10.5px;
}
.help__foot kbd {
  padding: 2px 5px; border-radius: 5px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--line);
  color: #d8c5f5; font-family: ui-monospace, monospace;
}

@media (max-width: 480px) {
  .helpfab { right: 11px; top: 11px; min-width: 98px; height: 36px; }
  .help { padding: 12px; align-items: center; }
  .help__panel { width: 100%; max-height: 92vh; border-radius: 17px; padding: 17px 14px; }
  .help__intro { margin-right: 8px; }
  .help__row { grid-template-columns: 36px minmax(0,1fr) 16px; gap: 9px; padding: 10px; }
  .help__icon { width: 36px; height: 36px; font-size: 16px; }
  .help__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
  .help__row kbd { max-width: 100%; order: 3; }
}

/* =========================================================
   CUSTOM CURSOR — eleganter Pfeil im Nebula-Look
   Klassische Pfeil-Form + weicher Glow-Rand. Faerbt sich in den
   Geheim-Modi mit (rot = Evil, elektrisch blau = Godspeed).
   ========================================================= */
:root {
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='none' stroke='%23b14bff' stroke-opacity='.35' stroke-width='4.5' stroke-linejoin='round'/%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='%23b14bff' stroke='%23140a22' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, default;
  --cursor-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='none' stroke='%23e9b8ff' stroke-opacity='.5' stroke-width='5.5' stroke-linejoin='round'/%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='%23e9b8ff' stroke='%23140a22' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, pointer;
}
body.mode-666 {
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='none' stroke='%23ff2b2b' stroke-opacity='.35' stroke-width='4.5' stroke-linejoin='round'/%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='%23ff2b2b' stroke='%23200808' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, default;
  --cursor-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='none' stroke='%23ff6b6b' stroke-opacity='.5' stroke-width='5.5' stroke-linejoin='round'/%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='%23ff6b6b' stroke='%23200808' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, pointer;
}
body.mode-godspeed {
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='none' stroke='%233ecbff' stroke-opacity='.35' stroke-width='4.5' stroke-linejoin='round'/%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='%233ecbff' stroke='%2306202e' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, default;
  --cursor-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='none' stroke='%23a5e6ff' stroke-opacity='.5' stroke-width='5.5' stroke-linejoin='round'/%3E%3Cpath d='M4 3 L4 19 L8.2 15.2 L11 21.5 L13.5 20.4 L10.8 14.6 L16 14.6 Z' fill='%23a5e6ff' stroke='%2306202e' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, pointer;
}

html, body { cursor: var(--cursor); }

/* Alles Klickbare bekommt den helleren Pfeil.
   !important, weil viele Komponenten weiter oben ein eigenes cursor:pointer setzen. */
a, button, summary, label.auto, [role="button"], input[type="range"],
.social, .music, .helpfab, .scrollcue, .enter__btn, #copyTag,
.wall__emoji, .wall__send, .wall__emojibar button,
.snake__skin, .snake__mode, .snake__sw, .snake__play, .snake__close,
.cmt__del, .cmt__heart, .term__close, .help__row, .help__close {
  cursor: var(--cursor-hover) !important;
}

/* Textfelder behalten den Schreib-Cursor */
input[type="text"], input[type="password"], input[type="search"],
input[type="number"], input[type="email"], textarea {
  cursor: text !important;
}
/* Nicht klickbar / deaktiviert */
button:disabled, .snake__skin.is-locked, .wall__send:disabled, .snake__play:disabled {
  cursor: not-allowed !important;
}
