/* Badges and profile cosmetics, the same on every page (look.js draws them). A cosmetic's colors arrive as --c1, --c2
   and --c3 (painted on by look.js); with only --c1 it's one color, with more a gradient. */
.c-pink { --c: #ff6fcf; --c-soft: rgba(255, 79, 195, .13); --c-line: rgba(255, 79, 195, .42); }
.c-purple { --c: #b99bff; --c-soft: rgba(160, 120, 255, .13); --c-line: rgba(160, 120, 255, .42); }
.c-blue { --c: #7fb2ff; --c-soft: rgba(90, 150, 255, .13); --c-line: rgba(90, 150, 255, .42); }
.c-cyan { --c: #5fd8f0; --c-soft: rgba(60, 200, 230, .13); --c-line: rgba(60, 200, 230, .42); }
.c-green { --c: #4cd6b4; --c-soft: rgba(76, 214, 180, .13); --c-line: rgba(76, 214, 180, .42); }
.c-gold { --c: #f2c14e; --c-soft: rgba(242, 193, 78, .13); --c-line: rgba(242, 193, 78, .45); }
.c-orange { --c: #ffa65c; --c-soft: rgba(255, 150, 70, .13); --c-line: rgba(255, 150, 70, .42); }
.c-red { --c: #ff7a8f; --c-soft: rgba(255, 90, 110, .13); --c-line: rgba(255, 90, 110, .42); }
.c-gray { --c: #c3a5b7; --c-soft: rgba(255, 255, 255, .06); --c-line: rgba(255, 255, 255, .2); }

/* a badge: a pill with its own little picture, lit in its color */
.kbdg { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; white-space: nowrap;
  font: 700 12.5px/1.3 var(--font); letter-spacing: .2px; color: var(--c); border: 1px solid var(--c-line);
  background: linear-gradient(180deg, var(--c-soft), rgba(0, 0, 0, .14)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.kbdg .ic { flex: none; filter: drop-shadow(0 0 4px var(--c)); }
.kbdg.sm { padding: 2px 8px 2px 6px; gap: 4px; font-size: 11px; }
.kbdg.sm .ic { width: 10px; height: 10px; }

/* a name in its name style: one color, or a gradient; shine / glow / wave */
.kname { overflow-wrap: anywhere; }
.kname.styled { color: var(--c1); }
.kname.styled.grad, .kname.styled.fx-shine { -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent; }
.kname.styled.grad { background-image: linear-gradient(90deg, var(--c1), var(--c2, var(--c1)), var(--c3, var(--c1)), var(--c1));
  background-size: 300% 100%; }
.kname.styled.fx-shine:not(.grad) { background-image: linear-gradient(100deg, var(--c1) 38%, #fff 50%, var(--c1) 62%);
  background-size: 260% 100%; animation: kn-shine 4.5s ease-in-out infinite; }
.kname.styled.grad.fx-shine { animation: kn-flow 6s linear infinite; }
.kname.styled.fx-wave { animation: kn-flow 3.2s linear infinite; }
.kname.styled.fx-glow:not(.grad) { text-shadow: 0 0 12px var(--c1), 0 0 2px var(--c1); }
.kname.styled.grad.fx-glow { filter: drop-shadow(0 0 8px var(--c1)); }
.kname.styled.fx-pixel { color: var(--c1); text-shadow: 2px 2px 0 var(--c2, rgba(0, 0, 0, .55)); letter-spacing: .4px; }
@keyframes kn-shine { 0%, 35% { background-position: 100% 0; } 75%, 100% { background-position: 0 0; } }
@keyframes kn-flow { to { background-position: 300% 0; } }

/* the picture (your first letter) */
.kav { position: relative; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 30%; }
.kav-in { width: 100%; height: 100%; border-radius: inherit; display: grid; place-items: center; font: 700 15px/1 var(--display);
  color: var(--accent-ink, #2a0a1f); background: linear-gradient(160deg, #ff9ade, #ff4fc3 55%, #d42a9c); }
.kav-xs { width: 20px; height: 20px; }
.kav-xs .kav-in { font-size: 10px; }
.kav-sm { width: 26px; height: 26px; }
.kav-sm .kav-in { font-size: 12px; }
.kav-lg { width: 64px; height: 64px; border-radius: 28%; }
.kav-lg .kav-in { font-size: 28px; }
.kav-xl { width: 76px; height: 76px; border-radius: 28%; }
.kav-xl .kav-in { font-size: 34px; }
/* a profile picture over the letter (the letter shows if the picture can't load) */
.kav-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #1b0f18; }

/* a profile banner: pixel art (pixel.js draws it on a canvas in .kbanner-layer), blown up with sharp edges, with a
   dark wash on the left so the name on it stays easy to read. Before it's drawn: its sky color. */
[data-banner] .kbanner-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; overflow: hidden;
  background: var(--c1, #1a1020); }
.kbanner-layer > canvas.kpx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated;
  image-rendering: crisp-edges; }
@supports (image-rendering: pixelated) { .kbanner-layer > canvas.kpx { image-rendering: pixelated; } }
.kbanner-layer::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 6, 14, .6), rgba(10, 6, 14, .26) 46%, rgba(10, 6, 14, .08) 75%, rgba(10, 6, 14, .2)),
    linear-gradient(0deg, rgba(10, 6, 14, .35), transparent 45%); }

/* a person: picture, name, badge (the hub's cards, profiles) */
.kauthor { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); text-decoration: none; font-weight: 700; font-size: 13.5px; }
.kauthor-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.kauthor:hover .kauthor-name { text-decoration: underline; text-underline-offset: 3px; }

/* a cosmetic shown on its own (the shop, "yours") */
.kprev { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 92px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, .05), transparent 60%), rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.kprev-name { font: 700 22px/1.2 var(--display); padding: 0 12px; text-align: center; }
.kprev-banner { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 16px; font: 700 15px/1 var(--display); }
.kprev-banner > :not(.kbanner-layer) { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .kname.styled { animation: none !important; }
}
