/* ════════════════════════════════════════════════════════════════════
   Pupito — social: perfil público (#/u/<usuario>, public/js/profile-page.js), botón Seguir,
   listas de seguidores, ficha rápida de un jugador (salas y chat), sección «Siguiendo» de la
   portada, enlaces a perfiles desde el ranking y las salas (public/js/social.js) y el regalo de
   Pupito (public/js/gifts.js). Base común y, debajo, cada tema bajo :root[data-style='brutal'] /
   :root[data-style='retro'] (claro y oscuro). Se carga después de ranking.css.
   ════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────── Enlaces a perfiles ───────────────────────────── */

/* Ficha de la sala, avatar o nombre del chat de una cuenta: se pulsa para ver su ficha. */
.plink {
  cursor: pointer;
}

.plink:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.player-chip.plink {
  transition: transform 0.12s, box-shadow 0.12s;
}

.player-chip.plink:hover {
  transform: translateY(-2px);
}

.chat-msg .who.plink:hover .cx-n {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chat-msg > .avatar.plink:hover {
  scale: 1.08;
}

.waiting-players .chip.plink:hover {
  transform: translateY(-1px);
}

/* Ranking: un enlace invisible cubre cada fila y cada puesto del podio. */
.rank-row,
.rank-pod-who {
  position: relative;
}

.rank-plink {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.rank-plink:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.rank-row:has(.rank-plink:hover) .rank-who .cx-n,
.rank-pod-who:has(.rank-plink:hover) .rank-pod-name .cx-n {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.rank-pod-who:has(.rank-plink:hover) .rank-pod-av {
  transform: translateY(-3px);
  transition: transform 0.15s;
}

/* Anfitrión de una sala abierta (portada y lobby). */
.room-host-link {
  display: flex;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.room-host-link:hover .cx-n {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* «Mi perfil público» en «Tu cuenta» (mismo aspecto que «Ver ranking»). */
.acct-pub-link svg {
  width: 15px;
  height: 15px;
}

/* ───────────────────────────── Botón Seguir ───────────────────────────── */

.follow-btn {
  position: relative;
  white-space: nowrap;
}

.follow-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.follow-btn .fb-on,
.follow-btn .fb-off {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.follow-btn .fb-off {
  display: none;
}

/* Al pasar por encima (o con el teclado): «Dejar de seguir». Recién seguido, todavía no. */
@media (hover: hover) {
  .follow-btn.is-following:not(.is-fresh, .is-busy):hover .fb-on {
    display: none;
  }

  .follow-btn.is-following:not(.is-fresh, .is-busy):hover .fb-off {
    display: inline-flex;
  }

  .follow-btn.is-following:not(.is-fresh, .is-busy):hover {
    --btn-bg: var(--red);
    --btn-fg: #fff;
    color: #fff;
    background: var(--red);
  }
}

.follow-btn.is-following:not(.is-fresh, .is-busy):focus-visible .fb-on {
  display: none;
}

.follow-btn.is-following:not(.is-fresh, .is-busy):focus-visible .fb-off {
  display: inline-flex;
}

.follow-btn.is-following {
  --btn-bg: var(--surface-2);
}

.follow-btn.is-busy {
  cursor: progress;
}

/* ───────────────────────────── Aviso «empezó a seguirte» ───────────────────────────── */

.toast.follow .t-icon {
  display: none;
}

.follow-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.follow-toast-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-toast-go {
  flex: none;
  margin-left: auto;
  font-weight: 700;
  font-size: 0.85rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ───────────────────────────── Perfil público ───────────────────────────── */

.pp {
  padding-top: 26px;
  padding-bottom: 60px;
}

.pp-wrap {
  max-width: 1040px;
  margin-inline: auto;
}

.pp-hero {
  --c: var(--accent);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-strong);
}

.pp-hero.is-new {
  animation: pp-in 0.45s var(--ease) both;
}

.pp-hero-band {
  position: relative;
  height: 112px;
  overflow: hidden;
  background:
    radial-gradient(color-mix(in srgb, #fff 34%, transparent) 1.4px, transparent 2px) 0 0 / 16px 16px,
    linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 55%, var(--accent-2)));
}

/* Confeti geométrico de la franja (decoración). */
.pp-hero-band span {
  position: absolute;
  display: block;
  border-radius: 6px;
  opacity: 0.9;
}

.pp-hero-band span:nth-child(1) {
  right: 12%;
  top: 18px;
  width: 34px;
  height: 34px;
  background: var(--yellow);
  rotate: 14deg;
}

.pp-hero-band span:nth-child(2) {
  right: 22%;
  top: 58px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.pp-hero-band span:nth-child(3) {
  right: 5%;
  top: 64px;
  width: 52px;
  height: 14px;
  background: var(--green);
  rotate: -8deg;
}

.pp-hero-main {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  padding: 0 26px 22px;
  margin-top: -58px;
  flex-wrap: wrap;
}

.pp-av {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-grid;
  place-items: center;
  padding: 10px;
}

.pp-av .avatar.xl {
  width: 132px;
  height: 132px;
  font-size: 4.2rem;
}

.pp-av.has-frame {
  padding: 26px;
  margin: -16px;
}

.pp-id {
  flex: 1;
  min-width: min(260px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}

.pp-name {
  min-width: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.pp-name .pname-x {
  max-width: 100%;
}

.pp-name .cx-title {
  font-size: 0.86rem;
}

.pp-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.pp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--text);
}

.pp-tag svg {
  width: 14px;
  height: 14px;
}

.pp-tag.is-follows {
  background: color-mix(in srgb, var(--pink) 30%, transparent);
}

.pp-since {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pp-since svg {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

.pp-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.pp-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
}

.pp-count b {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
}

.pp-count:hover span,
.pp-count:focus-visible span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
}

.pp-own-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 26px 20px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-2);
  background: var(--surface-2);
}

.pp-own-note svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.pp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.pp-grid.is-new > * {
  animation: pp-in 0.45s var(--ease) both;
}

.pp-grid.is-new > :nth-child(2) {
  animation-delay: 60ms;
}

.pp-grid.is-new > :nth-child(3) {
  animation-delay: 120ms;
}

.pp-grid.is-new > :nth-child(4) {
  animation-delay: 180ms;
}

.pp-card {
  min-width: 0;
  padding: 18px 20px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.pp-showcase {
  grid-column: 1 / -1;
}

.pp-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.pp-card h2 svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.pp-card h2 .coin-ico {
  width: 20px;
  height: 20px;
}

.pp-h-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-3);
}

.pp-empty {
  font-size: 0.92rem;
  color: var(--text-3);
}

/* Estadísticas */
.pp-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pp-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.pp-tile-k {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.pp-tile-v {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
}

.pp-tile-v small {
  font-size: 1rem;
  color: var(--text-3);
}

.pp-tile-sub {
  font-size: 0.82rem;
  color: var(--text-2);
}

.pp-bar {
  display: block;
  height: 10px;
  margin: 4px 0 2px;
  border-radius: 99px;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.pp-bar i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple, #a98bff), var(--pink));
}

/* Ranking */
.pp-rank-list,
.pp-rec-list,
.pp-show-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-rank-list {
  display: grid;
  gap: 8px;
}

.pp-rank {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.12s;
}

.pp-rank:hover {
  transform: translateX(3px);
}

.pp-rank-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
}

.pp-rank-ico svg {
  width: 22px;
  height: 22px;
}

.pp-rank-label {
  flex: 1;
  min-width: 0;
  font-weight: 700;
}

.pp-rank-pos {
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Récords: a todo lo ancho, en columnas; los primeros y «Ver los N récords». */
.pp-records {
  grid-column: 1 / -1;
}

.pp-rec-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 8px 10px;
}

.pp-rec-list > li[hidden] {
  display: none;
}

.pp-rec-more {
  display: flex;
  margin: 12px auto 0;
}

.pp-rec {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.pp-rec:hover .pp-rec-what b {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pp-rec-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  color: #fff;
}

.pp-rec-ico svg {
  width: 22px;
  height: 22px;
}

.pp-rec-what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pp-rec-what b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-rec-what small {
  font-size: 0.8rem;
  color: var(--text-3);
}

.pp-rec-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1rem;
  white-space: nowrap;
}

.pp-rec-rank {
  padding: 1px 7px;
  border-radius: 99px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--yellow);
  color: #111;
}

/* Escaparate */
.pp-show-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.pp-slot {
  --rc: var(--text-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
}

.pp-slot .cx-preview {
  width: 100%;
  min-height: 132px;
  --cx-rc: var(--rc);
}

.pp-slot .cx-pv-frame > .avatar {
  margin-block: 22px 18px;
}

.pp-slot .cx-pv-icon > .avatar {
  margin-top: 14px;
}

.pp-slot .cx-preview > .pname-x {
  max-width: 100%;
  font-size: 1.15rem;
}

.pp-slot-k {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.pp-slot-none {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 132px;
  border-radius: var(--radius-sm);
  font-size: 2rem;
  color: var(--text-3);
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--text) 6%, transparent) 0 8px, transparent 8px 16px);
}

.pp-slot-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.pp-slot-r {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--rc);
}

/* Logros: una insignia por logro; los desbloqueados en color con su fecha, los que faltan en gris
   con lo que piden. En el móvil, dos por fila. */
.pp-logros {
  grid-column: 1 / -1;
}

.pp-logros-bar {
  margin: -4px 0 14px;
}

.pp-logro-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-logro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 8px 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
}

.pp-logro-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 2px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--yellow), var(--orange, #ff9f43));
}

.pp-logro-name {
  max-width: 100%;
  font-size: 0.88rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pp-logro-date,
.pp-logro-desc {
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.pp-logro.is-off .pp-logro-ico {
  background: color-mix(in srgb, var(--text) 10%, transparent);
  filter: grayscale(1);
  opacity: 0.55;
}

.pp-logro.is-off .pp-logro-name {
  color: var(--text-3);
}

.pp-logro-prog {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

.pp-logro-prog .pp-bar {
  flex: 1;
  height: 6px;
  margin: 0;
}

.pp-logro-prog small {
  flex: none;
  font-size: 0.68rem;
  color: var(--text-3);
}

.pp-showcase > .btn {
  margin-top: 14px;
}

/* Estados */
.pp-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 40px auto;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px dashed var(--border-strong);
}

.pp-state-ico {
  font-size: 3.4rem;
}

.pp-state h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.pp-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.pp-state-actions svg {
  width: 18px;
  height: 18px;
}

/* Esqueleto */
.pp-hero.is-skel .pp-hero-band {
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

.pp-skel-av,
.pp-skel-line,
.fl-skel-av,
.fl-skel-line {
  display: block;
  border-radius: 99px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  animation: soc-pulse 1.2s ease-in-out infinite alternate;
}

.pp-skel-av {
  width: 132px;
  height: 132px;
  margin: 10px;
  border-radius: 50%;
}

.pp-skel-line {
  height: 14px;
  margin-top: 10px;
}

.pp-skel-line.w30 {
  width: 30%;
}

.pp-skel-line.w40 {
  width: 40%;
}

.pp-skel-line.w60 {
  width: 60%;
  height: 26px;
}

.pp-skel-line.w80 {
  width: 80%;
}

.pp-card.is-skel {
  min-height: 160px;
}

@keyframes soc-pulse {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

@keyframes pp-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* En el ordenador el nombre y los contadores empiezan bajo la franja (el avatar sí la pisa). */
@media (min-width: 761px) {
  .pp-id {
    margin-top: 66px;
  }
}

@media (max-width: 900px) {
  .pp-show-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pp-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pp-hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 0 16px 18px;
  }

  .pp-id {
    align-items: center;
    min-width: 0;
    width: 100%;
  }

  .pp-tags,
  .pp-counts,
  .pp-actions {
    justify-content: center;
  }

  .pp-own-note {
    margin: 0 16px 16px;
  }
}

@media (max-width: 520px) {
  .pp {
    padding-top: 16px;
  }

  .pp-hero-band {
    height: 92px;
  }

  .pp-hero-main {
    margin-top: -54px;
  }

  .pp-av .avatar.xl {
    width: 112px;
    height: 112px;
    font-size: 3.6rem;
  }

  .pp-card {
    padding: 16px 14px;
  }

  .pp-tiles {
    gap: 10px;
  }

  .pp-tile {
    padding: 12px 10px;
  }

  .pp-tile-v {
    font-size: 1.7rem;
  }

  .pp-show-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pp-logro-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pp-logro-ico {
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
  }

  .pp-slot .cx-preview,
  .pp-slot-none {
    min-height: 112px;
  }

  .pp-actions .btn {
    flex: 1 1 auto;
  }
}

/* ───────────────────────────── Lista de seguidores ───────────────────────────── */

.fl-modal .modal-body {
  padding-top: 6px;
}

.fl {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fl > .seg {
  align-self: flex-start;
  max-width: 100%;
}

.fl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 4px 6px 6px 2px;
}

.fl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.fl-row.is-skel {
  min-height: 56px;
}

.fl-skel-av {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
}

.fl-skel-line {
  flex: 1;
  height: 14px;
  max-width: 50%;
}

.fl-who {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.fl-who:hover .cx-n {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fl-name {
  min-width: 0;
  display: flex;
}

.fl-name .pname-x {
  max-width: 100%;
  font-weight: 800;
}

.fl-you {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--accent-soft);
}

.fl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 14px;
  text-align: center;
  color: var(--text-2);
}

.fl-empty span {
  font-size: 2.4rem;
}

.fl-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fl-more:empty {
  display: none;
}

.fl-error {
  color: var(--red);
  font-weight: 700;
}

/* ───────────────────────────── Ficha rápida (salas, chat) ───────────────────────────── */

.pcard-modal {
  width: min(380px, 100%);
  overflow: hidden;
}

.pcard-modal .modal-head {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 10px;
}

.pcard-modal .modal-head h2 {
  display: none;
}

.pcard-modal .modal-body {
  padding: 0;
}

.pcard-modal {
  position: relative;
}

.pcard {
  --c: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
  text-align: center;
}

.pcard-band {
  align-self: stretch;
  height: 78px;
  margin: 0 -20px;
  background:
    radial-gradient(color-mix(in srgb, #fff 34%, transparent) 1.4px, transparent 2px) 0 0 / 14px 14px,
    linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 55%, var(--accent-2)));
}

.pcard-av {
  display: inline-grid;
  place-items: center;
  margin-top: -62px;
  padding: 12px;
}

.pcard-name {
  max-width: 100%;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.pcard-name .pname-x {
  max-width: 100%;
}

.pcard-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pcard-you,
.pcard-follows {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--text);
}

.pcard-follows {
  background: color-mix(in srgb, var(--pink) 30%, transparent);
}

.pcard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.pcard-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.pcard-stat b {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.pcard-stat small {
  font-size: 0.72rem;
  color: var(--text-3);
}

.pcard-stat.is-skel b {
  color: transparent;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  animation: soc-pulse 1s ease-in-out infinite alternate;
}

.pcard-error {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--text-3);
}

.pcard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.pcard-actions .btn {
  flex: 1 1 140px;
  justify-content: center;
}

.pcard-actions svg {
  width: 18px;
  height: 18px;
}

.pcard-note {
  font-size: 0.84rem;
  color: var(--text-2);
}

.pcard-note:empty {
  display: none;
}

.pcard-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pcard-tab svg {
  width: 14px;
  height: 14px;
}

/* ───────────────────────────── Portada: «Siguiendo» ───────────────────────────── */

.fw[hidden] {
  display: none !important;
}

.fw .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fw .section-title svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--pink);
  fill: color-mix(in srgb, var(--pink) 30%, transparent);
}

.fw .section-head .btn svg {
  width: 18px;
  height: 18px;
}

.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.fw-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  animation: card-in 0.4s var(--ease) both;
}

.fw-card.is-skel {
  min-height: 66px;
}

.fw-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

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

.fw-card:has(.fw-link:hover) .fw-name .cx-n {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fw-av {
  position: relative;
  flex: none;
  display: inline-grid;
}

.fw-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--surface-solid);
  background: var(--text-3);
}

.fw-card:is(.is-online, .is-playing, .is-waiting, .is-joinable) .fw-dot {
  background: var(--green);
}

.fw-card:is(.is-playing, .is-waiting) .fw-dot {
  background: var(--yellow);
}

.fw-card.is-joinable .fw-dot {
  animation: fw-ping 1.4s ease-out infinite;
}

.fw-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fw-name {
  display: flex;
  min-width: 0;
  font-weight: 800;
}

.fw-name .pname-x {
  max-width: 100%;
}

.fw-status {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.84rem;
  color: var(--text-3);
}

.fw-status > span:last-child {
  /* Hasta dos líneas («Jugando a Cuatro en Raya» no cabe en una tarjeta estrecha). */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

/* Quien busca rival ocupa dos columnas: cabe el juego y el botón «Unirme». */
@media (min-width: 900px) {
  .fw-card.is-joinable {
    grid-column: span 2;
  }
}

.fw-card:is(.is-online, .is-playing, .is-waiting, .is-joinable) .fw-status {
  color: var(--text-2);
  font-weight: 600;
}

.fw-card.is-offline .fw-av {
  filter: saturate(0.4);
  opacity: 0.75;
}

.fw-game {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  color: #fff;
}

.fw-game svg {
  width: 14px;
  height: 14px;
}

.fw-join {
  position: relative;
  z-index: 2;
  flex: none;
}

.fw-join svg {
  width: 14px;
  height: 14px;
}

.fw-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-strong);
  color: var(--text-2);
}

.fw-empty > div {
  flex: 1;
  min-width: min(260px, 100%);
}

.fw-empty b {
  color: var(--text);
}

.fw-empty p {
  margin-top: 2px;
  font-size: 0.9rem;
}

.fw-empty-ico {
  font-size: 2.2rem;
}

.fw-foot {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.fw-foot:empty {
  display: none;
}

@keyframes fw-ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 70%, transparent);
  }
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

@media (max-width: 640px) {
  .fw-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .fw .section-head .btn {
    padding-inline: 12px;
  }
}

/* ───────────────────────────── Regalo de Pupito ───────────────────────────── */

.gift-backdrop {
  z-index: 260;
}

.gift-modal {
  --rc: var(--yellow);
  --gb-box: var(--pink);
  --gb-box-2: color-mix(in srgb, var(--pink) 78%, #000);
  --gb-ribbon: var(--yellow);
  --gb-line: #111;
  width: min(480px, 100%);
  max-height: min(94vh, 980px);
  overflow: auto;
  overscroll-behavior: contain;
  text-align: center;
}

/* El foco va al diálogo al abrirse (no a un botón): sin aro alrededor de todo el regalo. Los temas
   pintan :focus-visible con más especificidad, de ahí el :root[data-style]. */
.gift-modal:focus,
:root[data-style] .gift-modal:focus-visible {
  outline: none;
}

.gift-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 22px 0;
}

.gift-count {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--text-2);
}

.gift-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(1.45rem, 5vw, 1.9rem);
  line-height: 1.15;
}

.gift-title-ico {
  display: inline-block;
  animation: gift-bob 1.6s ease-in-out infinite;
}

.gift-sub {
  font-size: 0.95rem;
  color: var(--text-2);
}

.gift-stage {
  position: relative;
  display: grid;
  /* Una sola celda del tamaño del escenario: lo que es más grande (los rayos) desborda centrado. */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: 236px;
  margin: 6px 0 0;
  overflow: hidden;
  isolation: isolate;
}

.gift-stage > * {
  grid-area: 1 / 1;
}

.gift-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: repeating-conic-gradient(color-mix(in srgb, var(--rc) 55%, transparent) 0 9deg, transparent 9deg 20deg);
  mask: radial-gradient(closest-side, #000 25%, transparent 72%);
  -webkit-mask: radial-gradient(closest-side, #000 25%, transparent 72%);
  opacity: 0.35;
  z-index: -1;
  animation: gift-spin 18s linear infinite;
}

.gift-modal.is-revealed .gift-rays {
  opacity: 0.85;
  transition: opacity 0.5s;
}

.gift-burst {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, color-mix(in srgb, var(--rc) 70%, #fff) 45%, transparent 70%);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

.gift-modal.is-open .gift-burst {
  animation: gift-flash 0.55s ease-out both;
}

.gift-sparks {
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}

.gift-sparks i {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  opacity: 0;
  background: var(--yellow);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.gift-sparks i:nth-child(3n + 1) {
  background: var(--pink);
}

.gift-sparks i:nth-child(3n + 2) {
  background: var(--accent-2);
}

.gift-modal.is-open .gift-sparks i,
.gift-modal.is-revealed .gift-sparks i {
  animation: gift-spark 0.9s ease-out both;
  animation-delay: calc(var(--i) * 18ms);
}

/* La caja */
.gift-box {
  position: relative;
  width: 168px;
  height: 172px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gift-box:focus-visible {
  outline: 3px dashed var(--accent-2);
  outline-offset: 10px;
  border-radius: 16px;
}

.gift-box:disabled {
  cursor: default;
}

.gift-shadow {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -2px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  filter: blur(2px);
}

.gift-base {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 104px;
  border: 3px solid var(--gb-line);
  border-radius: 6px 6px 10px 10px;
  background:
    linear-gradient(90deg, transparent 72%, rgba(0, 0, 0, 0.12) 72%),
    var(--gb-box);
  overflow: hidden;
}

.gift-base .gift-ribbon,
.gift-lid .gift-ribbon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 26px;
  translate: -50% 0;
  background: var(--gb-ribbon);
  border-inline: 3px solid var(--gb-line);
}

.gift-lid {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 34px;
  height: 40px;
  border: 3px solid var(--gb-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0 30%, transparent 30%),
    var(--gb-box);
  transform-origin: 20% 100%;
  z-index: 2;
}

.gift-bow {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 92px;
  height: 46px;
  translate: -50% 4px;
}

.gift-bow i {
  position: absolute;
  bottom: 2px;
  width: 44px;
  height: 34px;
  border: 3px solid var(--gb-line);
  background: var(--gb-ribbon);
}

.gift-bow i.l {
  left: 2px;
  border-radius: 60% 20% 30% 60% / 70% 30% 40% 60%;
  rotate: -12deg;
  transform-origin: 100% 100%;
}

.gift-bow i.r {
  right: 2px;
  border-radius: 20% 60% 60% 30% / 30% 70% 60% 40%;
  rotate: 12deg;
  transform-origin: 0 100%;
}

.gift-bow i.k {
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 22px;
  translate: -50% 0;
  border-radius: 7px;
  z-index: 1;
}

.gift-modal.is-arrive .gift-box {
  animation: gift-drop 0.62s var(--ease-bounce) both;
}

.gift-modal.is-shake .gift-box {
  animation: gift-wiggle 0.52s ease-in-out infinite;
}

.gift-modal.is-shake .gift-bow i.l,
.gift-modal.is-shake .gift-bow i.r {
  animation: gift-bow 0.52s ease-in-out infinite;
}

.gift-box:not(:disabled):hover .gift-lid {
  translate: 0 -4px;
  transition: translate 0.15s;
}

.gift-modal.is-open .gift-lid {
  animation: gift-lid-off 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.gift-modal.is-open .gift-base {
  animation: gift-squash 0.4s ease-out;
}

.gift-modal.is-revealed .gift-lid {
  opacity: 0;
}

.gift-modal.is-revealed .gift-box {
  animation: gift-away 0.5s ease-in forwards;
  pointer-events: none;
}

/* Lo que sale */
.gift-prize {
  z-index: 2;
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.gift-prize:empty {
  display: none;
}

.gift-prize-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: gift-prize-in 0.75s var(--ease-bounce) both;
}

.gift-item-pv {
  min-width: 0;
  max-width: 100%;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  box-shadow:
    0 0 0 3px var(--rc),
    0 0 40px color-mix(in srgb, var(--rc) 60%, transparent);
}

.gift-item-pv .cx-preview {
  min-height: 0;
  padding: 14px 18px;
  background: none;
  border: 0;
  box-shadow: none;
}

.gift-item-pv .cx-preview .avatar.xl {
  width: 112px;
  height: 112px;
  font-size: 3.6rem;
}

.gift-item-pv .cx-pv-frame > .avatar {
  margin: 34px;
}

.gift-item-pv .cx-pv-icon > .avatar {
  margin-top: 14px;
}

.gift-item-pv .cx-preview > .pname-x {
  max-width: 100%;
  font-size: 1.7rem;
}

.gift-item-pv.is-unknown {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
}

.gift-emoji,
.gift-letter-pv {
  font-size: 4.4rem;
  line-height: 1;
}

.gift-letter-pv {
  animation: gift-bob 1.8s ease-in-out infinite;
}

.gift-coins-pv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  box-shadow:
    0 0 0 3px var(--yellow),
    0 0 36px color-mix(in srgb, var(--yellow) 60%, transparent);
}

.gift-modal .gift-coins-pv .coin-ico {
  width: 64px;
  height: 64px;
  animation: gift-coin 1.4s ease-in-out infinite;
}

.gift-coins-pv b {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.gift-coins-pv.is-side {
  padding: 10px 12px;
}

.gift-modal .gift-coins-pv.is-side .coin-ico {
  width: 44px;
  height: 44px;
}

.gift-coins-pv.is-side b {
  font-size: 1.3rem;
}

/* La carta y lo que trae (aparecen al abrirla) */
.gift-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 22px 0;
}

.gift-modal:not(.is-revealed) .gift-body {
  display: none;
}

.gift-modal.is-revealed .gift-body {
  animation: gift-up 0.5s var(--ease) 0.15s both;
}

.gift-letter {
  position: relative;
  padding: 14px 16px 16px;
  border-radius: var(--radius);
  text-align: left;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, color-mix(in srgb, var(--accent-2) 22%, transparent) 27px 28px) 0 12px,
    var(--surface-2);
}

.gift-letter-from {
  display: block;
  margin-bottom: 6px;
  font-family: 'Permanent Marker', var(--font);
  font-size: 1rem;
  color: var(--text-2);
}

.gift-msg {
  max-height: 32vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 28px;
  color: var(--text);
}

.gift-loot {
  display: grid;
  gap: 8px;
}

.gift-loot-row {
  --rc: var(--yellow);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-align: left;
  background: var(--surface-2);
  border-left: 5px solid var(--rc);
}

.gift-loot-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
}

.gift-modal .gift-loot-ico .coin-ico {
  width: 30px;
  height: 30px;
}

.gift-loot-ico.is-item {
  border-radius: 10px;
  color: #fff;
  background: var(--rc);
}

.gift-loot-ico.is-item svg {
  width: 20px;
  height: 20px;
}

.gift-loot-what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.gift-loot-what b {
  color: var(--text);
  overflow-wrap: anywhere;
}

.gift-loot-what small {
  font-size: 0.8rem;
  color: var(--text-3);
}

.gift-rarity {
  font-weight: 800;
  color: var(--rc);
}

.gift-owned,
.gift-new {
  flex: none;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.gift-owned {
  background: color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text-2);
}

.gift-new {
  background: var(--green);
  color: #0c2a1f;
}

.gift-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 22px 22px;
}

.gift-modal:not(.is-revealed) .gift-actions {
  display: none;
}

.gift-actions .btn {
  min-width: 140px;
  justify-content: center;
}

/* En un móvil (o una ventana baja) el mensaje y lo que trae empujan los botones fuera de la vista:
   se quedan pegados abajo mientras se desplaza el regalo. */
@media (max-width: 520px), (max-height: 820px) {
  .gift-modal.is-revealed .gift-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    border-top: 1px solid var(--border-strong);
    background: var(--surface-solid);
  }

  :root[data-style='brutal'] .gift-modal.is-revealed .gift-actions {
    border-top: 3px solid var(--px-line);
  }

  :root[data-style='retro'] .gift-modal.is-revealed .gift-actions {
    border-top: 4px solid var(--px-line);
  }
}

.gift-actions svg {
  width: 18px;
  height: 18px;
}

.gift-worn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
}

.gift-worn svg {
  width: 16px;
  height: 16px;
}

/* Legendario: el premio con un halo que late. */
.gift-modal.r-legendario.is-revealed .gift-item-pv {
  animation: gift-legend 1.6s ease-in-out 0.8s infinite alternate;
}

@keyframes gift-drop {
  0% {
    opacity: 0;
    transform: translateY(-150px) rotate(-8deg) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(6px) rotate(2deg) scale(1.03, 0.95);
  }
  100% {
    transform: none;
  }
}

@keyframes gift-wiggle {
  0%,
  100% {
    transform: rotate(0) translateY(0);
  }
  20% {
    transform: rotate(-7deg) translateY(-6px);
  }
  40% {
    transform: rotate(6deg) translateY(-2px);
  }
  60% {
    transform: rotate(-4deg) translateY(-7px);
  }
  80% {
    transform: rotate(3deg) translateY(0);
  }
}

@keyframes gift-bow {
  50% {
    scale: 1.08 0.92;
  }
}

@keyframes gift-lid-off {
  0% {
    transform: none;
  }
  35% {
    transform: translate(-6px, -46px) rotate(-14deg);
    opacity: 1;
  }
  100% {
    transform: translate(-90px, -150px) rotate(-62deg);
    opacity: 0;
  }
}

@keyframes gift-squash {
  40% {
    transform: scale(1.06, 0.9);
    transform-origin: 50% 100%;
  }
}

@keyframes gift-away {
  to {
    opacity: 0;
    transform: translateY(60px) scale(0.6);
  }
}

@keyframes gift-flash {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(14);
  }
}

@keyframes gift-spark {
  0% {
    opacity: 1;
    transform: rotate(calc(var(--i) * 36deg)) translateY(0) scale(0.4);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--i) * 36deg + 40deg)) translateY(-130px) scale(1.2);
  }
}

@keyframes gift-prize-in {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes gift-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes gift-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes gift-bob {
  50% {
    transform: translateY(-4px) rotate(-6deg);
  }
}

@keyframes gift-coin {
  50% {
    transform: translateY(-5px) rotate(8deg);
  }
}

@keyframes gift-legend {
  to {
    box-shadow:
      0 0 0 4px var(--rc),
      0 0 70px color-mix(in srgb, var(--rc) 85%, transparent);
  }
}

@media (max-width: 520px) {
  .gift-head {
    padding: 18px 16px 0;
  }

  .gift-count {
    position: static;
    margin-bottom: 2px;
  }

  .gift-stage {
    height: 210px;
  }

  .gift-box {
    scale: 0.9;
  }

  .gift-body {
    padding: 4px 14px 0;
  }

  .gift-actions {
    padding: 14px 14px 18px;
  }

  .gift-actions .btn {
    flex: 1 1 130px;
    min-width: 0;
  }

  .gift-item-pv .cx-preview .avatar.xl {
    width: 92px;
    height: 92px;
    font-size: 3rem;
  }

  .gift-item-pv .cx-pv-frame > .avatar {
    margin: 26px;
  }

  .gift-item-pv .cx-preview > .pname-x {
    font-size: 1.35rem;
  }

  .gift-modal .gift-coins-pv .coin-ico {
    width: 52px;
    height: 52px;
  }
}

/* ═════════════════════════════ Neo-brutalista ═════════════════════════════ */

:root[data-style='brutal'] .pp-hero,
:root[data-style='brutal'] .pp-card,
:root[data-style='brutal'] .fw-card {
  border: 3px solid var(--px-line);
  box-shadow: var(--shadow);
}

:root[data-style='brutal'] .pp-card,
:root[data-style='brutal'] .fw-card {
  box-shadow: var(--shadow-sm);
}

:root[data-style='brutal'] .pp-hero-band {
  border-bottom: 3px solid var(--px-line);
  background:
    radial-gradient(rgba(17, 17, 17, 0.22) 1.4px, transparent 2px) 0 0 / 16px 16px,
    var(--c);
}

:root[data-style='brutal'] .pp-hero-band span {
  border: 3px solid #111;
  box-shadow: 3px 3px 0 #111;
}

:root[data-style='brutal'] .pp-av .avatar.xl {
  border-width: 4px;
  box-shadow: 5px 5px 0 var(--px-drop);
}

:root[data-style='brutal'] .pp-name,
:root[data-style='brutal'] .pp-card h2,
:root[data-style='brutal'] .pp-state h1,
:root[data-style='brutal'] .gift-title,
:root[data-style='brutal'] .pp-tile-v,
:root[data-style='brutal'] .pp-rank-pos,
:root[data-style='brutal'] .pcard-stat b,
:root[data-style='brutal'] .gift-coins-pv b {
  font-family: var(--font-display);
  font-weight: 400;
}

:root[data-style='brutal'] .pp-name .pname-x,
:root[data-style='brutal'] .pcard-name .pname-x {
  font-family: var(--font-display);
  font-weight: 400;
}

:root[data-style='brutal'] .pp-name .pname-x.cx-has-font,
:root[data-style='brutal'] .pcard-name .pname-x.cx-has-font {
  font-family: inherit;
}

:root[data-style='brutal'] .pp-tag,
:root[data-style='brutal'] .pcard-you,
:root[data-style='brutal'] .pcard-follows,
:root[data-style='brutal'] .fl-you {
  border: 2px solid var(--px-line);
  border-radius: 6px;
  background: var(--yellow);
  color: #111;
  box-shadow: 2px 2px 0 var(--px-drop);
}

:root[data-style='brutal'] .pp-tag.is-follows,
:root[data-style='brutal'] .pcard-follows {
  background: var(--pink);
  rotate: -3deg;
}

:root[data-style='brutal'] .pp-tag.is-me,
:root[data-style='brutal'] .pcard-you {
  background: var(--green);
}

:root[data-style='brutal'] .pp-count {
  padding: 4px 10px;
  border: 2px solid var(--px-line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--px-drop);
  transition: transform 0.12s, box-shadow 0.12s;
}

:root[data-style='brutal'] .pp-count:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--px-drop);
}

:root[data-style='brutal'] .pp-count b {
  font-family: var(--font-display);
  font-weight: 400;
}

:root[data-style='brutal'] .pp-own-note {
  border: 2px dashed var(--px-line);
}

:root[data-style='brutal'] .pp-tile,
:root[data-style='brutal'] .pp-rank,
:root[data-style='brutal'] .pp-rec,
:root[data-style='brutal'] .pp-slot,
:root[data-style='brutal'] .fl-row,
:root[data-style='brutal'] .pcard-stat,
:root[data-style='brutal'] .gift-loot-row {
  border: 2px solid var(--px-line);
  border-radius: 10px;
}

:root[data-style='brutal'] .pp-tile.is-wins {
  background: color-mix(in srgb, var(--blue) 26%, var(--surface));
}

:root[data-style='brutal'] .pp-tile.is-coll {
  background: color-mix(in srgb, var(--purple) 26%, var(--surface));
}

:root[data-style='brutal'] .pp-bar {
  height: 14px;
  border: 2px solid var(--px-line);
  border-radius: 6px;
  background: var(--surface);
}

:root[data-style='brutal'] .pp-bar i {
  border-radius: 0;
  background: repeating-linear-gradient(-45deg, rgba(17, 17, 17, 0.18) 0 6px, transparent 6px 12px), var(--pink);
}

:root[data-style='brutal'] .pp-rank {
  box-shadow: 3px 3px 0 var(--px-drop);
}

:root[data-style='brutal'] .pp-rank:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--px-drop);
}

:root[data-style='brutal'] .pp-rank.m1 {
  background: var(--yellow);
  color: #111;
}

:root[data-style='brutal'] .pp-rank.m2 {
  background: #e3e6ee;
  color: #111;
}

:root[data-style='brutal'] .pp-rank.m3 {
  background: #f2b98a;
  color: #111;
}

:root[data-style='brutal'] .pp-rec-ico,
:root[data-style='brutal'] .fw-game {
  border: 2px solid #111;
}

:root[data-style='brutal'] .pp-rec-rank {
  border: 2px solid #111;
  border-radius: 6px;
}

:root[data-style='brutal'] .pp-logro {
  border: 2px solid var(--px-line);
  border-radius: 10px;
}

:root[data-style='brutal'] .pp-logro.is-on {
  background: color-mix(in srgb, var(--yellow) 22%, var(--surface));
  box-shadow: 3px 3px 0 var(--px-drop);
}

:root[data-style='brutal'] .pp-logro.is-off {
  border-style: dashed;
}

:root[data-style='brutal'] .pp-logro.is-on .pp-logro-ico {
  border: 2px solid #111;
  box-shadow: 2px 2px 0 #111;
}

:root[data-style='brutal'] .pp-logro-name {
  font-family: var(--font-display);
  font-weight: 400;
}

:root[data-style='brutal'] .pp-logro-prog .pp-bar {
  height: 10px;
}

:root[data-style='brutal'] .pp-slot:not(.is-empty) {
  border-color: var(--px-line);
  box-shadow: inset 0 -6px 0 var(--rc);
}

:root[data-style='brutal'] .pp-slot-r {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0;
}

:root[data-style='brutal'] .pp-state {
  border: 3px dashed var(--px-line);
  background: var(--surface);
}

:root[data-style='brutal'] .follow-btn.is-following {
  --btn-bg: var(--surface-2);
}

:root[data-style='brutal'] .follow-btn.is-following:not(.is-fresh, .is-busy):hover {
  --btn-fg: #111;
  color: #111;
}

:root[data-style='brutal'] .pcard-band {
  border-bottom: 3px solid var(--px-line);
  background:
    radial-gradient(rgba(17, 17, 17, 0.22) 1.4px, transparent 2px) 0 0 / 14px 14px,
    var(--c);
}

:root[data-style='brutal'] .pcard-modal .modal-head .btn {
  background: var(--surface);
  border-color: var(--px-line);
  box-shadow: 2px 2px 0 var(--px-drop);
}

:root[data-style='brutal'] .fw-card {
  transition: transform 0.12s, box-shadow 0.12s;
}

:root[data-style='brutal'] .fw-card:has(.fw-link:hover) {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--px-drop);
}

:root[data-style='brutal'] .fw-card.is-joinable {
  background: color-mix(in srgb, var(--green) 24%, var(--surface));
}

:root[data-style='brutal'] .fw-dot {
  border: 2.5px solid #111;
}

:root[data-style='brutal'] .fw-empty {
  border: 3px dashed var(--px-line);
  background: var(--surface);
}

:root[data-style='brutal'] .fw .section-title svg {
  color: #111;
  fill: var(--pink);
}

:root[data-style='brutal'][data-theme='dark'] .fw .section-title svg {
  color: var(--px-line);
}

:root[data-style='brutal'] .toast.follow {
  background: var(--yellow);
  color: #111;
}

:root[data-style='brutal'] .toast.follow .follow-toast-go {
  color: #111;
}

/* Regalo (brutal) */
:root[data-style='brutal'] .gift-modal {
  border: 3px solid var(--px-line);
  box-shadow: 12px 12px 0 var(--px-drop);
  background:
    radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.6px) 0 0 / 14px 14px,
    var(--surface);
}

:root[data-style='brutal'][data-theme='dark'] .gift-modal {
  --gb-line: #111;
}

:root[data-style='brutal'] .gift-count {
  border: 2px solid var(--px-line);
  border-radius: 6px;
  background: var(--yellow);
  color: #111;
  rotate: -4deg;
}

:root[data-style='brutal'] .gift-title {
  text-shadow: 3px 3px 0 var(--pink);
}

:root[data-style='brutal'] .gift-stage {
  margin-inline: 22px;
  border: 3px solid var(--px-line);
  border-radius: 16px;
  background:
    radial-gradient(color-mix(in srgb, #111 16%, transparent) 1.2px, transparent 1.8px) 0 0 / 12px 12px,
    color-mix(in srgb, var(--yellow) 55%, var(--surface));
  box-shadow: inset 0 -8px 0 color-mix(in srgb, #111 10%, transparent);
}

:root[data-style='brutal'][data-theme='dark'] .gift-stage {
  background:
    radial-gradient(rgba(255, 255, 255, 0.1) 1.2px, transparent 1.8px) 0 0 / 12px 12px,
    color-mix(in srgb, var(--purple) 30%, var(--surface));
}

:root[data-style='brutal'] .gift-rays {
  background: repeating-conic-gradient(color-mix(in srgb, #fff 70%, transparent) 0 9deg, transparent 9deg 20deg);
  opacity: 0.5;
}

:root[data-style='brutal'] .gift-base,
:root[data-style='brutal'] .gift-lid {
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.9);
}

:root[data-style='brutal'] .gift-shadow {
  display: none;
}

:root[data-style='brutal'] .gift-item-pv,
:root[data-style='brutal'] .gift-coins-pv {
  border: 3px solid #111;
  border-radius: 14px;
  background: var(--surface);
  box-shadow:
    6px 6px 0 #111,
    0 0 0 6px var(--rc);
}

:root[data-style='brutal'] .gift-coins-pv {
  box-shadow:
    6px 6px 0 #111,
    0 0 0 6px var(--yellow);
}

:root[data-style='brutal'] .gift-letter {
  border: 3px solid var(--px-line);
  border-radius: 12px;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(76, 201, 240, 0.35) 27px 28px) 0 12px,
    #fffdf6;
  color: #111;
  box-shadow: 5px 5px 0 var(--px-drop);
  rotate: -0.6deg;
}

:root[data-style='brutal'] .gift-letter::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 70px;
  height: 22px;
  translate: -50% 0;
  rotate: 3deg;
  background: color-mix(in srgb, var(--pink) 70%, transparent);
  border: 2px solid rgba(17, 17, 17, 0.5);
}

:root[data-style='brutal'] .gift-letter .gift-msg,
:root[data-style='brutal'] .gift-letter .gift-letter-from {
  color: #111;
}

:root[data-style='brutal'] .gift-loot-row {
  background: var(--surface);
  border-left-width: 8px;
  border-left-color: var(--rc);
}

:root[data-style='brutal'] .gift-loot-ico.is-item {
  border: 2px solid #111;
}

:root[data-style='brutal'] .gift-owned,
:root[data-style='brutal'] .gift-new {
  border: 2px solid #111;
  border-radius: 6px;
}

:root[data-style='brutal'] .gift-owned {
  background: var(--surface-2);
  color: var(--text);
}

@media (max-width: 520px) {
  :root[data-style='brutal'] .gift-stage {
    margin-inline: 14px;
  }
}

/* ═════════════════════════════ Retro 8-bit ═════════════════════════════ */

:root[data-style='retro'] .pp-hero,
:root[data-style='retro'] .pp-card,
:root[data-style='retro'] .fw-card {
  border-radius: 0;
  border: 4px solid var(--px-line);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--px-drop);
}

:root[data-style='retro'] .pp-hero-band,
:root[data-style='retro'] .pcard-band {
  border-bottom: 4px solid var(--px-line);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16) 50%, transparent 50%) 0 0 / 16px 16px,
    linear-gradient(rgba(0, 0, 0, 0.16) 50%, transparent 50%) 0 0 / 16px 16px,
    var(--c);
  image-rendering: pixelated;
}

:root[data-style='retro'] .pp-hero-band span {
  border-radius: 0;
  rotate: 0deg;
  box-shadow: 4px 4px 0 var(--px-line);
}

:root[data-style='retro'] .pp-name,
:root[data-style='retro'] .pp-state h1,
:root[data-style='retro'] .gift-title {
  font-family: var(--font-arcade);
  font-weight: 400;
  line-height: 1.4;
}

:root[data-style='retro'] .pp-name {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
}

:root[data-style='retro'] .gift-title {
  font-size: clamp(0.95rem, 4vw, 1.25rem);
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--px-line);
}

:root[data-style='retro'][data-theme='light'] .gift-title {
  color: var(--purple);
  text-shadow: 2px 2px 0 var(--yellow);
}

:root[data-style='retro'] .pp-card h2,
:root[data-style='retro'] .pp-tile-k,
:root[data-style='retro'] .pp-slot-k,
:root[data-style='retro'] .pp-tag,
:root[data-style='retro'] .pcard-you,
:root[data-style='retro'] .pcard-follows,
:root[data-style='retro'] .fl-you,
:root[data-style='retro'] .gift-count,
:root[data-style='retro'] .gift-owned,
:root[data-style='retro'] .gift-new,
:root[data-style='retro'] .pp-rec-rank {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}

:root[data-style='retro'] .pp-card h2 {
  font-size: 0.95rem;
}

:root[data-style='retro'] .pp-tile-v,
:root[data-style='retro'] .pp-rank-pos,
:root[data-style='retro'] .pcard-stat b,
:root[data-style='retro'] .pp-count b,
:root[data-style='retro'] .gift-coins-pv b {
  font-family: var(--font-arcade);
  font-weight: 400;
}

:root[data-style='retro'] .pp-tile-v {
  font-size: 1.35rem;
  line-height: 1.4;
}

:root[data-style='retro'] .pp-count b {
  font-size: 0.85rem;
}

:root[data-style='retro'] .pp-av .avatar.xl {
  box-shadow: 0 0 0 5px var(--px-line), 6px 6px 0 5px var(--px-drop);
}

:root[data-style='retro'] .pp-tag,
:root[data-style='retro'] .pcard-you,
:root[data-style='retro'] .pcard-follows,
:root[data-style='retro'] .fl-you,
:root[data-style='retro'] .gift-count,
:root[data-style='retro'] .gift-owned,
:root[data-style='retro'] .gift-new,
:root[data-style='retro'] .pp-rec-rank {
  border-radius: 0;
  font-size: 0.66rem;
  box-shadow: 0 0 0 3px var(--px-line);
}

:root[data-style='retro'] .pp-tag,
:root[data-style='retro'] .pcard-you,
:root[data-style='retro'] .fl-you {
  background: var(--green);
  color: #0c2a1f;
}

:root[data-style='retro'] .pp-tag.is-follows,
:root[data-style='retro'] .pcard-follows {
  background: var(--pink);
  color: #fff;
}

:root[data-style='retro'] .pp-own-note,
:root[data-style='retro'] .pp-tile,
:root[data-style='retro'] .pp-rank,
:root[data-style='retro'] .pp-rec,
:root[data-style='retro'] .pp-slot,
:root[data-style='retro'] .fl-row,
:root[data-style='retro'] .pcard-stat,
:root[data-style='retro'] .gift-loot-row,
:root[data-style='retro'] .gift-letter {
  border-radius: 0;
  box-shadow: inset 0 0 0 3px var(--px-line);
}

:root[data-style='retro'] .gift-loot-row {
  border-left: 0;
  box-shadow: inset 6px 0 0 var(--rc), inset 0 0 0 3px var(--px-line);
  padding-left: 16px;
}

:root[data-style='retro'] .pp-bar {
  height: 14px;
  border-radius: 0;
  box-shadow: inset 0 0 0 3px var(--px-line);
}

:root[data-style='retro'] .pp-bar i {
  border-radius: 0;
  background: repeating-linear-gradient(90deg, var(--green) 0 8px, color-mix(in srgb, var(--green) 70%, #000) 8px 10px);
}

:root[data-style='retro'] .pp-rank.m1 {
  background: var(--yellow);
  color: #2a1a00;
}

:root[data-style='retro'] .pp-rec-ico,
:root[data-style='retro'] .fw-game,
:root[data-style='retro'] .pp-rank-ico {
  border-radius: 0;
}

:root[data-style='retro'] .pp-slot:not(.is-empty) {
  box-shadow: inset 0 0 0 3px var(--px-line), inset 0 -8px 0 var(--rc);
}

:root[data-style='retro'] .pp-slot .cx-preview,
:root[data-style='retro'] .pp-slot-none {
  border-radius: 0;
}

:root[data-style='retro'] .pp-state,
:root[data-style='retro'] .fw-empty {
  border-radius: 0;
  border: 4px dashed var(--border-strong);
}

:root[data-style='retro'] .pp-count {
  font-family: var(--font);
}

:root[data-style='retro'] .fw-dot {
  border-radius: 0;
  border: 3px solid var(--px-line);
}

:root[data-style='retro'] .fw-card.is-joinable {
  background: color-mix(in srgb, var(--green) 18%, var(--surface));
}

:root[data-style='retro'] .fw-card.is-joinable .fw-dot {
  animation: fw-blink 0.8s steps(2) infinite;
}

@keyframes fw-blink {
  50% {
    background: transparent;
  }
}

:root[data-style='retro'] .pp-skel-av,
:root[data-style='retro'] .pp-skel-line,
:root[data-style='retro'] .fl-skel-av,
:root[data-style='retro'] .fl-skel-line {
  border-radius: 0;
}

:root[data-style='retro'] .toast.follow {
  background: var(--green);
  color: #0c2a1f;
}

:root[data-style='retro'] .toast.follow .follow-toast-go {
  color: #0c2a1f;
}

/* Regalo (retro): caja de píxeles, colores planos y movimientos a saltos. */
:root[data-style='retro'] .gift-modal {
  --gb-line: #0b0620;
  --gb-box: #ff4d8d;
}

:root[data-style='retro'] .gift-stage {
  margin-inline: 22px;
  box-shadow: inset 0 0 0 4px var(--px-line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 50%, transparent 50%) 0 0 / 16px 16px,
    linear-gradient(rgba(255, 255, 255, 0.05) 50%, transparent 50%) 0 0 / 16px 16px,
    var(--bg-2);
}

:root[data-style='retro'] .gift-rays {
  border-radius: 0;
  background: repeating-conic-gradient(color-mix(in srgb, var(--yellow) 60%, transparent) 0 10deg, transparent 10deg 22deg);
  animation-timing-function: steps(36);
}

:root[data-style='retro'] .gift-base,
:root[data-style='retro'] .gift-lid,
:root[data-style='retro'] .gift-bow i {
  border-radius: 0;
  border-width: 4px;
}

:root[data-style='retro'] .gift-base {
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.25), inset 0 6px 0 rgba(255, 255, 255, 0.2);
}

:root[data-style='retro'] .gift-lid {
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.2), inset 0 6px 0 rgba(255, 255, 255, 0.3);
}

:root[data-style='retro'] .gift-bow i.l,
:root[data-style='retro'] .gift-bow i.r {
  rotate: 0deg;
  height: 26px;
  bottom: 6px;
}

:root[data-style='retro'] .gift-shadow {
  border-radius: 0;
  filter: none;
  background: rgba(0, 0, 0, 0.35);
}

:root[data-style='retro'] .gift-modal.is-shake .gift-box {
  animation-timing-function: steps(4);
}

:root[data-style='retro'] .gift-modal.is-open .gift-lid {
  animation-timing-function: steps(6);
}

:root[data-style='retro'] .gift-item-pv,
:root[data-style='retro'] .gift-coins-pv {
  border-radius: 0;
  background: var(--surface);
  box-shadow:
    0 0 0 4px var(--px-line),
    0 0 0 8px var(--rc),
    8px 8px 0 8px var(--px-drop);
}

:root[data-style='retro'] .gift-coins-pv {
  box-shadow:
    0 0 0 4px var(--px-line),
    0 0 0 8px var(--yellow),
    8px 8px 0 8px var(--px-drop);
}

:root[data-style='retro'] .gift-letter {
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(126, 224, 255, 0.18) 27px 28px) 0 12px,
    var(--surface-2);
}

:root[data-style='retro'] .gift-letter-from {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-2);
}

:root[data-style='retro'][data-theme='light'] .gift-letter-from {
  color: var(--purple);
}

:root[data-style='retro'] .gift-msg {
  font-family: var(--font);
  font-size: 1.12rem;
}

:root[data-style='retro'] .gift-loot-ico.is-item {
  border-radius: 0;
}

:root[data-style='retro'] .gift-sparks i {
  clip-path: polygon(33% 0, 66% 0, 66% 33%, 100% 33%, 100% 66%, 66% 66%, 66% 100%, 33% 100%, 33% 66%, 0 66%, 0 33%, 33% 33%);
}

@media (max-width: 520px) {
  :root[data-style='retro'] .gift-stage {
    margin-inline: 14px;
  }
}

/* ───────────────────────────── Menos movimiento ───────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .gift-title-ico,
  .gift-rays,
  .gift-letter-pv,
  .gift-coins-pv .coin-ico,
  .gift-prize-in,
  .gift-modal .gift-box,
  .gift-modal .gift-lid,
  .gift-modal .gift-base,
  .gift-modal .gift-bow i,
  .gift-modal .gift-body,
  .gift-modal .gift-item-pv,
  .gift-sparks i,
  .gift-burst,
  .fw-card,
  .fw-dot,
  .pp-hero.is-new,
  .pp-grid.is-new > *,
  .pp-skel-av,
  .pp-skel-line,
  .fl-skel-av,
  .fl-skel-line,
  .pcard-stat.is-skel b {
    animation: none !important;
  }

  .gift-modal.is-revealed .gift-box {
    display: none;
  }

  .player-chip.plink:hover,
  .pp-rank:hover,
  .rank-pod-who:has(.rank-plink:hover) .rank-pod-av {
    transform: none;
  }
}

/* ───────── Silenciar y denunciar (public/js/moderation.js) ───────── */
.pcard-mod {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding-top: 10px;
  border-top: 2px dashed color-mix(in srgb, var(--text) 25%, transparent);
}
.pcard-mod .btn {
  flex: 1 1 130px;
  justify-content: center;
}
.muted-chip {
  cursor: pointer;
  font: inherit;
}
.muted-chip svg {
  width: 14px;
  height: 14px;
}
.report-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-form > p {
  margin: 0;
}
.report-label {
  font-weight: 700;
}
.report-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.report-reason {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
}
.report-reason:has(input:checked) {
  background: var(--accent-soft);
}
.report-text {
  resize: vertical;
  min-height: 70px;
}
.report-count {
  align-self: flex-end;
  margin-top: -4px;
}
.report-mute {
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-error {
  margin: 0;
  color: var(--red);
  font-weight: 700;
}
.report-error:empty {
  display: none;
}
.muted-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.muted-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.muted-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
:root[data-style='brutal'] .report-reason:has(input:checked) {
  box-shadow: 3px 3px 0 var(--border);
}
:root[data-style='brutal'] .report-error {
  color: #c4122f;
}
