/* ==========================================================================
   khaleej.bio — core design system
   Khaleeji ocean at night: black water, moonlight, foam text
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* sea ramp: deep water up to moonlight */
  --brand-900: #061018;
  --brand-800: #0c2432;
  --brand-700: #14384c;
  --brand-600: #1d6f8f;
  --brand-500: #3aa0c4;
  --brand-400: #7ec8e3;
  --brand-300: #c5eef8;
  --brand-200: #f4fbfd;

  --mist-800: #081820;
  --mist-700: #123040;
  --mist-600: #1c5068;
  --mist-500: #6eb8d4;
  --mist-400: #b7e0ee;
  --mist-300: #d9f1f8;
  --mist-200: #f4fbfd;

  --sky: #d7f3fb;
  --dune: #e4c98a;
  --sand: #e4c98a;

  /* surfaces. The page is night water; panels are dark glass. */
  --bg: #061018;
  --bg-elev: #0c2230;
  --bg-sheet: #123444;
  --surface: rgba(10, 36, 50, 0.66);
  --surface-2: rgba(16, 52, 70, 0.88);
  --surface-3: rgba(126, 200, 227, 0.16);
  --line: rgba(186, 224, 236, 0.16);
  --line-2: rgba(186, 224, 236, 0.34);

  /* text */
  --text: #f4f8fb;
  --text-dim: #c5d8e4;
  --text-faint: #8eafc0;

  /* status */
  --ok: #3f9d7a;
  --warn: #c2a24c;
  --bad: #c2566a;

  /* shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* elevation */
  --sh-1: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.55);
  --sh-2: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 32px 70px -28px rgba(0, 0, 0, 0.65);
  --sh-brand: 0 18px 40px -18px rgba(62, 168, 196, 0.55);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.18s;
  --t: 0.32s;
  --t-slow: 0.6s;

  /* layout */
  --maxw: 1200px;
  --nav-h: 76px;

  --font: "Outfit", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(126, 200, 227, 0.35); color: #f4f8fb; }
[data-tilt] {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(var(--tilt-z, 0px));
  transform-style: preserve-3d;
  will-change: transform;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-400), var(--brand-600));
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--brand-300), var(--brand-500)); }

/* ---------- 3. Ambient background ---------- */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-wing {
  position: absolute;
  inset: 0;
  background:
    url("../img/waves.svg") no-repeat center bottom / 100% 46%,
    url("../img/stars.svg") no-repeat center top / cover,
    radial-gradient(ellipse 36% 28% at 78% 6%, rgba(232, 246, 252, 0.28), transparent 62%),
    radial-gradient(ellipse 48% 34% at 8% -4%, rgba(36, 130, 160, 0.38), transparent 64%),
    radial-gradient(ellipse 90% 42% at 50% 112%, rgba(8, 48, 72, 0.78), transparent 64%),
    linear-gradient(180deg, #040c14 0%, #082033 40%, #0c3a52 72%, #061018 100%);
  opacity: 1;
}

.bg-grid {
  position: absolute;
  inset: -2px;
  background: url("../img/grid.svg") repeat;
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 100% 72% at 50% 0%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 72% at 50% 0%, #000 12%, transparent 78%);
  opacity: 0.18;
}

.bg-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}
.bg-aurora.a1 {
  width: 760px; height: 620px;
  top: -300px; left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(126, 200, 227, 0.42), transparent 68%);
  animation: drift1 24s var(--ease-io) infinite;
}
.bg-aurora.a2 {
  width: 560px; height: 520px;
  top: 14%; right: -180px;
  background: radial-gradient(circle, rgba(228, 201, 138, 0.2), transparent 68%);
  animation: drift2 30s var(--ease-io) infinite;
}
.bg-aurora.a3 {
  width: 620px; height: 560px;
  bottom: -220px; left: -180px;
  background: radial-gradient(circle, rgba(40, 150, 180, 0.48), transparent 68%);
  animation: drift3 27s var(--ease-io) infinite;
}

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px, 50px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px, 90px) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(90px, -60px) scale(1.14); } }

.bg-noise {
  position: absolute;
  inset: 0;
  background: url("../img/noise.svg");
  background-size: 200px;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 8%, transparent 46%, rgba(2, 8, 14, 0.55) 100%);
}

/* ---------- 4. Custom cursor ---------- */
.cursor-dot,
.cursor-ring,
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
html.cursor-live .cursor-dot,
html.cursor-live .cursor-ring,
html.cursor-live .cursor-glow { opacity: 1; }

.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #5eb0d4;
  transition: opacity 0.3s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease);
}

.cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1.4px solid rgba(94, 176, 212, 0.65);
  display: grid;
  place-items: center;
  backdrop-filter: invert(2%);
  transition: opacity 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease),
    margin 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    border-radius 0.3s var(--ease);
}

.cursor-ring .c-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist-200);
  opacity: 0;
  scale: 0.7;
  white-space: nowrap;
  transition: opacity 0.22s var(--ease), scale 0.22s var(--ease);
}

.cursor-glow {
  width: 320px; height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 200, 227, 0.28), transparent 62%);
  filter: blur(14px);
}
/* Profile pages keep the cursor mark, without the light that follows it.
   On a dimmed profile the ring only shows while the pointer is on the card. */
body.overlay-page .cursor-glow,
body.dash-body .cursor-glow { display: none; }
html.cursor-live body.overlay-page .cursor-dot,
html.cursor-live body.overlay-page .cursor-ring { opacity: 0; }
html.cursor-live.cursor-on-card body.overlay-page .cursor-dot,
html.cursor-live.cursor-on-card body.overlay-page .cursor-ring { opacity: 1; }
html.cursor-live body.dash-body.cursor-in-preview .cursor-dot,
html.cursor-live body.dash-body.cursor-in-preview .cursor-ring { opacity: 0; }
html.cursor-live.cursor-on-card body.dash-body.cursor-in-preview .cursor-dot,
html.cursor-live.cursor-on-card body.dash-body.cursor-in-preview .cursor-ring { opacity: 1; }

/* cursor states */
html.c-hover .cursor-ring {
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
  border-color: rgba(94, 176, 212, 0.85);
  background: rgba(126, 200, 227, 0.22);
}
html.c-hover .cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; }

html.c-label .cursor-ring {
  width: 86px; height: 86px;
  margin: -43px 0 0 -43px;
  border-color: rgba(94, 176, 212, 0.7);
  background: rgba(8, 24, 36, 0.82);
  backdrop-filter: blur(6px);
}
html.c-label .cursor-ring .c-label { opacity: 1; scale: 1; }
html.c-label .cursor-dot { opacity: 0; }

html.c-text .cursor-ring {
  width: 4px; height: 30px;
  margin: -15px 0 0 -2px;
  border-radius: 2px;
  border-color: transparent;
  background: var(--brand-300);
}
html.c-text .cursor-dot { opacity: 0; }

html.cursor-live,
html.cursor-live * { cursor: none !important; }

/* click ripple */
.ripple {
  position: fixed;
  z-index: 9998;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(94, 176, 212, 0.75);
  pointer-events: none;
  animation: ripple 0.6s var(--ease) forwards;
}
@keyframes ripple {
  to { scale: 5; opacity: 0; border-width: 0.4px; }
}

/* ---------- 5. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-wide { max-width: 1340px; }
.section { position: relative; padding: 96px 0; }
.section-sm { padding: 72px 0; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 6. Typography ---------- */
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; }
.display, .h2, .footer-mark, .auth-card h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(3.1rem, 7.4vw, 5.8rem);
  font-weight: 560;
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(2.15rem, 4.4vw, 3.35rem); font-weight: 520; letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lede {
  font-size: clamp(1rem, 1.35vw, 1.175rem);
  color: var(--text-dim);
  line-height: 1.65;
  font-weight: 300;
  max-width: 58ch;
}
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono-num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.grad-text {
  background: linear-gradient(102deg, #fff 0%, #d8f4fb 38%, #7ec8e3 72%, #e4c98a 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  backdrop-filter: blur(10px);
}
.eyebrow .ico { width: 15px; height: 15px; color: var(--brand-300); }
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-300);
  box-shadow: 0 0 0 4px rgba(126, 200, 227, 0.35);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(126, 200, 227, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(126, 200, 227, 0.08); }
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .lede { margin: 18px auto 0; }

/* ---------- 7. Icons ---------- */
.ico {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-fill { fill: currentColor; stroke: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 26px; height: 26px; }
#sprite { display: none; }

/* ---------- 8. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.btn .ico { width: 17px; height: 17px; }

/* sheen sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(237, 243, 249, 0.22) 50%, transparent 80%);
  translate: -140% 0;
  transition: translate 0.75s var(--ease);
}
.btn:hover::after { translate: 140% 0; }

.btn-primary {
  background: linear-gradient(180deg, #b7e4f4, #3d9ec4);
  color: #0e3350;
  box-shadow: 0 14px 40px -18px rgba(94, 176, 212, 0.7);
}
.btn-primary .ico { color: #0e3350; }
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #d4eef8, #2f8eb8);
  box-shadow: 0 20px 50px -18px rgba(94, 176, 212, 0.75);
}
.btn-primary.is-loading::before {
  border-color: rgba(14, 51, 80, 0.28);
  border-top-color: #0e3350;
}
.btn-primary:active { transform: translateY(0) scale(0.985); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn:disabled:hover { transform: none; }
.btn:disabled::after { display: none; }

.btn-soft {
  background: rgba(126, 200, 227, 0.16);
  border: 1px solid rgba(126, 200, 227, 0.28);
  color: #e8f6fb;
}
.btn-soft:hover { background: rgba(126, 200, 227, 0.5); border-color: rgba(47, 111, 150, 0.32); transform: translateY(-2px); }

.btn-line { color: var(--text-dim); padding: 0 10px; }
.btn-line:hover { color: var(--text); }

.btn-lg { height: 54px; padding: 0 30px; font-size: 1rem; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 0.85rem; border-radius: var(--r-pill); }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::before {
  content: "";
  position: absolute;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(237, 243, 249, 0.3);
  border-top-color: #fff;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.btn-discord {
  background: #111;
  color: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.9);
}
.btn-discord:hover { transform: translateY(-2px); background: #181818; border-color: rgba(255, 255, 255, 0.3); }

/* text link with sweeping underline */
.link-u {
  position: relative;
  color: var(--text-dim);
  transition: color var(--t) var(--ease);
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  scale: 0 1;
  transform-origin: right;
  transition: scale 0.4s var(--ease);
}
.link-u:hover { color: var(--text); }
.link-u:hover::after { scale: 1 1; transform-origin: left; }

/* ---------- 9. Cards ---------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(12, 40, 58, 0.88), rgba(6, 20, 32, 0.8));
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-1);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

/* cursor-tracking spotlight */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(126, 200, 227, 0.28), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover::before { opacity: 1; }

/* cursor-tracking border highlight */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(126, 200, 227, 0.7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover::after { opacity: 1; }

.card-lift:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.card-pad { padding: 28px; }

.glass {
  border: 1px solid var(--line);
  background: rgba(8, 24, 38, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
}

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ---------- 10. Chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.chip .ico { width: 13px; height: 13px; }
.chip-brand { border-color: rgba(94, 176, 212, 0.45); background: rgba(126, 200, 227, 0.16); color: #c5e8f4; }
.chip-ok { border-color: rgba(63, 157, 122, 0.4); background: rgba(63, 157, 122, 0.14); color: #8fd2b8; }

/* ---------- 11. Brand lockup ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand img {
  width: 38px; height: 38px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: drop-shadow(0 4px 10px rgba(47, 142, 184, 0.35));
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.brand:hover img {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 8px 18px rgba(94, 176, 212, 0.45));
}
.brand .tld { color: var(--text-faint); font-weight: 400; }

/* ---------- 12. Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 16, 26, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(8, 28, 42, 0.62);
  backdrop-filter: blur(12px);
}
.nav-links a {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text-dim);
  transition: color var(--t) var(--ease);
  z-index: 1;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  opacity: 0;
  transition: transform 0.42s var(--ease), width 0.42s var(--ease), height 0.42s var(--ease), opacity 0.2s linear;
  pointer-events: none;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  place-items: center;
}
.nav-burger span {
  display: block;
  width: 17px; height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.nav-burger span + span { margin-top: 4.5px; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 880;
  padding: 18px 24px 26px;
  background: rgba(4, 16, 26, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  transform-origin: top;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.45s var(--ease);
}
.mobile-menu.open { clip-path: inset(0 0 0 0); }
.mobile-menu a {
  padding: 13px 4px;
  font-size: 1.05rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { margin-top: 14px; }

/* scroll progress */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  scale: 0 1;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-300), var(--mist-500));
  z-index: 950;
}

/* ---------- 13. Footer ---------- */
.footer {
  position: relative;
  padding: 80px 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(4, 14, 22, 0.72));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 54px;
}
.footer h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col .brand { display: inline-flex; padding: 0; }
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.925rem;
  color: var(--text-dim);
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}
.footer-col a:hover { color: var(--text); transform: translateX(5px); }
.footer-about p { margin: 18px 0 22px; font-size: 0.925rem; color: var(--text-dim); max-width: 34ch; font-weight: 300; }
.footer-col a.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 2px;
  padding: 6px 16px 6px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}
.footer-col a.footer-discord:hover { color: var(--text); transform: translateY(-3px); }
.footer-discord [data-social] {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.footer-discord .ico { width: 16px; height: 16px; }
.footer-owners { margin: 0; }
.footer-owners a { color: var(--text-dim); }
.footer-owners a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  transition: all var(--t) var(--ease);
}
.socials a:hover { transform: translateY(-4px); }

/* social tiles — monochrome */
a[data-social] .ico,
span[data-social] .ico { color: inherit; }
a[data-social], span[data-social] { color: inherit; }

.overlay-page a[data-social],
.ov-socials a[data-social],
.pv-socials a[data-social] {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  fill: currentColor !important;
}
.overlay-page a[data-social] .ico,
.ov-socials a[data-social] .ico,
.pv-socials a[data-social] .ico {
  color: inherit !important;
  fill: currentColor;
}
.soc-inline {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  flex: none;
}
.soc-inline .ico { width: 15px; height: 15px; }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.footer-base nav { display: flex; gap: 20px; }

/* giant watermark */
.footer-mark {
  display: block;
  width: 100%;
  margin-top: 18px;
  font-size: clamp(3.4rem, 15vw, 13rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.06em;
  text-align: center;
  background: linear-gradient(180deg, rgba(126, 200, 227, 0.35), rgba(126, 200, 227, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ---------- 14. Forms ---------- */
.field { display: grid; gap: 8px; }
.field > label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 15px;
  gap: 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(6, 22, 34, 0.78);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.input-wrap:hover { border-color: var(--line-2); }
.input-wrap:focus-within {
  border-color: rgba(94, 176, 212, 0.7);
  box-shadow: 0 0 0 4px rgba(126, 200, 227, 0.28);
  background: rgba(8, 28, 42, 0.94);
}
.input-wrap > .ico { color: var(--text-faint); transition: color var(--t) var(--ease); }
.input-wrap:focus-within > .ico { color: var(--brand-300); }
.input-wrap select {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
/* Native menus paint a white sheet. Page text is near-white, so options
   disappear unless the menu itself uses black text. */
.input-wrap select option,
.input-wrap select optgroup {
  color: #e8f6fb;
  background-color: #0e2a3c;
}
.input-wrap select option:checked,
.input-wrap select option:hover,
.input-wrap select option:focus {
  color: #e8f6fb;
  background-color: #145a82;
}
.input-wrap input,
.input-wrap textarea {
  flex: 1;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  color-scheme: dark;
}
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus,
.input-wrap textarea:-webkit-autofill,
.input-wrap textarea:-webkit-autofill:hover,
.input-wrap textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #0b2230 inset;
  transition: background-color 99999s ease-out;
}
.input-wrap input:focus-visible, .input-wrap textarea:focus-visible { outline: none; }
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color: var(--text-faint); }
.input-wrap .prefix { font-size: 0.95rem; color: var(--text-faint); white-space: nowrap; }
.input-wrap .suffix { font-size: 0.8rem; color: var(--text-faint); }
.input-wrap.ta { height: auto; padding: 13px 15px; align-items: flex-start; }
.input-wrap.ta textarea { resize: vertical; min-height: 86px; line-height: 1.55; }
.input-wrap.bad { border-color: rgba(194, 86, 106, 0.6); }
.input-wrap.ok { border-color: rgba(63, 157, 122, 0.55); }

.eye-btn { display: grid; place-items: center; color: var(--text-faint); transition: color var(--t) var(--ease); }
.eye-btn:hover { color: var(--text); }

.hint { font-size: 0.78rem; color: var(--text-faint); min-height: 15px; }
.hint.bad { color: #e08a99; }
.hint.ok { color: #8fd2b8; }

.check {
  position: relative;
  display: block;
  padding-left: 30px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  position: absolute;
  left: 0; top: 1.5px;
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: all var(--t) var(--ease);
}
.check .box .ico { width: 12px; height: 12px; stroke-width: 2.6; color: #fff; scale: 0; transition: scale var(--t) var(--ease); }
.check input:checked + .box { background: var(--brand-500); border-color: var(--brand-400); }
.check input:checked + .box .ico { scale: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--brand-300); outline-offset: 2px; }
.check:hover .box { border-color: var(--brand-400); }
.check a { color: var(--mist-400); text-decoration: underline; text-underline-offset: 3px; }

/* toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  width: 44px; height: 25px;
  border-radius: 99px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  transition: all var(--t) var(--ease);
  position: relative;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2.5px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mist-400);
  transition: all var(--t) var(--ease);
}
.switch input:checked + .track { background: var(--brand-500); border-color: var(--brand-400); }
.switch input:checked + .track::after { left: 21px; background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--brand-300); outline-offset: 2px; }

/* strength meter */
.meter { display: flex; gap: 5px; margin-top: 2px; }
.meter i {
  height: 3px;
  flex: 1;
  border-radius: 99px;
  background: var(--surface-3);
  transition: background-color 0.35s var(--ease);
}
.meter[data-level="1"] i:nth-child(-n + 1) { background: #c2566a; }
.meter[data-level="2"] i:nth-child(-n + 2) { background: #c2a24c; }
.meter[data-level="3"] i:nth-child(-n + 3) { background: #4c93c2; }
.meter[data-level="4"] i { background: #3f9d7a; }

/* divider with label */
.or {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 15. Toasts ---------- */
.toasts {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 9600;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 44px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(8, 28, 42, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: var(--sh-2);
  font-size: 0.88rem;
  animation: toastIn 0.45s var(--ease);
}
.toast.out { animation: toastOut 0.35s var(--ease) forwards; }
.toast .ico { width: 18px; height: 18px; margin-top: 1px; }
.toast strong { display: block; font-weight: 600; margin-bottom: 1px; }
.toast p { color: var(--text-dim); font-size: 0.82rem; line-height: 1.45; }
.toast.ok .ico { color: #6fc9a6; }
.toast.bad .ico { color: #e08a99; }
.toast.info .ico { color: var(--brand-300); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(26px) scale(0.96); } }

.kg-float-tip {
  position: fixed;
  z-index: 12000;
  left: 0;
  top: 0;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 11px;
  background: #101010;
  color: #f2f2f2;
  font-size: 0.74rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1.3;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px -18px #000;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.92);
  transform-origin: 50% 100%;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  max-width: min(280px, calc(100vw - 16px));
}
.kg-float-tip.on {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
body.has-float-tips .kg-tip::after { display: none; }

/* ---------- 16. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 17. Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .pl-inner { display: grid; justify-items: center; gap: 20px; }
.preloader img { width: 78px; height: 78px; object-fit: contain; border-radius: 16px; animation: plBob 1.5s var(--ease-io) infinite; filter: drop-shadow(0 10px 22px rgba(94, 176, 212, 0.4)); }
@keyframes plBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-11px) rotate(4deg); } }
.preloader .pl-bar { width: 128px; height: 2px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.preloader .pl-bar i { display: block; height: 100%; width: 40%; border-radius: 9px; background: linear-gradient(90deg, var(--brand-500), var(--mist-500)); animation: plSlide 1.1s var(--ease-io) infinite; }
@keyframes plSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }

/* ---------- 18. Avatars ---------- */
.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--line);
  flex: none;
  vertical-align: middle;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(142, 180, 255, 0.85); }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section { padding: 86px 0; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-actions .btn-line { display: none; }
}
@media (max-width: 620px) {
  /* the CTA lives in the burger menu at this size */
  .nav-actions .btn-primary { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .section { padding: 70px 0; }
}

/* ===== Profile layouts (must beat .pub-card .pv-banner) ===== */
.pv.layout-grid .pv-links { grid-template-columns: 1fr 1fr; }

.pv.layout-compact .pv-banner,
.pub-card .pv.layout-compact > .pv-banner { height: 56px; }
.pv.layout-compact .pv-body,
.pub-card .pv.layout-compact .pv-body { padding: 0 16px 16px; margin-top: -28px; }
.pv.layout-compact .pv-body > .avatar,
.pub-card .pv.layout-compact .pv-body > .avatar { width: 56px; height: 56px; }
.pv.layout-compact .pv-name { font-size: 1.05rem; margin-top: 8px; }
.pv.layout-compact .pv-bio { margin: 8px 0 10px; font-size: 0.8rem; }
.pv.layout-compact .pv-link { padding: 8px 10px; font-size: 0.8rem; gap: 8px; }
.pv.layout-compact .pv-socials a { width: 30px; height: 30px; }

.pv.layout-cards .pv-links { gap: 12px; }
.pv.layout-cards .pv-link {
  padding: 16px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--pv-accent, #ffffff) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--pv-accent, #ffffff) 35%, var(--line));
}

.pv.layout-banner .pv-banner,
.pub-card .pv.layout-banner > .pv-banner { height: 210px; }
.pv.layout-banner .pv-body,
.pub-card .pv.layout-banner .pv-body { margin-top: -64px; padding-top: 0; }
.pv.layout-banner .pv-body > .avatar,
.pub-card .pv.layout-banner .pv-body > .avatar {
  width: 84px; height: 84px;
  box-shadow: 0 12px 30px -12px #000;
}

.pv.layout-minimal .pv-banner,
.pub-card .pv.layout-minimal > .pv-banner { display: none; }
.pv.layout-minimal .pv-body,
.pub-card .pv.layout-minimal .pv-body {
  margin-top: 0;
  padding: 36px 28px 32px;
  text-align: center;
}
.pv.layout-minimal .pv-body > .avatar,
.pub-card .pv.layout-minimal .pv-body > .avatar {
  margin-inline: auto;
  width: 108px; height: 108px;
}
.pv.layout-minimal .pv-name,
.pv.layout-minimal .pv-handle { justify-content: center; }
.pv.layout-minimal .pv-meta,
.pv.layout-minimal .pv-socials { justify-content: center; }
.pv.layout-minimal .pv-links { max-width: 320px; margin-inline: auto; }

.pv.layout-sleek .pv-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  margin-top: -28px;
}
.pv.layout-sleek .pv-banner,
.pub-card .pv.layout-sleek > .pv-banner { height: 96px; }
.pv.layout-sleek .pv-body > .avatar,
.pub-card .pv.layout-sleek .pv-body > .avatar {
  grid-column: 1;
  grid-row: 1 / span 8;
  width: 88px; height: 88px;
}
.pv.layout-sleek .pv-name { margin-top: 8px; }

.pv.layout-modern .pv-banner,
.pub-card .pv.layout-modern > .pv-banner { height: 100px; border-radius: 0; }
.pv.layout-modern .pv-link {
  border-radius: 999px;
  padding: 11px 18px;
  justify-content: center;
}
.pv.layout-modern .pv-link .arr { display: none; }
.pv.layout-modern .pv-body > .avatar,
.pub-card .pv.layout-modern .pv-body > .avatar { border-radius: 18px; }

.pv.layout-portfolio .pv-banner,
.pub-card .pv.layout-portfolio > .pv-banner { height: 160px; }
.pv.layout-portfolio .pv-body { display: flex; flex-direction: column; }
.pv.layout-portfolio .pv-about { order: 2; }
.pv.layout-portfolio .pv-skills { order: 3; }
.pv.layout-portfolio .pv-socials { order: 4; }
.pv.layout-portfolio .pv-links { order: 5; display: grid; grid-template-columns: 1fr 1fr; }
.pv.layout-portfolio .pv-player { order: 6; }
.pv.layout-portfolio .pv-widget { order: 7; }

.pub-wrap.layout-sleek,
.pub-wrap.layout-portfolio { max-width: 640px; }
.pub-wrap.layout-minimal { max-width: 860px; }

/* ---------- Pro flags ----------
   Each effect writes its own property. Shared looks (glass, film, motion)
   are composed in pro-features.js so two switches cannot erase each other.
---------- */
.pf-layer { pointer-events: none; z-index: 25; overflow: hidden; }
body > .pf-layer { position: fixed; inset: 0; }
.preview-scroll > .pf-layer { position: absolute; inset: 0; z-index: 8; }

.pf-hideAvatar .ov-av-wrap,
.pf-hideAvatar .ov-av-sm,
.pf-hideAvatar .ov-av-lg { display: none !important; }
.pf-squareAvatar .ov-av-wrap,
.pf-squareAvatar .ov-av-wrap::before,
.pf-squareAvatar .ov-av-lg,
.pf-squareAvatar .ov-av-sm { border-radius: 22px !important; }
.pf-hugeAvatar .ov-av-lg { width: 148px !important; height: 148px !important; }
.pf-hugeAvatar .ov-av-sm { width: 96px !important; height: 96px !important; }
.pf-spinAvatar .ov-av-lg,
.pf-spinAvatar .ov-av-sm { animation: pfSpin 14s linear infinite; }
.pf-glowAvatar .ov-av-lg,
.pf-glowAvatar .ov-av-sm {
  filter: drop-shadow(0 0 10px var(--pv-accent, #8eb4ff)) drop-shadow(0 0 26px rgba(59, 110, 240, 0.8));
}
.pf-online { display: none; }
.pf-onlineDot .pf-online {
  display: block;
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3ddc84;
  border: 2px solid #07101f;
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.28);
  animation: pfBlink 1.6s ease-in-out infinite;
}
.pf-hideName .pv-name { display: none !important; }
.pf-hideBio .ov-status,
.pf-hideBio [data-pv-bio] { display: none !important; }
.pf-hideSocials .ov-socials,
.pf-hideSocials .pv-socials { display: none !important; }
.pf-hideLinks .pv-links { display: none !important; }
.pf-hideAudio .pv-player { display: none !important; }
.pf-hideLocation .ov-foot { display: none !important; }
.pf-hideHomeBtn .pub-home { display: none !important; }
.pf-hideShare .pub-actions { display: none !important; }

.pf-hideCard .ov-card {
  background: transparent !important;
  border-color: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.pf-nameCaps .uname { text-transform: uppercase; }
.pf-nameWide .uname { letter-spacing: 0.22em; }
.pf-nameUnderline .uname {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: #8eb4ff;
  text-decoration-thickness: 2px;
}
.pf-nameGradient .uname {
  background-image: linear-gradient(100deg, #f4f7ff 0%, #9eb6ff 42%, #6b93f5 78%, #d6e4ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.pf-nameOutline .uname { -webkit-text-stroke: 1.25px #d7e4ff !important; }
.pf-nameOutline:not(.pf-nameGradient) .uname { color: transparent !important; }
.pf-nameGlow .uname { text-shadow: 0 0 16px rgba(186, 208, 255, 0.95), 0 0 36px rgba(59, 110, 240, 0.7) !important; }
.pf-bioItalic .ov-status { font-style: italic; font-weight: 300; }
.pf-bioGlow .ov-status { color: #e7eeff; text-shadow: 0 0 14px rgba(142, 180, 255, 0.95); }
:is(.pf-tinyName, .pf-hugeName) .pv-name { font-size: var(--pf-name-size) !important; }

.pf-graded { filter: var(--pf-grade); }
.pf-hueShift { animation: pfHue 14s linear infinite; }

.pf-scan { background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.pf-grain { background-image: url("../img/noise.svg"); opacity: .28; mix-blend-mode: overlay; }
.pf-vig { box-shadow: inset 0 0 160px 40px #000; }
.pf-dim { background: rgba(0,0,0,.45); }
.pf-bars {
  background: linear-gradient(#000, #000) top / 100% 9vh no-repeat,
              linear-gradient(#000, #000) bottom / 100% 9vh no-repeat;
}
.pf-mark {
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,.08);
  transform: rotate(-18deg);
}

.pf-spark i, .pf-snow i, .pf-confetti i {
  position: absolute;
  top: -12px;
  animation: pfFall linear infinite;
}
.pf-spark i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 16px rgba(142, 180, 255, 0.9);
}
.pf-snow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  filter: blur(0.4px);
}
.pf-centerAll .ov { align-items: center !important; justify-content: center !important; }
.pf-mirrorPage .ov { transform: scaleX(-1); }

.pf-textLinks .pv-link .ico,
.pf-textLinks .pv-link img { display: none; }
.pf-textLinks .pv-link {
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-left: 0;
}
.pf-glowLinks .pv-link { box-shadow: 0 0 22px rgba(170, 170, 170,.35); }
.pf-socialCol .ov-socials { flex-direction: column; align-items: center; }

.pf-zoomBg .pub-custom-bg,
.pf-zoomBg .bg-wing,
.pf-zoomBg .kg-bg-video,
.pf-zoomBg .pf-softbg { animation: pfZoom 22s ease-in-out infinite alternate; transform-origin: center; }
.pf-softbg {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  transform: scale(1.06);
  z-index: 0;
}
.pf-softFocus .pub-custom-bg,
.pf-softFocus .bg-wing,
.pf-softFocus .kg-bg-video { filter: blur(14px); }
.preview-scroll > .pf-softbg,
body > .pf-softbg { z-index: 0; }
.preview-scroll .pv,
.pub-wrap { position: relative; z-index: 1; }

.pf-noShadow .ov-socials a,
.pf-noShadow .pv-link { box-shadow: none !important; }
.pf-uppercaseAll .ov { text-transform: uppercase; }
:is(.pf-thinIcons, .pf-jumboIcons) .ov-socials a {
  width: var(--pf-soc) !important;
  height: var(--pf-soc) !important;
}
:is(.pf-thinIcons, .pf-jumboIcons) .ov-socials a .ico {
  width: var(--pf-ico) !important;
  height: var(--pf-ico) !important;
}

.pf-hideViews .ov-views { display: none !important; }
.pf-hideBadges .ov-badges { display: none !important; }
.pf-hideDiscord .pv-widget.discord { display: none !important; }
.pf-hideJoin .pc-joined { display: none !important; }

.pf-avatarRing .ov-av-lg,
.pf-avatarRing .ov-av-sm {
  box-shadow: 0 0 0 3px #07101f, 0 0 0 6px #6b93f5;
}
.pf-pixelAvatar .ov-av-lg,
.pf-pixelAvatar .ov-av-sm { position: relative; overflow: hidden; }
.pf-pixelAvatar .ov-av-lg img,
.pf-pixelAvatar .ov-av-sm img { filter: contrast(1.35) saturate(0.85); image-rendering: pixelated; }
.pf-pixelAvatar .ov-av-lg::before,
.pf-pixelAvatar .ov-av-sm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 6px);
  mix-blend-mode: multiply;
}
.pf-flipAvatar .ov-av-lg img,
.pf-flipAvatar .ov-av-sm img { scale: -1 1; }

.pf-card-tuned .ov .ov-card,
.pf-card-tuned .ov .ov-gcard,
.pf-card-tuned .ov .ov-pcard {
  padding: var(--pf-pad) !important;
  border-radius: var(--pf-radius) !important;
  background: var(--pf-card-bg) !important;
  border: var(--pf-edge) solid var(--pf-edge-color) !important;
  backdrop-filter: blur(var(--pf-blur)) saturate(var(--pf-sat)) !important;
  -webkit-backdrop-filter: blur(var(--pf-blur)) saturate(var(--pf-sat)) !important;
  box-shadow: var(--pf-shadow) !important;
}
.pf-sharpCard .ov :is(.ov-card, .ov-gcard, .ov-pcard) { border-radius: 0 !important; }
.pf-roundCard .ov :is(.ov-card, .ov-gcard, .ov-pcard) { border-radius: 48px !important; }
.pf-bluewash { background: rgba(28, 70, 180, 0.28); mix-blend-mode: soft-light; }

.ov-stage {
  width: min(var(--card-w, 820px), 100%);
  max-width: 100%;
  perspective: 1000px;
  transform: var(--pf-tilt, none);
  animation: var(--pf-float, none);
  transform-origin: center center;
}
.ov > .ov-stage {
  align-self: center;
  margin-inline: auto;
}
.ov-stage > .ov-card { width: 100%; }

.pf-rain i {
  position: absolute;
  top: -16%;
  width: 1px;
  height: 16vh;
  background: linear-gradient(to bottom, transparent, rgba(174, 200, 255, 0.75));
  animation: pfRain linear infinite;
}
.pf-confetti i {
  position: absolute;
  top: -10px;
  width: 7px;
  height: 11px;
  border-radius: 1px;
  animation: pfFall linear infinite;
}
.pf-driftName .pv-name { animation: pfDrift 4.5s ease-in-out infinite; }

.pf-roundSocials .ov-socials a { border-radius: 50% !important; }
.pf-glowSocials .ov-socials a { filter: drop-shadow(0 0 10px rgba(107, 147, 245, 0.9)); }
.pf-outlineSocials .ov-socials a {
  background: transparent !important;
  border: 1px solid rgba(142, 180, 255, 0.7) !important;
}

@property --pf-hue { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@keyframes pfSpin { to { rotate: 360deg; } }
@keyframes pfFall { to { translate: 0 110vh; } }
@keyframes pfFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@keyframes pfPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
@keyframes pfBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes pfShake {
  10%, 90% { translate: -2px 0; }
  20%, 80% { translate: 4px 0; }
  30%, 50%, 70% { translate: -6px 0; }
  40%, 60% { translate: 6px 0; }
  100% { translate: 0 0; }
}
@keyframes pfShakeBounce {
  0% { translate: -5px 0; }
  7% { translate: 6px 0; }
  14% { translate: -6px -2px; }
  21% { translate: 4px 0; }
  34% { translate: 0 -14px; }
  50% { translate: 0 -3px; }
  68% { translate: 0 -11px; }
  100% { translate: 0 0; }
}
@keyframes pfZoom { to { scale: 1.12; } }
@keyframes pfEq { to { height: 14px; } }
@keyframes pfRain { to { translate: 0 130vh; } }
@keyframes pfHue { to { --pf-hue: 360deg; } }
@keyframes pfBounce {
  0%, 100% { translate: 0 0; }
  40% { translate: 0 -12px; }
  60% { translate: 0 -4px; }
}
@keyframes pfDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
