/* Perfil público + feed de actividad */
.pp,
.social-feed {
  --pp-bg: #0a0e14;
  --pp-panel: #12161e;
  --pp-surface: #1a2030;
  --pp-accent: #7dd3fc;
  --pp-text: #e8eef5;
  --pp-muted: #8b97a8;
  --pp-line: rgba(125, 211, 252, 0.1);
  --pp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Shell / atmósfera —— */
.pp {
  position: relative;
  padding: 0 0 3.5rem;
  overflow: clip;
}

.pp-hero {
  position: absolute;
  inset: 0 0 auto;
  height: min(340px, 48vw);
  pointer-events: none;
  z-index: 0;
}

.pp-hero__glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 70% at 18% 40%, rgba(125, 211, 252, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 55% at 78% 20%, rgba(56, 120, 180, 0.1), transparent 65%);
  filter: blur(2px);
  animation: pp-glow 10s ease-in-out infinite alternate;
}

.pp-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 92%);
}

.pp-shell {
  position: relative;
  z-index: 1;
  padding-top: 1.75rem;
}

/* —— Header —— */
.pp-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.3rem 1.15rem;
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(26, 32, 48, 0.72), rgba(18, 22, 30, 0.92));
  border: 1px solid var(--pp-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(10px);
  animation: pp-rise 0.55s var(--pp-ease) 0.05s forwards;
}

.pp-head__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 1rem 1.25rem;
  align-items: stretch;
}

.pp-head__identity {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  min-width: 0;
}

.pp-avatar {
  position: relative;
  flex-shrink: 0;
  width: clamp(84px, 16vw, 112px);
  height: clamp(84px, 16vw, 112px);
}

.pp-avatar .user-avatar-wrap--xl,
.pp-avatar .user-avatar--xl {
  width: 100%;
  height: 100%;
}

.pp-avatar .user-avatar--xl {
  border-width: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.pp-avatar__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(100, 116, 139, 0.45);
  pointer-events: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pp-avatar.is-online .pp-avatar__ring,
.pp-avatar.is-in_queue .pp-avatar__ring {
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}

.pp-avatar.is-in_game .pp-avatar__ring {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.08);
}

.pp-avatar.is-portal .pp-avatar__ring,
.pp-avatar.is-recent .pp-avatar__ring {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.08);
}

.pp-head__copy {
  min-width: 0;
  flex: 1;
  padding-top: 0.15rem;
}

.pp-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pp-accent);
  opacity: 0.85;
}

.pp-name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pp-text);
  line-height: 1.1;
  word-break: break-word;
}

.pp-meta {
  margin: 0 0 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  color: var(--pp-muted);
  font-size: 0.86rem;
}

.pp-dot {
  opacity: 0.45;
}

.pp-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pp-presence__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 0 transparent;
}

.pp-presence.is-online .pp-presence__dot,
.pp-presence.is-in_queue .pp-presence__dot {
  background: #4ade80;
  animation: pp-pulse 2s ease-out infinite;
}

.pp-presence.is-in_game .pp-presence__dot {
  background: #fbbf24;
}

.pp-presence.is-portal .pp-presence__dot,
.pp-presence.is-recent .pp-presence__dot {
  background: var(--pp-accent);
}

.pp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pp-actions__msg,
.pp-actions .pd-author__friend-msg {
  width: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--pp-muted);
}

.pp-actions__msg.is-error,
.pp-actions .pd-author__friend-msg.is-error {
  color: #fca5a5;
}

.pp-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.pp-pill--ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(134, 239, 172, 0.22);
}

/* Stats bar */
.pp-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--pp-line);
  background: rgba(10, 14, 20, 0.45);
}

.pp-stat {
  padding: 0.65rem 0.55rem;
  text-align: center;
  border-right: 1px solid var(--pp-line);
}

.pp-stat:last-child {
  border-right: 0;
}

.pp-stat dt {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-muted);
}

.pp-stat dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pp-text);
  font-variant-numeric: tabular-nums;
}

.pp-stat__sep {
  margin: 0 0.15rem;
  color: var(--pp-muted);
  font-weight: 500;
}

.pp-stat .is-win { color: #86efac; }
.pp-stat .is-loss { color: #fca5a5; }

/* —— Gráfico liviano —— */
.pp-chart {
  --wr: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--pp-line);
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.08), transparent 50%),
    rgba(10, 14, 20, 0.55);
  min-height: 100%;
  opacity: 0;
  transform: translateY(8px);
  animation: pp-rise 0.5s var(--pp-ease) 0.12s forwards;
}

.pp-chart__ring {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  flex-shrink: 0;
}

.pp-chart__gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pp-chart__track,
.pp-chart__fill {
  fill: none;
  stroke-width: 2.6;
}

.pp-chart__track {
  stroke: rgba(148, 163, 184, 0.16);
}

.pp-chart__fill {
  stroke: #7dd3fc;
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 97.4;
  animation: pp-ring 0.9s var(--pp-ease) 0.25s forwards;
}

.pp-chart__ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-chart__ring-label strong {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--pp-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pp-chart__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pp-chart__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.pp-chart__eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pp-accent);
}

.pp-chart__sub {
  font-size: 0.74rem;
  color: var(--pp-muted);
}

.pp-chart__bar {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.12);
}

.pp-chart__bar-win,
.pp-chart__bar-loss {
  display: block;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  animation: pp-bar 0.7s var(--pp-ease) forwards;
}

.pp-chart__bar-win {
  background: #4ade80;
  animation-delay: 0.28s;
}

.pp-chart__bar-loss {
  background: #f87171;
  animation-delay: 0.38s;
}

.pp-chart__bar-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(148, 163, 184, 0.1);
}

.pp-chart__legend {
  display: flex;
  gap: 0.85rem;
}

.pp-chart__leg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--pp-muted);
  font-variant-numeric: tabular-nums;
}

.pp-chart__leg i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.pp-chart__leg.is-win { color: #86efac; }
.pp-chart__leg.is-win i { background: #4ade80; }
.pp-chart__leg.is-loss { color: #fca5a5; }
.pp-chart__leg.is-loss i { background: #f87171; }

.pp-chart__spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-top: 0.1rem;
}

.pp-chart__tick {
  flex: 1;
  max-width: 10px;
  min-width: 4px;
  height: 100%;
  border-radius: 2px;
  opacity: 0;
  transform: scaleY(0.35);
  transform-origin: bottom center;
  animation: pp-tick 0.35s var(--pp-ease) forwards;
  animation-delay: calc(0.35s + var(--j, 0) * 28ms);
}

.pp-chart__tick.is-win {
  background: linear-gradient(180deg, #86efac, #4ade80);
  height: 100%;
}

.pp-chart__tick.is-loss {
  background: linear-gradient(180deg, #fca5a5, #f87171);
  height: 55%;
}

@keyframes pp-ring {
  to {
    stroke-dashoffset: calc(97.4 - (97.4 * var(--wr) / 100));
  }
}

@keyframes pp-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pp-tick {
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* —— Content grid —— */
.pp-grid {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  grid-template-areas:
    "achievements achievements"
    "trade binder"
    "matches binder"
    "decks decks";
  gap: 0.85rem;
  align-items: start;
}

.pp-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 14px;
  background: var(--pp-panel);
  border: 1px solid var(--pp-line);
  opacity: 0;
  transform: translateY(12px);
  animation: pp-rise 0.55s var(--pp-ease) forwards;
}

.pp-panel--achievements { grid-area: achievements; height: auto; }
.pp-panel--trade {
  grid-area: trade;
  height: auto;
  padding: 0.7rem 0.75rem 0.8rem;
  border-radius: 12px;
  background: rgba(18, 22, 30, 0.92);
}
.pp-panel--decks { grid-area: decks; height: auto; }
.pp-panel--binder { grid-area: binder; min-height: 0; }
.pp-panel--matches { grid-area: matches; height: auto; }

.pp-grid .pp-panel--achievements { animation-delay: 0.06s; }
.pp-grid .pp-panel--trade { animation-delay: 0.1s; }
.pp-grid .pp-panel--binder { animation-delay: 0.12s; }
.pp-grid .pp-panel--matches { animation-delay: 0.16s; }
.pp-grid .pp-panel--decks { animation-delay: 0.22s; }

/* —— Logros coleccionista —— */
.pp-ach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.55rem;
}

.pp-ach {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 14, 20, 0.4);
  opacity: 0;
  transform: translateY(8px);
  animation: pp-rise 0.45s var(--pp-ease) forwards;
  animation-delay: calc(0.04s * var(--i, 0));
}

.pp-ach--unlocked {
  border-color: rgba(125, 211, 252, 0.22);
  background: rgba(125, 211, 252, 0.06);
}

.pp-ach--locked {
  opacity: 0.72;
}

.pp-ach__fan {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 4.25rem;
}

.pp-ach__fan img {
  width: 48px;
  height: 66px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  margin-left: -16px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.pp-ach__fan img:first-child {
  margin-left: 0;
  z-index: 1;
}

.pp-ach__fan img:last-child {
  z-index: 2;
  transform: rotate(6deg);
}

.pp-ach__fan img:first-child:last-child {
  transform: none;
}

.pp-ach__badge {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: rgba(125, 211, 252, 0.12);
  color: #7dd3fc;
  font-size: 0.95rem;
}

.pp-ach__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pp-ach__name {
  font-size: 0.86rem;
  color: #e8eef5;
}

.pp-ach__desc {
  font-size: 0.72rem;
  color: #8b97a8;
  line-height: 1.35;
}

.pp-ach__meta {
  font-size: 0.7rem;
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
}

.pp-ach__bar {
  margin-top: 0.25rem;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pp-ach__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #7dd3fc);
}

.pp-panel__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.pp-binder-expand {
  appearance: none;
  display: inline-grid;
  place-items: center;
  margin: 0;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.08);
  color: #7dd3fc;
  cursor: pointer;
}

.pp-binder-expand:hover {
  background: rgba(125, 211, 252, 0.16);
  border-color: rgba(125, 211, 252, 0.45);
  color: #b8e7fc;
}

.pp-binder-expand svg {
  display: block;
}

.pp-binder-lb {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pp-binder-lb[hidden] {
  display: none !important;
}

.pp-binder-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.82);
  cursor: pointer;
}

.pp-binder-lb__dialog {
  position: relative;
  z-index: 1;
  width: min(1104px, 100%);
  height: min(92vh, 1032px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: #0a0e14;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.pp-binder-lb__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.8);
  color: #8b97a8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.pp-binder-lb__close:hover {
  color: #fff;
  border-color: rgba(125, 211, 252, 0.45);
}

.pp-binder-lb__host {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.pp-binder-lb__host .bd-workspace {
  height: 100%;
  max-height: 100%;
  background:
    radial-gradient(ellipse 70% 50% at 35% 45%, rgba(125, 211, 252, 0.05), transparent 60%),
    #0a0e14;
}

.pp-binder-lb__host .bd-workspace--readonly .bd-binder {
  width: min(92%, 744px);
  max-height: calc(100% - 3rem);
}

.pp-binder-lb__host .bd-stage {
  padding: 1rem 1.1rem 1rem;
}

body.is-pp-binder-lb-open {
  overflow: hidden;
}

/* Carta full por encima del lightbox de carpeta */
body.is-pp-binder-lb-open #cardLightboxOverlay {
  z-index: 2600;
}

/* —— Intercambio (compacto, columna izquierda) —— */
.pp-trade__head {
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
}

.pp-trade__title-wrap {
  min-width: 0;
  flex: 1;
}

.pp-trade__title-wrap h2 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.pp-trade__hint {
  margin: 0.15rem 0 0;
  font-size: 0.65rem;
  color: var(--pp-muted, #8b97a8);
  line-height: 1.3;
}

.pp-trade__board {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pp-trade__lane {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.4rem 0.4rem 0.45rem;
  border-radius: 9px;
  background: rgba(10, 14, 20, 0.45);
}

.pp-trade__lane[data-lane='want'] {
  box-shadow: inset 3px 0 0 rgba(125, 211, 252, 0.35);
}

.pp-trade__lane[data-lane='offer'] {
  box-shadow: inset 3px 0 0 rgba(134, 239, 172, 0.28);
}

.pp-trade__swap-mark {
  align-self: center;
  font-size: 0.78rem;
  line-height: 1;
  color: rgba(125, 211, 252, 0.55);
  user-select: none;
}

.pp-trade__label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b97a8;
}

.pp-trade__lane[data-lane='want'] .pp-trade__label {
  color: #7dd3fc;
}

.pp-trade__lane[data-lane='offer'] .pp-trade__label {
  color: #86efac;
}

.pp-trade__slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}

.pp-trade__slot {
  position: relative;
  aspect-ratio: 5 / 7;
  border-radius: 6px;
  border: 1px dashed rgba(125, 211, 252, 0.18);
  background: rgba(10, 14, 20, 0.65);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  color: #5c6778;
  font-size: 0.58rem;
  cursor: default;
}

.pp-trade__slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pp-trade__slot.is-empty {
  color: #4a5565;
}

.pp-trade__slot.is-owned {
  border-style: solid;
  border-color: rgba(110, 231, 183, 0.45);
}

.pp-trade__slot.is-missing {
  border-style: solid;
  border-color: rgba(252, 165, 165, 0.28);
}

.pp-trade__own-badge {
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0.15rem;
  padding: 0.08rem 0.12rem;
  border-radius: 3px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.15;
  pointer-events: none;
  background: rgba(10, 14, 20, 0.9);
  color: #fca5a5;
}

.pp-trade__own-badge.is-owned {
  color: #6ee7b7;
}

.pp-trade.is-editing .pp-trade__slot {
  cursor: pointer;
}

.pp-trade.is-editing .pp-trade__slot:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(125, 211, 252, 0.06);
}

.pp-trade__slot-clear {
  position: absolute;
  top: 0.12rem;
  right: 0.12rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 14, 20, 0.85);
  color: #e8eef5;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  place-items: center;
  padding: 0;
}

.pp-trade.is-editing .pp-trade__slot:not(.is-empty) .pp-trade__slot-clear {
  display: grid;
}

.pp-trade__edit-btn,
.pp-trade__save-btn,
.pp-trade__cancel-btn,
.pp-trade__request-btn {
  appearance: none;
  margin: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 7px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.08);
  color: #7dd3fc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 1.7rem;
}

.pp-trade__save-btn {
  background: rgba(125, 211, 252, 0.18);
}

.pp-trade__cancel-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #8b97a8;
}

.pp-trade__request-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pp-trade__request-btn.is-wait {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #c8d0db;
  font-variant-numeric: tabular-nums;
}

.pp-trade__request-btn.is-pending {
  border-color: rgba(252, 211, 77, 0.28);
  background: rgba(252, 211, 77, 0.08);
  color: #fde68a;
}

.pp-trade__request-btn:not(:disabled):hover,
.pp-trade__edit-btn:hover,
.pp-trade__save-btn:hover {
  background: rgba(125, 211, 252, 0.2);
}

.pp-trade__inbox {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--pp-line);
}

.pp-trade__inbox-title {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b97a8;
}

.pp-trade__inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pp-trade__inbox-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem;
  border-radius: 9px;
  background: rgba(10, 14, 20, 0.5);
  border: 1px solid rgba(125, 211, 252, 0.08);
}

.pp-trade__inbox-body {
  min-width: 0;
}

.pp-trade__inbox-head {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  color: #c5ced9;
}

.pp-trade__inbox-head strong {
  color: #e8eef5;
}

.pp-trade__inbox-swap {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.pp-trade__inbox-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.pp-trade__inbox-card img {
  width: 28px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0e14;
}

.pp-trade__inbox-card span {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b97a8;
}

.pp-trade__inbox-arrow {
  color: #7dd3fc;
  font-size: 0.75rem;
  opacity: 0.85;
  padding-bottom: 0.65rem;
}

.pp-trade__inbox-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.pp-trade__inbox-actions button {
  appearance: none;
  border-radius: 6px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: rgba(125, 211, 252, 0.1);
  color: #7dd3fc;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.22rem 0.45rem;
  cursor: pointer;
  min-height: 1.55rem;
}

.pp-trade__inbox-actions button[data-decline] {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #8b97a8;
}

/* Modales de edición / solicitud */
.pp-trade-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pp-trade-modal[hidden] {
  display: none !important;
}

.pp-trade-modal__back {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.78);
  cursor: pointer;
}

.pp-trade-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: #12161e;
  padding: 1.05rem 1.1rem 1.1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.pp-trade-modal__dialog--request {
  width: min(520px, 100%);
  max-height: min(92vh, 720px);
}

.pp-trade-modal__dialog--detail {
  width: min(420px, 100%);
}

.pp-trade-modal__dialog--search {
  width: min(480px, 100%);
  max-height: min(90vh, 720px);
  overflow: visible;
}

.pp-trade-modal__dialog h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  color: #e8eef5;
  flex: 0 0 auto;
}

.pp-trade-modal__lead {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: #8b97a8;
  line-height: 1.45;
  flex: 0 0 auto;
}

.pp-trade-modal__lead strong {
  color: #e8eef5;
  font-weight: 600;
}

.pp-trade-modal__search {
  position: relative;
  margin-bottom: 0.35rem;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pp-trade-modal__search input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: #0a0e14;
  color: #e8eef5;
  font: inherit;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.pp-trade-modal__search input:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1);
}

.pp-trade-modal__menu {
  position: static;
  margin-top: 0.5rem;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(52vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0e14;
  box-shadow: none;
}

.pp-trade-modal__menu[hidden] {
  display: none !important;
}

.pp-trade-modal__menu button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: #e8eef5;
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
}

.pp-trade-modal__menu button:last-child {
  border-bottom: 0;
}

.pp-trade-modal__menu button:hover,
.pp-trade-modal__menu button.is-active {
  background: rgba(125, 211, 252, 0.1);
}

.pp-trade-modal__menu img {
  width: 34px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
  background: #1a2030;
}

.pp-trade-modal__menu-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.pp-trade-modal__menu-name {
  color: #e8eef5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-trade-modal__menu-ed {
  font-size: 0.72rem;
  color: #8b97a8;
}

.pp-trade-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 0.45rem;
  max-height: 220px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.pp-trade-modal__grid button,
.pp-trade-modal__card {
  appearance: none;
  position: relative;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.pp-trade-modal__grid button:hover,
.pp-trade-modal__grid button.is-selected,
.pp-trade-modal__card:hover,
.pp-trade-modal__card.is-selected {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.25);
}

.pp-trade-modal__card.is-owned {
  border-color: rgba(110, 231, 183, 0.4);
}

.pp-trade-modal__card.is-missing {
  opacity: 0.45;
  cursor: not-allowed;
}

.pp-trade-modal__card.is-missing:hover {
  border-color: rgba(252, 165, 165, 0.35);
  box-shadow: none;
}

.pp-trade-modal__card-tag {
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  bottom: 0.2rem;
  padding: 0.1rem 0.15rem;
  border-radius: 3px;
  font-size: 0.55rem;
  font-weight: 700;
  text-align: center;
  background: rgba(10, 14, 20, 0.9);
  color: #6ee7b7;
  pointer-events: none;
}

.pp-trade-modal__card.is-missing .pp-trade-modal__card-tag {
  color: #fca5a5;
}

.pp-trade-modal__grid img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  display: block;
}

.pp-trade-modal__grid-msg {
  grid-column: 1 / -1;
  margin: 0;
  color: #8b97a8;
  font-size: 0.8rem;
}

.pp-trade-modal__grid-msg.is-err {
  color: #fca5a5;
}

.pp-trade-modal__steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.pp-trade-modal__step-title {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c5ced9;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pp-trade-modal__n {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.16);
  color: #7dd3fc;
  font-size: 0.68rem;
}

.pp-trade-modal__hint-inline {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: #8b97a8;
  font-size: 0.72rem;
}

.pp-trade-modal__status {
  margin: 0.7rem 0 0;
  min-height: 1.25em;
  font-size: 0.78rem;
  color: #8b97a8;
  line-height: 1.35;
  flex: 0 0 auto;
}

.pp-trade-modal__status.is-ok {
  color: #6ee7b7;
}

.pp-trade-modal__status.is-warn {
  color: #fbbf24;
}

.pp-trade-modal__status.is-shake {
  animation: pp-trade-shake 0.35s ease;
}

@keyframes pp-trade-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.pp-trade-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.85rem;
  flex: 0 0 auto;
}

.pp-trade-modal__actions button {
  appearance: none;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #8b97a8;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.pp-trade-modal__actions button[data-confirm] {
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.14);
  color: #7dd3fc;
  font-weight: 600;
}

.pp-trade-modal__actions button[data-confirm]:disabled,
.pp-trade-modal__actions button[data-confirm][aria-disabled='true'] {
  opacity: 0.55;
}

.pp-trade-modal__actions button[data-confirm].is-ready {
  opacity: 1;
  background: rgba(125, 211, 252, 0.22);
}

.pp-trade-modal__actions button[data-decline] {
  border-color: rgba(252, 165, 165, 0.25);
  color: #fca5a5;
}

.pp-trade-detail__swap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 0.35rem;
}

.pp-trade-detail__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100px;
}

.pp-trade-detail__card img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0e14;
}

.pp-trade-detail__card.is-empty {
  height: 140px;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #5c6778;
  font-size: 0.75rem;
}

.pp-trade-detail__card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.pp-trade-detail__card-name {
  font-size: 0.72rem;
  color: #c5ced9;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pp-trade-detail__arrow {
  align-self: center;
  font-size: 1.25rem;
  color: #7dd3fc;
  opacity: 0.85;
  padding-top: 1.6rem;
}

.pp-binder-embed {
  flex: 1 1 auto;
  min-height: 0;
  height: min(760px, 82vh);
  border-radius: 10px;
  overflow: hidden;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pp-binder-embed .bd-workspace {
  height: 100%;
  max-height: 100%;
  background: transparent;
}

.pp-binder-embed .bd-workspace--readonly .bd-main {
  grid-template-columns: 1fr;
}

.pp-binder-embed .bd-stage {
  padding: 0.55rem 0.55rem 0.6rem;
  gap: 0.5rem;
  justify-content: center;
}

.pp-binder-embed .bd-workspace--readonly .bd-binder {
  width: min(98%, 620px);
  max-height: calc(100% - 2.5rem);
}

.pp-binder-embed .bd-pager {
  transform: none;
  transform-origin: center top;
}

.pp-binder-embed,
.pp-binder-embed * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.pp-binder-embed .bd-toast {
  display: none !important;
}

.pp-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.08);
}

.pp-panel__head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--pp-text);
  letter-spacing: -0.01em;
}

.pp-panel__count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pp-muted);
  font-variant-numeric: tabular-nums;
}

.pp-empty {
  margin: 0.35rem 0 0.15rem;
  color: var(--pp-muted);
  font-size: 0.88rem;
}

.pp-decks,
.pp-matches {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pp-decks {
  gap: 0.4rem;
}

.pp-decks > li {
  opacity: 0;
  transform: translateY(6px);
  animation: pp-rise 0.4s var(--pp-ease) forwards;
  animation-delay: calc(0.18s + var(--i, 0) * 40ms);
}

.pp-deck {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.55rem 0.5rem 0.45rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  background: transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--pp-ease);
}

.pp-deck:hover {
  background: var(--pp-surface);
  border-color: rgba(125, 211, 252, 0.14);
  transform: translateX(2px);
}

.pp-deck__fan {
  position: relative;
  width: 52px;
  height: 44px;
  flex-shrink: 0;
}

.pp-deck__fan img {
  position: absolute;
  top: 0;
  width: 30px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(10, 14, 20, 0.85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s var(--pp-ease);
}

.pp-deck__fan img:nth-child(1) {
  left: 0;
  z-index: 3;
  transform: rotate(-6deg);
}

.pp-deck__fan img:nth-child(2) {
  left: 11px;
  z-index: 2;
  transform: rotate(2deg);
}

.pp-deck__fan img:nth-child(3) {
  left: 22px;
  z-index: 1;
  transform: rotate(8deg);
}

.pp-deck:hover .pp-deck__fan img:nth-child(1) { transform: rotate(-10deg) translateY(-2px); }
.pp-deck:hover .pp-deck__fan img:nth-child(2) { transform: rotate(0deg) translateY(-3px); }
.pp-deck:hover .pp-deck__fan img:nth-child(3) { transform: rotate(10deg) translateY(-2px); }

.pp-deck__fan-empty {
  display: block;
  width: 30px;
  height: 42px;
  border-radius: 3px;
  background: var(--pp-surface);
  border: 1px dashed rgba(125, 211, 252, 0.15);
}

.pp-deck__info {
  min-width: 0;
}

.pp-deck__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--pp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-deck__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.12rem;
  font-size: 0.74rem;
  color: var(--pp-muted);
}

.pp-deck__rating {
  color: #fbbf24;
  font-weight: 650;
}

.pp-deck__go {
  color: var(--pp-muted);
  font-size: 0.95rem;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s var(--pp-ease), color 0.2s ease;
}

.pp-deck:hover .pp-deck__go {
  opacity: 1;
  color: var(--pp-accent);
  transform: translateX(2px);
}

/* —— Partidas (fila compacta) —— */
.pp-matches {
  gap: 0.3rem;
}

.pp-match {
  --i: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.4rem 0.55rem 0.4rem 0.7rem;
  border-radius: 8px;
  background: rgba(10, 14, 20, 0.35);
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(6px);
  animation: pp-rise 0.35s var(--pp-ease) forwards;
  animation-delay: calc(0.22s + var(--i) * 30ms);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pp-match:hover {
  border-color: rgba(125, 211, 252, 0.14);
  background: var(--pp-surface);
}

.pp-match__stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #64748b;
}

.pp-match--win .pp-match__stripe { background: #4ade80; }
.pp-match--loss .pp-match__stripe { background: #f87171; }

.pp-match__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.pp-match--win .pp-match__badge {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(134, 239, 172, 0.2);
}

.pp-match--loss .pp-match__badge {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(252, 165, 165, 0.2);
}

.pp-match__duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.pp-match__side {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.pp-match__side--opp {
  justify-content: flex-end;
  text-align: right;
}

.pp-match__avatar,
.pp-match__avatar-link {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 50%;
  line-height: 0;
}

.pp-match__avatar-link:hover {
  outline: 1px solid rgba(125, 211, 252, 0.45);
  outline-offset: 1px;
}

.pp-match__avatar .user-avatar--sm,
.pp-match__avatar-link .user-avatar--sm {
  width: 20px;
  height: 20px;
}

.pp-match__avatar .user-avatar-gender,
.pp-match__avatar-link .user-avatar-gender {
  display: none;
}

.pp-match__name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.pp-match__name--link {
  color: var(--pp-accent);
  text-decoration: none;
}

a.pp-match__name--link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pp-match__anon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1a2030;
  border: 1px solid rgba(125, 211, 252, 0.12);
  color: var(--pp-muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.pp-match__score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18rem;
  min-width: 2.4rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(10, 14, 20, 0.55);
  font-variant-numeric: tabular-nums;
}

.pp-match__score strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c5d0de;
}

.pp-match__score strong.is-lead { color: var(--pp-text); }
.pp-match--win .pp-match__score strong.is-lead { color: #86efac; }
.pp-match--loss .pp-match__score strong.is-lead { color: #fca5a5; }

.pp-match__score-sep {
  color: var(--pp-muted);
  font-size: 0.68rem;
}

.pp-match__trail {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.pp-match__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--pp-muted);
  background: rgba(26, 32, 48, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.08);
  white-space: nowrap;
}

.pp-match__date {
  font-size: 0.64rem;
  color: var(--pp-muted);
  white-space: nowrap;
}

/* Motion */
@keyframes pp-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pp-glow {
  from { opacity: 0.75; transform: translateY(0); }
  to { opacity: 1; transform: translateY(6px); }
}

@keyframes pp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Feed (actividad) */
.social-feed {
  padding: 2rem 0 3.5rem;
}

.social-feed__head {
  margin-bottom: 1.5rem;
}

.social-feed__head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--pp-text);
}

.social-feed__head p {
  margin: 0;
  color: var(--pp-muted);
  font-size: 0.95rem;
}

.social-feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.social-feed__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: var(--pp-panel);
  border: 1px solid var(--pp-line);
}

.social-feed__body {
  min-width: 0;
  flex: 1;
}

.social-feed__text {
  margin: 0 0 0.25rem;
  color: var(--pp-text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.social-feed__text a {
  color: var(--pp-accent);
  text-decoration: none;
  font-weight: 600;
}

.social-feed__text a:hover {
  text-decoration: underline;
}

.social-feed__time {
  margin: 0;
  font-size: 0.78rem;
  color: var(--pp-muted);
}

.social-feed__tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pp-muted);
  border: 1px solid rgba(139, 151, 168, 0.35);
}

.pub-profile__empty {
  margin: 0;
  color: var(--pp-muted);
  font-size: 0.92rem;
}

/* Compat: mensajes del JS social-actions */
.pd-author__friend-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(134, 239, 172, 0.22);
}

@media (max-width: 900px) {
  .pp-head__top {
    grid-template-columns: 1fr;
  }

  .pp-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "achievements"
      "trade"
      "binder"
      "matches"
      "decks";
  }

  .pp-panel--trade {
    max-width: none;
  }

  .pp-trade__board {
    flex-direction: row;
    align-items: stretch;
    gap: 0.35rem;
  }

  .pp-trade__lane {
    flex: 1;
    min-width: 0;
  }

  .pp-trade__swap-mark {
    align-self: center;
    padding-top: 1.1rem;
  }
}

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

  .pp-stat:nth-child(4),
  .pp-stat:nth-child(5) {
    border-top: 1px solid var(--pp-line);
  }

  .pp-stat:nth-child(3),
  .pp-stat:nth-child(5) {
    border-right: 0;
  }

  .pp-match {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pp-match__trail {
    grid-column: 2;
    justify-content: flex-start;
  }

  .pp-match__side--self .pp-match__name {
    display: none;
  }
}

@media (max-width: 480px) {
  .pp-head {
    padding: 1rem;
  }

  .pp-head__identity {
    gap: 0.85rem;
  }

  .pp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-stat {
    border-right: 1px solid var(--pp-line);
    border-top: 1px solid var(--pp-line);
  }

  .pp-stat:nth-child(1),
  .pp-stat:nth-child(2) {
    border-top: 0;
  }

  .pp-stat:nth-child(2n) {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-head,
  .pp-panel,
  .pp-decks > li,
  .pp-match,
  .pp-chart,
  .pp-hero__glow {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .pp-chart__fill {
    animation: none;
    stroke-dashoffset: calc(97.4 - (97.4 * var(--wr) / 100));
  }

  .pp-chart__bar-win,
  .pp-chart__bar-loss,
  .pp-chart__tick {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .pp-presence.is-online .pp-presence__dot,
  .pp-presence.is-in_queue .pp-presence__dot {
    animation: none;
  }

  .pp-deck:hover {
    transform: none;
  }

  .pp-deck:hover .pp-deck__fan img:nth-child(1),
  .pp-deck:hover .pp-deck__fan img:nth-child(2),
  .pp-deck:hover .pp-deck__fan img:nth-child(3) {
    transform: none;
  }
}
