/* Gerado por scripts/cosmetics-export.mjs a partir de features/cosmetics/cosmetics.css do app. Não edite. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/zx-space-grotesk-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/zx-playfair-display-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/zx-fredoka-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/zx-jetbrains-mono-latin-700-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/zx-press-start-2p-latin-400-normal.woff2) format('woff2');
}
/*
 * Visual do Zync Plus (M24): molduras, nomes estilizados, placas de nome e selos.
 * Tudo para quando a pessoa pede menos animação (preferência do app ou do sistema).
 */

/* Fontes dos nomes (só o peso usado; servidas pelo próprio app). */

@keyframes zx-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes zx-flow {
  to {
    background-position: 200% 50%;
  }
}

@keyframes zx-shimmer {
  0% {
    transform: translateX(-120%) skewX(-20deg);
  }
  60%,
  100% {
    /* Termina inteiro fora da placa: o recomeço do loop não aparece. */
    transform: translateX(310%) skewX(-20deg);
  }
}

/* ─────────────────────────────── Molduras ─────────────────────────────── */

.zx-deco {
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
}

.zx-deco > * {
  position: absolute;
  border-radius: 9999px;
}

/* ─────────────────────────────── Nomes ─────────────────────────────── */

@keyframes zx-neon-on {
  0%,
  19%,
  21%,
  23%,
  80%,
  100% {
    opacity: 1;
    text-shadow:
      0 0 1px #fff,
      0 0 3px var(--zx-c1),
      0 0 8px var(--zx-c1),
      0 0 16px color-mix(in srgb, var(--zx-c1) 75%, transparent),
      0 0 28px color-mix(in srgb, var(--zx-c1) 45%, transparent);
  }
  20%,
  22%,
  81% {
    opacity: 0.45;
    text-shadow: none;
  }
}

@keyframes zx-holo {
  0% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  100% {
    background-position: 300% 50%;
    filter: hue-rotate(360deg);
  }
}

@keyframes zx-fire {
  0% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 50% -100%;
  }
}

@keyframes zx-glitch-a {
  0%,
  86%,
  100% {
    transform: none;
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
  87% {
    transform: translate(-2px, 1px);
    clip-path: inset(10% 0 55% 0);
    opacity: 1;
  }
  90% {
    transform: translate(2px, -1px);
    clip-path: inset(60% 0 8% 0);
    opacity: 1;
  }
  93% {
    transform: translate(-1px, 0);
    clip-path: inset(35% 0 30% 0);
    opacity: 1;
  }
}

@keyframes zx-nebula-drift {
  0%,
  100% {
    background-position:
      142% 100%,
      142% 100%,
      16% 43%;
  }
  20% {
    background-position:
      142% 100%,
      142% 100%,
      35% 48%;
  }
  36% {
    background-position:
      -35% 2%,
      -35% 2%,
      71% 54%;
  }
  45% {
    background-position:
      -35% 2%,
      -35% 2%,
      81% 55%;
  }
  72% {
    background-position:
      142% 100%,
      142% 100%,
      53% 66%;
  }
}

@keyframes zx-foil-spark {
  0%,
  100% {
    background-position:
      0 0,
      0 0,
      0 0;
  }
  34% {
    background-position:
      13px 2px,
      -7px 4px,
      0 0;
  }
  62% {
    background-position:
      25px -2px,
      -13px 0,
      0 0;
  }
}

@keyframes zx-frost-bloom {
  0%,
  100% {
    background-size:
      34% 145%,
      39% 140%,
      auto 145%;
  }
  35% {
    background-size:
      90% 145%,
      45% 140%,
      auto 145%;
  }
  68% {
    background-size:
      45% 145%,
      93% 140%,
      auto 145%;
  }
}

@keyframes zx-wave {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-0.18em);
  }
}

.zx-name {
  /*
   * Cores escolhidas (--zx-raw1/2, do perfil) escurecidas por --zx-shade: 0% no tema
   * escuro e sobre placa; no tema claro escurecem para o nome claro (lavanda, amarelo)
   * continuar legível sobre fundo branco, como as cores de cargo (--role-shade).
   */
  --zx-shade: 0%;
  --zx-c1: color-mix(in oklab, var(--zx-raw1, #ffffff), #000 var(--zx-shade));
  --zx-c2: color-mix(in oklab, var(--zx-raw2, var(--zx-raw1, #ffffff)), #000 var(--zx-shade));
  position: relative;
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  /* Espaço para o brilho e a onda não serem cortados. */
  padding: 0.12em 0.08em 0.04em;
  margin: -0.12em -0.08em -0.04em;
}

.zx-name[data-effect]:not([data-effect='solid']) {
  font-weight: 700;
}

.zx-name[data-effect='solid'] {
  color: var(--zx-c1);
}

.zx-name[data-effect='gradient'],
.zx-name[data-effect='flow'],
.zx-name[data-effect='holo'],
.zx-name[data-effect='metal'],
.zx-name[data-effect='fire'],
.zx-name[data-effect='galaxy'] {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.zx-name[data-effect='gradient'] {
  background-image: linear-gradient(90deg, var(--zx-c1), var(--zx-c2));
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.35));
}

.zx-name[data-effect='flow'] {
  background-image: linear-gradient(90deg, var(--zx-c1), var(--zx-c2), var(--zx-c1));
  background-size: 200% 100%;
  animation: zx-flow 3s linear infinite;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--zx-c1) 45%, transparent));
}

/* Letreiro: acende com falhas e fica zumbindo. */
.zx-name[data-effect='neon'] {
  color: color-mix(in srgb, var(--zx-c1) 30%, #fff);
  animation: zx-neon-on 4s linear infinite;
}

/* Holográfico: película iridescente com reflexo atravessando. */
.zx-name[data-effect='holo'] {
  background-image:
    linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 0.85) 50%, transparent 60%),
    linear-gradient(90deg, #a5f3fc, #c4b5fd, #f9a8d4, #fde68a, #a7f3d0, #a5f3fc);
  background-size:
    300% 100%,
    300% 100%;
  animation: zx-holo 5s linear infinite;
  filter: drop-shadow(0 0 5px rgb(196 181 253 / 0.55));
}

/* Metal polido: base escura do tom escolhido, faixa de luz forte passando. */
.zx-name[data-effect='metal'] {
  /* Base parada + faixa de luz que entra e sai fora das letras (sem emenda no loop). */
  background-image:
    linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 0.95) 50%, transparent 60%),
    linear-gradient(
      100deg,
      color-mix(in srgb, var(--zx-c1) 70%, #000),
      var(--zx-c1) 45%,
      color-mix(in srgb, var(--zx-c1) 55%, #fff) 60%,
      color-mix(in srgb, var(--zx-c1) 70%, #000)
    );
  background-size:
    250% 100%,
    100% 100%;
  background-repeat: no-repeat;
  animation: zx-gleam 3.2s ease-in-out infinite;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.5));
}

/* Em chamas: degradê de fogo subindo pelas letras, com brasa em volta. */
.zx-name[data-effect='fire'] {
  background-image: linear-gradient(
    0deg,
    #ef4444,
    #f97316 22%,
    #fde047 45%,
    #fff7ed 52%,
    #fde047 60%,
    #f97316 80%,
    #ef4444
  );
  background-size: 100% 200%;
  animation: zx-fire 2.4s linear infinite;
  filter: drop-shadow(0 0 2px rgb(251 146 60 / 0.9)) drop-shadow(0 -2px 7px rgb(239 68 68 / 0.6));
}

/* Glitch: cópias vermelha e ciano rasgadas por um instante; o nome em si nunca treme. */
.zx-name[data-effect='glitch'] {
  color: var(--zx-c1);
}

.zx-name[data-effect='glitch']::before,
.zx-name[data-effect='glitch']::after {
  /* Cópia só visual: texto alternativo vazio (leitores de tela leem o nome uma vez). */
  content: attr(data-text) / '';
  position: absolute;
  inset: 0;
  padding: inherit;
  opacity: 0;
  pointer-events: none;
}

.zx-name[data-effect='glitch']::before {
  color: #ef4444;
  animation: zx-glitch-a 3.2s steps(1) infinite;
}

.zx-name[data-effect='glitch']::after {
  color: #22d3ee;
  animation: zx-glitch-a 3.2s steps(1) infinite reverse;
}

/* Galáxia: poeira estelar fotografada, em um movimento que volta ao mesmo enquadramento. */
.zx-name[data-effect='galaxy'] {
  background-image:
    radial-gradient(ellipse 2.4% 7% at 50% 50%, #fff 4%, #baf3ff 27%, transparent 100%),
    radial-gradient(ellipse 13% 3% at 45% 50%, rgb(185 155 255 / 0.88), transparent 100%),
    var(--zx-name-photo, linear-gradient(120deg, #b1bdf0, #f3e2f4, #aab9ea));
  background-size:
    250% 260%,
    250% 260%,
    max(150%, 6em) auto;
  background-position:
    142% 100%,
    142% 100%,
    16% 43%;
  background-repeat: no-repeat;
  animation: zx-nebula-drift 8s ease-in-out infinite;
  filter: drop-shadow(0 1px 0 #3d3864);
}

/* Onda: cada letra sobe na sua vez. */
.zx-name[data-effect='wave'] > span {
  display: inline-block;
  background-image: linear-gradient(90deg, var(--zx-c1), var(--zx-c2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: zx-wave 2.4s ease-in-out infinite;
  white-space: pre;
}

/* Contorno: letra vazada na cor escolhida, com sombra deslocada. */
.zx-name[data-effect='contorno'] {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--zx-c1);
  text-shadow: 2px 2px 0 color-mix(in srgb, var(--zx-c1) 35%, transparent);
}

/* Sombra retrô: letra cheia com sombra longa em degraus (anos 80). */
.zx-name[data-effect='sombra-retro'] {
  color: var(--zx-c1);
  text-shadow:
    1px 1px 0 var(--zx-c2),
    2px 2px 0 var(--zx-c2),
    3px 3px 0 color-mix(in srgb, var(--zx-c2) 70%, #000);
}

/* Marca-texto: faixa da cor atrás da parte de baixo das letras, inclinada de leve. */
.zx-name[data-effect='marcador'] {
  background-image: linear-gradient(
    176deg,
    transparent 52%,
    color-mix(in srgb, var(--zx-c1) 75%, transparent) 54%,
    color-mix(in srgb, var(--zx-c1) 75%, transparent) 90%,
    transparent 92%
  );
}

/* Arco-íris: as cores correm devagar (rolagem contínua, sem emenda). */
.zx-name[data-effect='arco-iris'],
.zx-name[data-effect='ouro'],
.zx-name[data-effect='gelo'],
.zx-name[data-effect='aurora'],
.zx-name[data-effect='doce'],
.zx-name[data-effect='oceano'] {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.zx-name[data-effect='arco-iris'] {
  background-image: linear-gradient(
    90deg,
    #f87171,
    #fb923c,
    #facc15,
    #4ade80,
    #38bdf8,
    #a78bfa,
    #f472b6,
    #f87171
  );
  background-size: 200% 100%;
  animation: zx-flow 6s linear infinite;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.45));
}

/* Folha de ouro: o reflexo cruza a fotografia do metal e some fora das letras. */
.zx-name[data-effect='ouro'] {
  background-image:
    radial-gradient(1.9px 1.3px at 11px 6px, #fff9d9 9%, #ffe29a 31%, transparent 97%),
    radial-gradient(1.25px 2px at 27px 12px, #fff1b6 12%, transparent 94%),
    var(--zx-name-photo, linear-gradient(180deg, #f8e8a6, #c18a3a));
  background-size:
    34px 18px,
    47px 21px,
    auto 135%;
  background-repeat: repeat;
  animation: zx-foil-spark 4s ease-in-out infinite;
  filter: drop-shadow(0 1px 0 #5b3519);
}

/* Gelo: luz fria atravessa a textura dos cristais dentro das letras. */
.zx-name[data-effect='gelo'] {
  background-image:
    radial-gradient(ellipse at 0 0, #f4ffff 0%, rgb(173 239 255 / 0.8) 16%, transparent 62%),
    radial-gradient(ellipse at 100% 100%, #e4fbff 0%, rgb(153 207 255 / 0.64) 24%, transparent 68%),
    var(--zx-name-photo, linear-gradient(180deg, #f2fbff, #8ec6e3));
  background-size:
    34% 145%,
    39% 140%,
    auto 145%;
  background-position:
    left top,
    right bottom,
    0 0;
  background-repeat: no-repeat, no-repeat, repeat;
  animation: zx-frost-bloom 5s ease-in-out infinite;
  filter: drop-shadow(0 1px 0 #345b74);
}

/* Aurora: verde, turquesa e lilás ondulando (vai e volta, sem emenda). */
.zx-name[data-effect='aurora'] {
  background-image: linear-gradient(100deg, #4ade80, #2dd4bf, #a78bfa, #f472b6, #4ade80);
  background-size: 300% 100%;
  animation: zx-aurora 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 5px rgb(45 212 191 / 0.55));
}

/* Brilho suave: a cor escolhida e um halo que acende e apaga devagar (cópia por trás). */
.zx-name[data-effect='brilho'] {
  color: color-mix(in srgb, var(--zx-c1) 45%, #fff);
  /* O halo (z-index -1) fica atrás das letras mas na frente do fundo da linha. */
  isolation: isolate;
}

.zx-name[data-effect='brilho']::before {
  content: attr(data-text) / '';
  position: absolute;
  inset: 0;
  padding: inherit;
  z-index: -1;
  color: transparent;
  text-shadow:
    0 0 6px var(--zx-c1),
    0 0 14px var(--zx-c1);
  opacity: 0.7;
  pointer-events: none;
  animation: zx-breathe 3.2s ease-in-out infinite;
}

/* Bala listrada: listras diagonais nas duas cores, correndo. */
.zx-name[data-effect='doce'] {
  background-image: repeating-linear-gradient(45deg, var(--zx-c1) 0 7px, var(--zx-c2) 7px 14px);
  animation: zx-candy 2.4s linear infinite;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / 0.5));
}

/* Oceano: céu claro em cima, água em baixo e a linha da onda passando dentro das letras. */
.zx-name[data-effect='oceano'] {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20 Q10 14 20 20 T40 20 V40 H0 Z' fill='%230284c7'/%3E%3Cpath d='M0 20 Q10 14 20 20 T40 20' fill='none' stroke='%23e0f2fe' stroke-width='2'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #bae6fd, #7dd3fc);
  background-size:
    40px 100%,
    100% 100%;
  background-repeat: repeat-x, no-repeat;
  animation: zx-sea 3s linear infinite;
  filter: drop-shadow(0 1px 0 rgb(12 74 110 / 0.8));
}

@keyframes zx-gleam {
  0% {
    background-position:
      120% 0,
      0 0;
  }
  60%,
  100% {
    background-position:
      -20% 0,
      0 0;
  }
}

@keyframes zx-aurora {
  to {
    background-position: 100% 50%;
  }
}

@keyframes zx-breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.95;
  }
}

/* Listras de 45° com período de 14px: andar 14√2 px na horizontal fecha o ciclo. */
@keyframes zx-candy {
  to {
    background-position: 19.799px 0;
  }
}

@keyframes zx-sea {
  to {
    background-position:
      40px 0,
      0 0;
  }
}

/* Tema claro: cores escolhidas mais escuras; paletas fixas claras ganham contorno fino. */
:root[data-theme='light'] .zx-name {
  --zx-shade: 45%;
}

/* Neon e brilho clareiam a cor com branco no escuro; no claro usam a cor escurecida. */
:root[data-theme='light'] .zx-name:is([data-effect='neon'], [data-effect='brilho']) {
  color: var(--zx-c1);
}

:root[data-theme='light']
  .zx-name:is(
    [data-effect='holo'],
    [data-effect='gelo'],
    [data-effect='ouro'],
    [data-effect='arco-iris'],
    [data-effect='aurora'],
    [data-effect='oceano'],
    [data-effect='galaxy'],
    [data-effect='fire']
  ) {
  filter: drop-shadow(0 0 0.6px rgb(15 23 42 / 0.85)) drop-shadow(0 1px 1px rgb(15 23 42 / 0.25));
}

/* Sobre placa o fundo é escuro (véu), em qualquer tema: cor original. */
:root[data-theme='light'] :is(.zx-plate ~ * .zx-name, .zx-plate ~ .zx-name) {
  --zx-shade: 0%;
}

/* ─────────────────────────────── Placas de nome ─────────────────────────────── */

.zx-plate {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
}

.zx-plate-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Véu onde fica o nome: legível em qualquer placa, clara ou escura. */
.zx-plate::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.7) 0%, rgb(0 0 0 / 0.5) 50%, rgb(0 0 0 / 0) 82%);
}

.zx-plate[data-light='true']::before {
  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 0.82) 0%,
    rgb(0 0 0 / 0.64) 52%,
    rgb(0 0 0 / 0.08) 86%
  );
}

/* Reflexo que passa. */
.zx-plate::after {
  content: '';
  z-index: 2;
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.22), transparent);
  opacity: 0;
}

.zx-plate[data-shimmer='true']::after {
  opacity: 1;
  animation: zx-shimmer 4.5s ease-in-out infinite;
}

/*
 * Nome em cima de uma placa: o efeito do nome (cores escolhidas pela pessoa) pode sumir numa
 * placa clara ou cheia de detalhes. Um contorno escuro curto garante a leitura sobre qualquer
 * placa, sem mudar as cores do nome.
 */
:has(> .zx-plate) > :not(.zx-plate) {
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.7);
}

/* Nomes com texto recortado no degradê: a sombra de texto apareceria por dentro das letras. */
:has(> .zx-plate) .zx-name[data-effect] {
  text-shadow: none;
  filter: drop-shadow(0 0 1px rgb(0 0 0 / 0.95)) drop-shadow(0 1px 2px rgb(0 0 0 / 0.75));
}

/* ─────────────────────────────── Selo Plus ─────────────────────────────── */

.zx-plus-badge {
  background-image: linear-gradient(135deg, #8b5cf6, #5865f2 50%, #22d3ee);
  background-size: 200% 200%;
  animation: zx-flow 6s linear infinite;
}

/* ─────────────────────────────── Menos animação ─────────────────────────────── */

:root[data-reduced-motion='true']
  :is(.zx-deco *, .zx-name, .zx-name *, .zx-plate, .zx-plate::after, .zx-plus-badge, .zx-gem *),
:root[data-reduced-motion='true'] :is(.zx-plate::after, .zx-name::before, .zx-name::after) {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  :is(.zx-deco *, .zx-name, .zx-name *, .zx-plate, .zx-plus-badge, .zx-gem *),
  .zx-plate::after,
  .zx-name::before,
  .zx-name::after {
    animation: none !important;
  }
}

/* ─────────────────────────────── Emblema do Plus ─────────────────────────────── */

@keyframes zx-gem-shine {
  0%,
  55% {
    transform: translateX(0) skewX(-18deg);
  }
  100% {
    transform: translateX(220px) skewX(-18deg);
  }
}

@keyframes zx-gem-glow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

.zx-gem-shine {
  animation: zx-gem-shine 3.6s ease-in-out infinite;
}

.zx-gem-glow {
  animation: zx-gem-glow 2.8s ease-in-out infinite;
}

/* Texto sobre placa de nome: sombra para ler em qualquer cena (clara ou escura). */
:has(> .zx-plate) {
  text-shadow:
    0 1px 2px rgb(0 0 0 / 0.95),
    0 0 8px rgb(0 0 0 / 0.55);
}

/*
 * Nome legível sobre qualquer placa (lista de membros, prévias, loja): sombra escura atrás do
 * texto comum e dos nomes com efeito. A placa é paga e não pode piorar a leitura.
 */
.zx-plate ~ *,
.zx-plate ~ * * {
  text-shadow:
    0 1px 2px rgb(0 0 0 / 0.9),
    0 0 6px rgb(0 0 0 / 0.55);
}

.zx-plate ~ * .zx-name,
.zx-plate ~ .zx-name,
.zx-plate ~ * .zx-name * {
  text-shadow: none;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.95)) drop-shadow(0 0 4px rgb(0 0 0 / 0.6));
}

.zx-font-grotesk {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 700;
  font-size: 1em;
}
.zx-font-serif {
  font-family: 'Playfair Display', Inter, sans-serif;
  font-weight: 700;
  font-size: 1.05em;
}
.zx-font-rounded {
  font-family: 'Fredoka', Inter, sans-serif;
  font-weight: 600;
  font-size: 1.05em;
}
.zx-font-mono {
  font-family: 'JetBrains Mono', Inter, sans-serif;
  font-weight: 700;
  font-size: 0.92em;
}
.zx-font-pixel {
  font-family: 'Press Start 2P', Inter, sans-serif;
  font-weight: 400;
  font-size: 0.62em;
  letter-spacing: 0.02em;
}
