:root {
  --bg:        #000000;
  --surface:   rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.10);
  --border:    rgba(255, 255, 255, 0.16);
  --text:      #ffffff;
  --muted:     #a6a6a6;
  --discord:   #5865F2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Inverted line-art background. Image lives in assets/images/background.png. */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;            /* never blocks clicks */
  background: url("../images/background.png") center / cover no-repeat;
  filter: invert(1) grayscale(1) contrast(1.1);
  opacity: 0.55;
}
/* dark vignette so the card stays readable */
.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,0,0,0.35), rgba(0,0,0,0.72));
}

/* Animated rain + lightning */
.fx-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.fx-lightning {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #fff;
  opacity: 0;
  mix-blend-mode: screen;
}
.fx-lightning.flash { animation: lightning .9s ease-out; }
@keyframes lightning {
  0%   { opacity: 0; }
  4%   { opacity: .15; }
  9%   { opacity: 0; }
  13%  { opacity: .28; }
  22%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Floating bob for the main card */
@keyframes float {
  from { transform: translateY(-7px); }
  to   { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .card { animation: none !important; }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 32px 26px 26px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: float 5.5s ease-in-out infinite alternate;
  will-change: transform;
}
/* Card edge glint, fired in sync with lightning */
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9), 0 0 26px rgba(255,255,255,0.5);
}
.card.glint::after { animation: cardGlint .85s ease-out; }
@keyframes cardGlint {
  0% { opacity: 0; } 12% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; }
}

.avatar {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: none; }

.name { font-size: 21px; font-weight: 600; letter-spacing: -0.2px; }
.handle { margin-top: 3px; font-size: 15px; color: var(--muted); }
.tagline {
  margin: 12px auto 24px;
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 300px;
  color: var(--muted);
}

.links { display: flex; flex-direction: column; gap: 10px; }

.btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .2s ease;
}
.btn:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255,255,255,0.16);
}
.btn:active { transform: translateY(0); }

/* Light sweep across a button on hover */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 55%; height: 100%;
  transform: skewX(-20deg);
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
}
.btn:hover::before { animation: sweep .7s ease; }
.btn--donate::before { background: linear-gradient(100deg, transparent, rgba(0,0,0,0.14), transparent); }
@keyframes sweep { to { left: 130%; } }

.btn .ico { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; color: #fff; }
.btn .ico svg { width: 21px; height: 21px; }
.btn .label { flex: 1; text-align: left; }
.btn .chev { color: var(--muted); font-size: 18px; line-height: 1; }

/* Donate — primary, white */
.btn--donate {
  background: #fff;
  border-color: #fff;
  color: #000;
  font-weight: 600;
}
.btn--donate .ico, .btn--donate .chev { color: #000; }
.btn--donate:hover { background: #e6e6e6; border-color: #e6e6e6; }

/* Trakteer takes the same light treatment as SociaBuzz, one tone warmer so
   the two donation buttons aren't identical. Must come after .btn--donate to
   win — same specificity, later wins. */
.btn--trakteer { background: #f6efe3; border-color: #f6efe3; }
.btn--trakteer:hover { background: #ebe2d2; border-color: #ebe2d2; }

/* Glow on the two donation buttons. Both white, to stay on the page's
   monochrome palette, separated only by tone: SociaBuzz is a pure cool
   white (#fff), Trakteer a slightly warm off-white (#fff4e6). Same
   brightness, so neither looks like the lesser button.

   drop-shadow, not box-shadow: .btn sets overflow:hidden to clip the hover
   sweep, which would also clip a pseudo-element's glow, and an animated
   box-shadow on the button itself would override the one .btn:hover sets.
   A filter is applied after the element renders, so it escapes the overflow
   clip and leaves the hover shadow alone. */
.btn--trakteer  { animation: glowTrakteer  2.8s ease-in-out infinite; }
.btn--sociabuzz { animation: glowSociabuzz 2.8s ease-in-out infinite; }

/* Two stacked shadows per button: one tight, one wide. */
@keyframes glowTrakteer {
  0%, 100% { filter: drop-shadow(0 0 5px  rgba(255, 244, 230, 0.5))
                     drop-shadow(0 0 11px rgba(255, 238, 214, 0.3)); }
  50%      { filter: drop-shadow(0 0 9px  rgba(255, 244, 230, 0.85))
                     drop-shadow(0 0 19px rgba(255, 238, 214, 0.55)); }
}
@keyframes glowSociabuzz {
  0%, 100% { filter: drop-shadow(0 0 5px  rgba(255, 255, 255, 0.5))
                     drop-shadow(0 0 11px rgba(255, 255, 255, 0.3)); }
  50%      { filter: drop-shadow(0 0 9px  rgba(255, 255, 255, 0.85))
                     drop-shadow(0 0 19px rgba(255, 255, 255, 0.55)); }
}

/* Respect a reduced-motion preference: keep the glow, drop the pulsing. */
@media (prefers-reduced-motion: reduce) {
  .btn--trakteer  { animation: none; filter: drop-shadow(0 0 8px rgba(255, 244, 230, 0.65)); }
  .btn--sociabuzz { animation: none; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.65)); }
}

.footer { margin-top: 22px; font-size: 12px; color: #6b6b6b; }

/* Dims the page while the donate popup window is open, so the popup reads
   as a modal even though it's a separate browser window. */
.sb-dim {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sb-dim.show { display: flex; align-items: center; justify-content: center; }
.sb-dim__note {
  max-width: 300px;
  text-align: center;
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.sb-dim__note button {
  margin-top: 14px;
  padding: 9px 18px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Scrolling "thank you" banner, shown when Donate is opened */
.thanks-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  display: none;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.96);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .4px;
  box-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.thanks-bar.show { display: block; }
.thanks-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 18s linear infinite;
}
.thanks-track span { padding: 0 28px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
