/* Vardų stiliai (assets/js/vardai.js): fonts, letters, effects; the profile's "Vardų stiliai" collection.
   Jacquard 12 (blackletter) and Metamorphous (runic-looking serif): SIL Open Font License 1.1, Google Fonts, self-hosted
   like fonts.css (no external requests). Pixelify Sans comes from fonts.css. Only downloaded when a name uses them. */
@font-face {
  font-family: "Jacquard 12"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/jacquard12-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jacquard 12"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/jacquard12-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Metamorphous"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/metamorphous-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Metamorphous"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/metamorphous-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- the name */
.vs .vs-l { --c: currentColor; }
.vs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* fonts (web look-alikes of the in-game ones) */
.vs-font-bold .vs-n { font-weight: 700; }
.vs-font-italic .vs-n { font-style: italic; }
.vs-font-senovinis .vs-n { font-family: "Jacquard 12", "Old English Text MT", "UnifrakturMaguntia", Georgia, serif; font-weight: 400; font-size: 1.12em; line-height: 1; letter-spacing: .02em; }
.vs-font-runinis .vs-n { font-family: "Metamorphous", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-weight: 400; }
.vs-font-pikselinis .vs-n { font-family: "Pixelify Sans", "VT323", ui-monospace, monospace; font-size: .8em; font-weight: 500; }
.vs-font-uniform .vs-n { font-family: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace; font-size: .92em; }

/* effects – calm on purpose (owner): per letter over its own colour (--c), slow cycles (≥ 2.5 s), at most ~35 % toward
   the effect colours (--x0…--x2), never a flash; every frame stays readable */
.vs-fx-shimmer .vs-n .vs-l { animation: vs-shimmer 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes vs-shimmer {
  0%, 50%, 100% { color: var(--c); }
  18% { color: color-mix(in srgb, var(--c) 72%, var(--x0)); }
  25% { color: color-mix(in srgb, var(--c) 65%, var(--x1)); }
  32% { color: color-mix(in srgb, var(--c) 72%, var(--x2)); }
}
.vs-fx-pulse .vs-n .vs-l { animation: vs-pulse 3s ease-in-out infinite; }
@keyframes vs-pulse {
  0%, 100% { color: var(--c); }
  50% { color: color-mix(in srgb, var(--c) 65%, var(--x0)); }
}
/* flicker = each letter glows softly at its own phase (ease-in-out there and back ≈ a sine), no jumps */
.vs-fx-flicker .vs-n .vs-l { animation: vs-glow 2.8s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * -1ms); }
@keyframes vs-glow {
  from { color: var(--c); }
  to { color: color-mix(in srgb, var(--c) 65%, var(--x0)); }
}
/* still (reduced motion): the letters' own colours with a soft glow in the effect colour */
@media (prefers-reduced-motion: reduce) {
  .vs-fx .vs-n .vs-l { animation: none !important; }
  .vs-fx .vs-n { filter: drop-shadow(0 0 2px var(--xg)); }
}

/* ---------------------------------------------------------------- profile: Vardų stiliai */
.vs-groups { display: grid; gap: 10px; margin-bottom: 14px; }
.vs-group h4 { margin: 0 0 6px; font: 600 16px var(--font-head); color: var(--muted); letter-spacing: .02em; }
.vs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.vs-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.vs-item .vs-prev { font-weight: 600; font-size: 16px; color: #fff; text-shadow: 1px 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-item .vs-iname { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-item .vs-how { font-size: 12px; color: var(--muted); line-height: 1.3; }
.vs-item.active { border-color: var(--green); background: rgba(85, 255, 85, .07); }
.vs-item .vs-on { font-size: 12px; color: var(--green); }
.vs-item.locked .vs-prev { opacity: .45; filter: grayscale(.75); }
.vs-item.locked .vs-iname { opacity: .75; }
.vs-item.locked .vs-l { animation-play-state: paused !important; }
.vs-item.locked .vs-iname::before { content: "🔒 "; font-size: 11px; }

/* ---------------------------------------------------------------- guide (/vadovas/#vardu-stiliai) */
.vs-cat .vs-prev { font-weight: 600; font-size: 17px; color: #fff; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.vs-cat td:first-child { color: var(--muted); white-space: nowrap; }
