/*
 * ForeverHumans Toolkit — linkpage.css
 * Paint comes ONLY from the theme tokens FHConfig.themeOf() resolves.
 * js/linkpage.js sets them as CSS variables on the .fh-linkpage root:
 *   --fh-bg, --fh-surface, --fh-text, --fh-muted,
 *   --fh-accent, --fh-accent2, --fh-font
 * It also stamps ONE preset class on the root — fh-preset-neon,
 * fh-preset-clean, fh-preset-arcade, fh-preset-cozy, fh-preset-graffiti
 * or fh-preset-custom — which selects the per-preset identity painted at
 * the bottom of this file.
 * Graffiti also reads --fh-display-font (headings ONLY, set from
 * themeOf().displayStack): display lettering goes wild while every
 * body/label/channel string stays in the clean --fh-font face.
 * The defaults below are just the Neon preset as a pre-JS fallback.
 * No frameworks, no webfonts, no network — works from file://.
 *
 * LOUD PASS: the base layer is rich for every preset (glowing avatar ring,
 * gradient name, glassy link buttons with a shine sweep, gradient-bordered
 * merch banner, accent-ringed QR tiles, pulsing footer badge). Presets then
 * bend that richness into their own world. Performance mode (.fh-perf) and
 * prefers-reduced-motion flatten EVERYTHING, new paint included.
 */

/* ---------- standalone page shell ---------- */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #0a0a0f;
  color: #f4f4f5;
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- keyframes ---------- */

@keyframes fh-halo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fh-ring-pulse {
  from {
    box-shadow:
      0 0 0 0 color-mix(in srgb, var(--fh-accent) 45%, transparent),
      0 0 18px color-mix(in srgb, var(--fh-accent) 35%, transparent),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
  to {
    box-shadow:
      0 0 0 7px color-mix(in srgb, var(--fh-accent) 14%, transparent),
      0 0 32px color-mix(in srgb, var(--fh-accent) 55%, transparent),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

@keyframes fh-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes fh-badge-pulse {
  from { box-shadow: 0 0 8px color-mix(in srgb, var(--fh-accent) 22%, transparent); }
  to { box-shadow: 0 0 18px color-mix(in srgb, var(--fh-accent) 55%, transparent); }
}

@keyframes fh-sheen {
  0%, 55% { transform: translateX(-130%) skewX(-18deg); }
  85%, 100% { transform: translateX(240%) skewX(-18deg); }
}

/* ---------- link page root ---------- */

.fh-linkpage {
  --fh-bg: #0a0a0f;
  --fh-surface: #15151f;
  --fh-text: #f4f4f5;
  --fh-muted: #a1a1aa;
  --fh-accent: #39ff14;
  --fh-accent2: #ff2ea6;
  --fh-font: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  background: var(--fh-bg);
  color: var(--fh-text);
  font-family: var(--fh-font);
  min-height: 100vh;
  width: 100%;
  padding: 40px 16px 48px;
  position: relative;
}

.fh-column {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  position: relative;
}

/* ---------- profile ---------- */

.fh-profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  position: relative;
}

/* Rotating conic halo behind the avatar — blurred so the spin reads as a
   shifting glow, not a hard ring. */
.fh-profile::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  margin-left: -59px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--fh-accent), transparent 35%,
    var(--fh-accent2), transparent 70%,
    var(--fh-accent));
  filter: blur(10px);
  opacity: 0.55;
  pointer-events: none;
  animation: fh-halo-spin 9s linear infinite;
}

.fh-avatar-img,
.fh-avatar-mono {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex: none;
  position: relative;
  z-index: 1;
  animation:
    fh-float 6s ease-in-out infinite,
    fh-ring-pulse 3.4s ease-in-out infinite alternate;
}

.fh-avatar-img {
  object-fit: cover;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--fh-surface), var(--fh-surface)) padding-box,
    linear-gradient(135deg, var(--fh-accent), var(--fh-accent2)) border-box;
}

.fh-avatar-mono {
  background: linear-gradient(135deg, var(--fh-accent), var(--fh-accent2));
  color: var(--fh-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

.fh-name {
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fh-text);
  overflow-wrap: anywhere;
}

/* Graffiti wordmark name (SVG artwork from FHWordmark) — static art,
   no CSS animation; perf-mode flatten rules must not hide it. */
.fh-wordmark-name {
  max-width: 360px;
  min-width: 220px;
  width: 100%;
  margin-top: 12px;
  margin-left: auto;
  margin-right: auto;
}
.fh-wordmark-name svg { display: block; width: 100%; height: auto; }

/* Gradient display type where background-clip:text is supported;
   the solid var(--fh-text) above is the fallback. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .fh-name {
    background-image: linear-gradient(100deg,
      var(--fh-accent), var(--fh-text) 55%, var(--fh-accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.fh-handle {
  margin: 0;
  color: var(--fh-accent);
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 0 12px color-mix(in srgb, var(--fh-accent) 45%, transparent);
  overflow-wrap: anywhere;
}

.fh-bio {
  margin: 6px 0 0;
  color: var(--fh-muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 42ch;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* ---------- shared buttons ---------- */

.fh-link-btn,
.fh-merch-btn,
.fh-channel-head-link {
  color: var(--fh-text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.fh-link-btn:focus-visible,
.fh-merch-btn:focus-visible,
.fh-channel-head-link:focus-visible,
.fh-address:focus-visible {
  outline: 2px solid var(--fh-accent);
  outline-offset: 2px;
}

/* ---------- merch ---------- */

.fh-merch {
  background:
    linear-gradient(var(--fh-surface), var(--fh-surface)) padding-box,
    linear-gradient(120deg, var(--fh-accent), var(--fh-accent2)) border-box;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.fh-merch-headline {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fh-merch-btn {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg,
    var(--fh-accent),
    color-mix(in srgb, var(--fh-accent) 45%, var(--fh-accent2)));
  color: var(--fh-bg);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding: 13px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--fh-accent) 35%, transparent);
}

/* Animated sheen sweeping the merch button on a slow loop. */
.fh-merch-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: 0;
  background: linear-gradient(115deg,
    transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-130%) skewX(-18deg);
  animation: fh-sheen 3.8s ease-in-out infinite;
  pointer-events: none;
}

.fh-merch-btn:hover { border-color: var(--fh-accent); }

.fh-merch-disclosure {
  margin: 0;
  color: var(--fh-muted);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* ---------- links ---------- */

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

.fh-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--fh-surface) 88%, white 6%),
    var(--fh-surface));
  border: 1px solid var(--fh-accent);
  border-color: color-mix(in srgb, var(--fh-accent) 35%, transparent);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fh-link-btn {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

/* Shine sweep on hover (pop 2/3 and the unclassed base only — pop 0/1 and
   perf hide it below). */
.fh-link-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: 0;
  background: linear-gradient(115deg,
    transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-140%) skewX(-18deg);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.fh-link-btn:hover {
  border-color: var(--fh-accent);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 14px color-mix(in srgb, var(--fh-accent) 45%, transparent);
}

.fh-link-btn:hover::after {
  transform: translateX(260%) skewX(-18deg);
}

.fh-link-icon {
  font-size: 19px;
  line-height: 1;
  flex: none;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--fh-accent) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fh-accent) 22%, transparent);
}

.fh-link-label {
  overflow-wrap: anywhere;
}

/* ---------- support ---------- */

.fh-support {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.fh-support-title {
  margin: 0 0 2px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

.fh-channel {
  background: var(--fh-surface);
  border: 1px solid var(--fh-accent);
  border-color: color-mix(in srgb, var(--fh-accent) 30%, transparent);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fh-channel-head,
.fh-channel-head-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
}

.fh-channel-head-link:hover { color: var(--fh-accent); }

.fh-channel-icon {
  font-size: 22px;
  line-height: 1;
  flex: none;
}

.fh-channel-label { overflow-wrap: anywhere; }

.fh-qr {
  background: #ffffff;
  border-radius: 10px;
  padding: 8px;
  line-height: 0;
  box-shadow:
    0 0 0 2px var(--fh-accent),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

.fh-qr svg {
  width: 120px;
  height: 120px;
  display: block;
}

.fh-qr-fallback {
  color: #0a0a0f;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px;
  max-width: 180px;
  overflow-wrap: anywhere;
}

.fh-qr-caption {
  margin: 0;
  color: var(--fh-muted);
  font-size: 11.5px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fh-address {
  appearance: none;
  background: transparent;
  border: 1px dashed var(--fh-muted);
  border-radius: 8px;
  color: var(--fh-text);
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  cursor: pointer;
  text-align: center;
}

.fh-address:hover { border-color: var(--fh-accent); }

.fh-address-note {
  margin: 0;
  color: var(--fh-muted);
  font-size: 12px;
  line-height: 1.4;
  min-height: 1em;
}

.fh-channel-note {
  margin: 0;
  color: var(--fh-accent2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */

.fh-footer {
  margin-top: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fh-powered {
  margin: 0;
  display: inline-block;
  align-self: center;
  color: var(--fh-text);
  background: color-mix(in srgb, var(--fh-surface) 82%, transparent);
  border: 1px solid var(--fh-accent);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  animation: fh-badge-pulse 3.2s ease-in-out infinite alternate;
}

.fh-honest {
  margin: 0;
  color: var(--fh-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- pop levels ---------- */
/* popLevel 0: flat — hover changes nothing but the cursor, no sweep. */
.fh-pop-0 .fh-link-btn:hover,
.fh-pop-0 .fh-merch-btn:hover {
  transform: none;
  box-shadow: none;
}

.fh-pop-0 .fh-link-btn::after { display: none; }

/* popLevel 1: quiet — accent border is the whole hover, no sweep. */
.fh-pop-1 .fh-link-btn:hover,
.fh-pop-1 .fh-merch-btn:hover {
  transform: none;
  box-shadow: none;
}

.fh-pop-1 .fh-link-btn::after { display: none; }

/* popLevel 2: the pop — lift/scale + a soft accent glow. */
.fh-pop-2 .fh-link-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 14px color-mix(in srgb, var(--fh-accent) 45%, transparent);
}

.fh-pop-2 .fh-merch-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.35),
    0 0 12px var(--fh-accent2);
}

/* popLevel 3: louder than 2 — deeper lift and a double-accent glow. */
.fh-pop-3 .fh-link-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.42),
    0 0 22px var(--fh-accent),
    0 0 46px color-mix(in srgb, var(--fh-accent2) 45%, transparent);
}

.fh-pop-3 .fh-merch-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 0 20px var(--fh-accent2),
    0 0 40px color-mix(in srgb, var(--fh-accent) 45%, transparent);
}

/* ---------- performance mode ---------- */
/* No animations or transitions at all, pop included — and every piece of
   new loud paint (halo, glows, sweeps, sheen, backdrop blur) flattened. */
.fh-perf,
.fh-perf *,
.fh-perf *::before,
.fh-perf *::after {
  animation: none !important;
  transition: none !important;
}

.fh-perf .fh-profile::before { display: none !important; }

.fh-perf .fh-link-btn::after,
.fh-perf .fh-merch-btn::after { display: none !important; }

.fh-perf .fh-avatar-img,
.fh-perf .fh-avatar-mono,
.fh-perf .fh-link-btn,
.fh-perf .fh-merch,
.fh-perf .fh-merch-btn,
.fh-perf .fh-channel,
.fh-perf .fh-qr,
.fh-perf .fh-powered {
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.fh-perf .fh-name,
.fh-perf .fh-handle {
  filter: none !important;
  text-shadow: none !important;
}

.fh-perf .fh-link-btn:hover,
.fh-perf .fh-merch-btn:hover {
  transform: none !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .fh-linkpage *,
  .fh-linkpage *::before,
  .fh-linkpage *::after {
    animation: none !important;
    transition: none !important;
  }

  .fh-linkpage .fh-profile::before,
  .fh-linkpage .fh-link-btn::after,
  .fh-linkpage .fh-merch-btn::after { display: none !important; }
}

/* ================================================================
   PER-PRESET IDENTITIES
   The rich base above is shared; each preset bends it into a world.
   ================================================================ */

/* ---------- neon: strongest glow ---------- */

/* drop-shadow (not text-shadow) so it plays nice with the clipped
   gradient fill on the name. */
.fh-linkpage.fh-preset-neon .fh-name {
  filter:
    drop-shadow(0 0 14px color-mix(in srgb, var(--fh-accent) 55%, transparent))
    drop-shadow(3px 3px 22px color-mix(in srgb, var(--fh-accent2) 45%, transparent));
}

.fh-linkpage.fh-preset-neon .fh-profile::before { opacity: 0.8; }

.fh-linkpage.fh-preset-neon .fh-avatar-img,
.fh-linkpage.fh-preset-neon .fh-avatar-mono {
  animation-duration: 5s, 2.4s;
}

.fh-linkpage.fh-preset-neon .fh-link-btn {
  border-color: color-mix(in srgb, var(--fh-accent) 55%, transparent);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.3),
    0 0 10px color-mix(in srgb, var(--fh-accent) 28%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--fh-accent) 8%, transparent);
}

.fh-linkpage.fh-preset-neon .fh-handle {
  text-shadow: 0 0 16px color-mix(in srgb, var(--fh-accent) 70%, transparent);
}

/* ---------- arcade: CRT flavor, hard shadows, square corners ---------- */

.fh-linkpage.fh-preset-arcade { overflow: hidden; }

.fh-linkpage.fh-preset-arcade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 50;
}

.fh-linkpage.fh-preset-arcade .fh-link-btn,
.fh-linkpage.fh-preset-arcade .fh-merch,
.fh-linkpage.fh-preset-arcade .fh-channel,
.fh-linkpage.fh-preset-arcade .fh-qr,
.fh-linkpage.fh-preset-arcade .fh-address {
  border-radius: 4px;
}

.fh-linkpage.fh-preset-arcade .fh-merch-btn {
  border-radius: 4px;
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--fh-accent2) 80%, black);
}

.fh-linkpage.fh-preset-arcade .fh-link-btn,
.fh-linkpage.fh-preset-arcade .fh-channel {
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--fh-accent2) 80%, black);
}

.fh-linkpage.fh-preset-arcade .fh-link-btn:hover {
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--fh-accent2) 80%, black);
}

/* Hard shadows win over the pop glows at every pop level; pop 0 stays flat. */
.fh-linkpage.fh-preset-arcade .fh-merch-btn:hover,
.fh-linkpage.fh-preset-arcade.fh-pop-2 .fh-link-btn:hover,
.fh-linkpage.fh-preset-arcade.fh-pop-3 .fh-link-btn:hover,
.fh-linkpage.fh-preset-arcade.fh-pop-2 .fh-merch-btn:hover,
.fh-linkpage.fh-preset-arcade.fh-pop-3 .fh-merch-btn:hover {
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--fh-accent2) 80%, black);
}

.fh-linkpage.fh-preset-arcade.fh-pop-0 .fh-link-btn:hover,
.fh-linkpage.fh-preset-arcade.fh-pop-0 .fh-merch-btn:hover,
.fh-linkpage.fh-preset-arcade.fh-pop-1 .fh-link-btn:hover,
.fh-linkpage.fh-preset-arcade.fh-pop-1 .fh-merch-btn:hover {
  transform: none;
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--fh-accent2) 80%, black);
}

.fh-linkpage.fh-preset-arcade .fh-name,
.fh-linkpage.fh-preset-arcade .fh-support-title,
.fh-linkpage.fh-preset-arcade .fh-merch-headline {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fh-linkpage.fh-preset-arcade .fh-avatar-img,
.fh-linkpage.fh-preset-arcade .fh-avatar-mono {
  border-radius: 8px;
}

.fh-linkpage.fh-preset-arcade .fh-avatar-img {
  border: 4px solid var(--fh-accent);
  background: var(--fh-surface);
}

.fh-linkpage.fh-preset-arcade .fh-profile::before { border-radius: 14px; }

.fh-linkpage.fh-preset-arcade .fh-link-icon { border-radius: 3px; }

/* ---------- cozy: warm depth, soft everything, pill buttons ---------- */

.fh-linkpage.fh-preset-cozy {
  background-color: var(--fh-bg);
  background-image: radial-gradient(120% 60% at 50% 0%,
    color-mix(in srgb, var(--fh-accent) 12%, transparent), transparent 70%);
}

.fh-linkpage.fh-preset-cozy .fh-merch,
.fh-linkpage.fh-preset-cozy .fh-channel {
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(59, 36, 16, 0.18);
}

.fh-linkpage.fh-preset-cozy .fh-link-btn {
  border-radius: 999px;
  padding-left: 22px;
  padding-right: 22px;
  box-shadow: 0 14px 30px rgba(59, 36, 16, 0.16);
}

.fh-linkpage.fh-preset-cozy .fh-merch-btn { border-radius: 999px; }

.fh-linkpage.fh-preset-cozy .fh-link-icon { border-radius: 50%; }

.fh-linkpage.fh-preset-cozy .fh-avatar-img,
.fh-linkpage.fh-preset-cozy .fh-avatar-mono {
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--fh-accent) 35%, transparent),
    0 10px 30px rgba(217, 119, 6, 0.35);
}

.fh-linkpage.fh-preset-cozy .fh-profile::before { opacity: 0.4; }

.fh-linkpage.fh-preset-cozy .fh-qr { border-radius: 16px; }

/* ---------- clean: polished minimal, typography carries it ---------- */

.fh-linkpage.fh-preset-clean .fh-column { gap: 18px; }

.fh-linkpage.fh-preset-clean .fh-profile::before { display: none; }

.fh-linkpage.fh-preset-clean .fh-name {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--fh-text);
  font-size: 30px;
  font-weight: 700;
  filter: none;
}

.fh-linkpage.fh-preset-clean .fh-handle {
  color: var(--fh-muted);
  text-shadow: none;
}

.fh-linkpage.fh-preset-clean .fh-bio { line-height: 1.65; }

.fh-linkpage.fh-preset-clean .fh-avatar-img,
.fh-linkpage.fh-preset-clean .fh-avatar-mono {
  animation: none;
  box-shadow: none;
}

.fh-linkpage.fh-preset-clean .fh-avatar-img {
  border: 2px solid var(--fh-accent);
  background: var(--fh-surface);
}

.fh-linkpage.fh-preset-clean .fh-avatar-mono {
  background: var(--fh-surface);
  color: var(--fh-accent);
  box-shadow: inset 0 0 0 2px var(--fh-accent);
}

.fh-linkpage.fh-preset-clean .fh-link-btn,
.fh-linkpage.fh-preset-clean .fh-channel {
  background: var(--fh-surface);
  border-color: color-mix(in srgb, var(--fh-text) 12%, transparent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.fh-linkpage.fh-preset-clean .fh-merch {
  background: var(--fh-surface);
  border: 1px solid color-mix(in srgb, var(--fh-text) 12%, transparent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* Clean hover = lift + soft shadow only, no glow — at every pop level. */
.fh-linkpage.fh-preset-clean .fh-link-btn:hover,
.fh-linkpage.fh-preset-clean.fh-pop-2 .fh-link-btn:hover,
.fh-linkpage.fh-preset-clean.fh-pop-3 .fh-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.fh-linkpage.fh-preset-clean .fh-merch-btn:hover,
.fh-linkpage.fh-preset-clean.fh-pop-2 .fh-merch-btn:hover,
.fh-linkpage.fh-preset-clean.fh-pop-3 .fh-merch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.fh-linkpage.fh-preset-clean .fh-link-icon {
  background: color-mix(in srgb, var(--fh-accent) 10%, transparent);
  box-shadow: none;
}

.fh-linkpage.fh-preset-clean .fh-qr {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--fh-text) 12%, transparent),
    0 4px 12px rgba(15, 23, 42, 0.08);
}

.fh-linkpage.fh-preset-clean .fh-powered {
  animation: none;
  box-shadow: none;
  background: transparent;
}

/* ---------- graffiti: asphalt wall, sticker type, tape ----------
   Founder rule painted here: the DISPLAY face (var(--fh-display-font))
   touches the name, the support title and the merch headline only.
   Bio, link labels, channel text, addresses — all body strings — keep
   the clean --fh-font face and the high-contrast theme tokens. Spray
   color beyond accent/accent2 (orange #ff7a00, cyan #00e5ff) appears
   ONLY as decoration: splatter dots and tape shadows, never as text. */

.fh-linkpage.fh-preset-graffiti { overflow: hidden; }

/* Splatter + overspray texture, gradients only, behind the content. */
.fh-linkpage.fh-preset-graffiti::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 6%, rgba(57, 255, 20, 0.55) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 11%, rgba(0, 229, 255, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 13%, rgba(255, 46, 166, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 95% 16%, rgba(57, 255, 20, 0.4) 0 2px, transparent 3px),
    radial-gradient(circle at 79% 4%, rgba(255, 122, 0, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 7% 88%, rgba(255, 46, 166, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 11% 93%, rgba(57, 255, 20, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 4% 95%, rgba(0, 229, 255, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 14% 84%, rgba(255, 122, 0, 0.4) 0 2px, transparent 3px),
    radial-gradient(560px circle at 88% -4%, rgba(57, 255, 20, 0.10), transparent 62%),
    radial-gradient(520px circle at 4% 102%, rgba(255, 46, 166, 0.09), transparent 62%);
}

.fh-linkpage.fh-preset-graffiti .fh-column { z-index: 1; }

/* Sticker headline: poster face, warm-white fill, dark outline,
   hard offset shadows in the two spray leads. Slight tilt. */
.fh-linkpage.fh-preset-graffiti .fh-name {
  font-family: var(--fh-display-font, 'Permanent Marker', 'Arial Black', 'Franklin Gothic Heavy', Impact, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transform: rotate(-1.5deg);
  background: none;
  color: var(--fh-text);
  -webkit-text-fill-color: var(--fh-text);
  -webkit-text-stroke: 2px #0d0b08;
  text-shadow:
    3px 3px 0 var(--fh-accent),
    6px 6px 0 rgba(0, 0, 0, 0.55);
  filter: none;
}

.fh-linkpage.fh-preset-graffiti .fh-handle {
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

/* Display face for section shouts — still the high-contrast text
   token, so the words themselves never drop below readable. */
.fh-linkpage.fh-preset-graffiti .fh-support-title,
.fh-linkpage.fh-preset-graffiti .fh-merch-headline {
  font-family: var(--fh-display-font, 'Permanent Marker', 'Arial Black', 'Franklin Gothic Heavy', Impact, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fh-linkpage.fh-preset-graffiti .fh-support-title {
  transform: rotate(-1.5deg);
  color: var(--fh-text);
  text-shadow:
    2px 2px 0 var(--fh-accent2),
    4px 4px 0 rgba(0, 0, 0, 0.5);
}

/* Avatar: spray-ring sticker — thick green ring, hard magenta offset. */
.fh-linkpage.fh-preset-graffiti .fh-profile::before {
  opacity: 0.85;
  filter: blur(6px);
}

.fh-linkpage.fh-preset-graffiti .fh-avatar-img {
  border: 4px solid var(--fh-accent);
  background: var(--fh-surface);
  box-shadow:
    5px 5px 0 var(--fh-accent2),
    10px 10px 0 rgba(0, 0, 0, 0.5);
  animation: fh-float 6s ease-in-out infinite;
}

.fh-linkpage.fh-preset-graffiti .fh-avatar-mono {
  background: var(--fh-accent);
  color: #0d0b08;
  font-family: var(--fh-display-font, 'Permanent Marker', 'Arial Black', 'Franklin Gothic Heavy', Impact, sans-serif);
  box-shadow:
    5px 5px 0 var(--fh-accent2),
    10px 10px 0 rgba(0, 0, 0, 0.5);
  animation: fh-float 6s ease-in-out infinite;
}

/* Sticker link cards: paper-white edge, hard drop shadow, a whisper
   of alternating tilt that straightens out on hover. */
.fh-linkpage.fh-preset-graffiti .fh-link-btn {
  background: var(--fh-surface);
  border: 2px solid var(--fh-text);
  border-radius: 10px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.fh-linkpage.fh-preset-graffiti .fh-links .fh-link-btn:nth-child(odd) { transform: rotate(-0.6deg); }
.fh-linkpage.fh-preset-graffiti .fh-links .fh-link-btn:nth-child(even) { transform: rotate(0.5deg); }

.fh-linkpage.fh-preset-graffiti .fh-link-btn:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    7px 7px 0 rgba(0, 0, 0, 0.65),
    0 0 14px color-mix(in srgb, var(--fh-accent) 40%, transparent);
}

.fh-linkpage.fh-preset-graffiti.fh-pop-3 .fh-link-btn:hover {
  box-shadow:
    9px 9px 0 rgba(0, 0, 0, 0.65),
    0 0 22px var(--fh-accent),
    0 0 40px color-mix(in srgb, var(--fh-accent2) 40%, transparent);
}

/* Pop 0/1 stay flat: hover changes nothing, tilt included. */
.fh-linkpage.fh-preset-graffiti.fh-pop-0 .fh-links .fh-link-btn:nth-child(odd):hover,
.fh-linkpage.fh-preset-graffiti.fh-pop-1 .fh-links .fh-link-btn:nth-child(odd):hover { transform: rotate(-0.6deg); }
.fh-linkpage.fh-preset-graffiti.fh-pop-0 .fh-links .fh-link-btn:nth-child(even):hover,
.fh-linkpage.fh-preset-graffiti.fh-pop-1 .fh-links .fh-link-btn:nth-child(even):hover { transform: rotate(0.5deg); }
.fh-linkpage.fh-preset-graffiti.fh-pop-0 .fh-link-btn:hover,
.fh-linkpage.fh-preset-graffiti.fh-pop-1 .fh-link-btn:hover { box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.65); }

.fh-linkpage.fh-preset-graffiti .fh-link-icon {
  border-radius: 6px;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fh-accent) 45%, transparent);
}

/* Tape strips on the merch banner and channel cards. */
.fh-linkpage.fh-preset-graffiti .fh-merch {
  position: relative;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
}

.fh-linkpage.fh-preset-graffiti .fh-channel {
  position: relative;
  border: 2px solid color-mix(in srgb, var(--fh-text) 65%, transparent);
  border-radius: 12px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.6);
}

.fh-linkpage.fh-preset-graffiti .fh-merch::before,
.fh-linkpage.fh-preset-graffiti .fh-channel::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 92px;
  height: 22px;
  margin-left: -46px;
  transform: rotate(-3deg);
  background: rgba(233, 220, 170, 0.82);
  border-left: 1px dashed rgba(0, 0, 0, 0.18);
  border-right: 1px dashed rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.fh-linkpage.fh-preset-graffiti .fh-merch-btn {
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.65);
}

.fh-linkpage.fh-preset-graffiti .fh-merch-btn:hover { box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.65); }

.fh-linkpage.fh-preset-graffiti.fh-pop-0 .fh-merch-btn:hover,
.fh-linkpage.fh-preset-graffiti.fh-pop-1 .fh-merch-btn:hover { box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.65); }

/* QR stays scannable-white; the ring goes magenta with a hard shadow. */
.fh-linkpage.fh-preset-graffiti .fh-qr {
  box-shadow:
    0 0 0 3px var(--fh-accent2),
    4px 4px 0 rgba(0, 0, 0, 0.55);
}

/* The badge becomes a sticker: tilted, uppercase, hard shadow. */
.fh-linkpage.fh-preset-graffiti .fh-powered {
  transform: rotate(-1.5deg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  animation: none;
}

/* Performance mode flattens the graffiti paint too: no tilts, no
   stroke, no splatter, no tape — same readable page, calm. */
.fh-linkpage.fh-preset-graffiti.fh-perf .fh-name,
.fh-linkpage.fh-preset-graffiti.fh-perf .fh-support-title,
.fh-linkpage.fh-preset-graffiti.fh-perf .fh-powered,
.fh-linkpage.fh-preset-graffiti.fh-perf .fh-link-btn,
.fh-linkpage.fh-preset-graffiti.fh-perf .fh-link-icon { transform: none !important; }

.fh-linkpage.fh-preset-graffiti.fh-perf .fh-name {
  -webkit-text-stroke: 0;
  text-shadow: none !important;
}

.fh-linkpage.fh-preset-graffiti.fh-perf::after { display: none !important; }

.fh-linkpage.fh-preset-graffiti.fh-perf .fh-merch::before,
.fh-linkpage.fh-preset-graffiti.fh-perf .fh-channel::before { display: none !important; }

/* ---------- custom: rich base only, nothing extra ---------- */

/* ---------- powered-by link (the tip jar's door) ---------- */

.fh-powered-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.fh-powered-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fh-powered-link:focus-visible {
  outline: 2px solid var(--fh-accent);
  outline-offset: 2px;
}

/* ---------- tip jar ---------- */

.fh-jar {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  position: relative;
  text-align: center;
}

.fh-jar-title {
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fh-text);
  overflow-wrap: anywhere;
}

.fh-jar-copy {
  margin: 6px 0 0;
  color: var(--fh-text);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fh-jar-subline {
  margin: 0;
  color: var(--fh-muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fh-jar-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.fh-jar-fallback-link {
  color: var(--fh-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  padding: 14px 16px;
  overflow-wrap: anywhere;
}

.fh-jar-footer {
  margin-top: 12px;
}
