
.pfca-wrap { color: #0f172a; }
.pfca-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.pfca-card {
  border: 1px solid #dbe7db;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf7 100%);
}
.pfca-row { display: flex; align-items: flex-end; justify-content: center; gap: 14px; flex-wrap: nowrap; }
.pfca-item {
  min-width: 106px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pfca-item.is-hover,
.pfca-item:hover { transform: translateY(-3px); }
.pfca-first { transform: translateY(-8px); }
.pfca-topline { margin-bottom: 8px; }
.pfca-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #ccead6;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 13px;
}
.pfca-name { font-size: 14px; margin-bottom: 10px; line-height: 1.25; min-height: 36px; }
.pfca-photo img,
.pfca-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.pfca-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16a34a, #0f766e);
  color: #fff;
  font-weight: 800;
  font-size: 24px;
}
.pfca-avatar-silhouette::before {
  content: "♟";
  font-size: 34px;
}
.pfca-meta {
  margin-top: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}
.pfca-fide, .pfca-club { text-decoration: none; }
.pfca-dot { margin: 0 6px; color: #94a3b8; }
.pfca-tournament-header { text-align: center; }
.pfca-tournament-name { color: #14532d; }
.pfca-tournament-date { color: #64748b; }
.pfca-error { margin: 16px 0; }

@media (max-width: 768px) {
  .pfca-row { flex-wrap: wrap; }
  .pfca-first { transform: none; }
  .pfca-photo img, .pfca-avatar { width: 82px; height: 82px; }
}


.pfca-card-podium{
    background: linear-gradient(180deg,#ffffff 0%,#f7fbf8 100%);
    border: 1px solid #d8e7dd;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    overflow: visible;
}
.pfca-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:22px;
    flex-wrap:wrap;
}
.pfca-card-cat{
    font-size:1.15rem;
    font-weight:800;
    color:#163c2c;
}
.pfca-card-rama{
    background:#1f6b45;
    color:#fff;
    padding:8px 14px;
    border-radius:999px;
    font-size:.82rem;
    font-weight:700;
    letter-spacing:.02em;
}
.pfca-row-podium{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    gap:22px;
    flex-wrap:wrap;
    margin-top:8px;
}
.pfca-item{
    position:relative;
    width:290px;
    display:flex;
    flex-direction:column;
    align-items:center;
}
.pfca-first{
    width:360px;
    z-index:3;
}
.pfca-player-card{
    width:100%;
    background:linear-gradient(180deg,#ffffff 0%,#f5f8f6 100%);
    border-radius:22px;
    padding:18px 18px 20px;
    text-align:center;
    box-shadow:0 14px 30px rgba(0,0,0,.10);
    border:1px solid rgba(31,107,69,.10);
}
.pfca-first .pfca-player-card{
    border:2px solid #d4af37;
    box-shadow:0 18px 36px rgba(0,0,0,.14);
}
.pfca-podium-base{
    width:78%;
    border-radius:18px 18px 0 0;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto -10px;
    color:#fff;
    font-weight:900;
    box-shadow:0 10px 18px rgba(0,0,0,.10);
}
.pfca-base-1{
    height:140px;
    background:linear-gradient(180deg,#d4af37 0%,#b88916 100%);
}
.pfca-base-2{
    height:105px;
    background:linear-gradient(180deg,#cfd4db 0%,#97a1ac 100%);
}
.pfca-base-3{
    height:88px;
    background:linear-gradient(180deg,#d59663 0%,#a86233 100%);
}
.pfca-base-rank{
    font-size:2rem;
    line-height:1;
}
.pfca-medal-wrap{
    position:relative;
    z-index:4;
    margin-bottom:-12px;
}
.pfca-medal{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:52px;
    height:52px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 8px 16px rgba(0,0,0,.12);
    font-size:1.5rem;
}
.pfca-first .pfca-medal{
    width:60px;
    height:60px;
    font-size:1.8rem;
}
.pfca-player-crown{
    display:inline-block;
    padding:7px 14px;
    border-radius:999px;
    background:#eaf4ee;
    color:#1e5b3d;
    font-size:.82rem;
    font-weight:800;
    margin-bottom:12px;
}
.pfca-first .pfca-player-crown{
    background:#fff4cf;
    color:#8b6914;
}
.pfca-photo-shell{
    margin:4px auto 14px;
}
.pfca-photo-img,
.pfca-avatar-fallback{
    width:190px;
    height:190px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #fff;
    box-shadow:0 10px 20px rgba(0,0,0,.14);
}
.pfca-first .pfca-photo-img,
.pfca-first .pfca-avatar-fallback{
    width:240px;
    height:240px;
}
.pfca-avatar-fallback{
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#1f6b45 0%,#2f8c5d 100%);
    color:#fff;
    font-size:2rem;
    font-weight:800;
}
.pfca-player-name{
    font-size:1.15rem;
    line-height:1.2;
    font-weight:900;
    color:#173426;
    margin-bottom:10px;
    text-wrap:balance;
}
.pfca-first .pfca-player-name{
    font-size:1.4rem;
}
.pfca-player-league{
    display:inline-block;
    background:#1f6b45;
    color:#fff;
    border-radius:999px;
    padding:8px 14px;
    font-size:.82rem;
    font-weight:700;
    margin-bottom:10px;
    max-width:100%;
}
.pfca-player-fide,
.pfca-player-fide a{
    color:#5b6670;
    font-size:.83rem;
    font-weight:600;
    text-decoration:none;
}
.pfca-player-fide a:hover{
    color:#1f6b45;
}
@media (max-width: 900px){
    .pfca-row-podium{
        gap:16px;
    }
    .pfca-first{
        width:290px;
    }
    .pfca-item{
        width:220px;
    }
}
@media (max-width: 640px){
    .pfca-row-podium{
        flex-direction:column;
        align-items:center;
    }
    .pfca-item,
    .pfca-first{
        width:min(100%, 340px);
    }
}


@media (max-width: 640px){
    .pfca-photo-img,
    .pfca-avatar-fallback{
        width:160px;
        height:160px;
    }
    .pfca-first .pfca-photo-img,
    .pfca-first .pfca-avatar-fallback{
        width:200px;
        height:200px;
    }
}


/* ===== 3.3.0 VISUAL FCA PRO ===== */
.pfca-header-pro{
    text-align:center;
    margin: 0 auto 28px;
    padding: 18px 18px 14px;
    border-radius: 22px;
    background: linear-gradient(180deg,#ecfdf5 0%, #ffffff 100%);
    border: 1px solid #d7eadc;
    box-shadow: 0 16px 34px rgba(0,0,0,.07);
}
.pfca-header-badge{
    display:inline-block;
    margin-bottom:10px;
    padding:7px 14px;
    border-radius:999px;
    background:#14532d;
    color:#fff;
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.pfca-header-pro h2,
.pfca-main-title{
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 900;
    color:#14532d;
    line-height:1.16;
    margin: 0 0 8px;
    text-wrap: balance;
}
.pfca-header-pro .pfca-fecha,
.pfca-date{
    font-size:.94rem;
    color:#4b5563;
    font-weight:700;
    margin-bottom:4px;
}
.pfca-header-pro .pfca-id{
    font-size:.8rem;
    color:#6b7280;
    font-weight:700;
}

.pfca-card-podium{
    background: linear-gradient(180deg,#f0fdf4 0%,#ffffff 100%);
    border-radius:24px;
    padding:26px;
    box-shadow:0 22px 44px rgba(0,0,0,.08);
    border:1px solid #dbe9df;
}

.pfca-row-podium{
    gap:26px;
}

.pfca-item{
    transition: transform .25s ease, box-shadow .25s ease;
}
.pfca-item:hover{
    transform: translateY(-6px);
}

.pfca-player-card{
    background: linear-gradient(180deg,#ffffff 0%,#f7fbf8 100%);
    border-radius:24px;
    box-shadow:0 14px 30px rgba(0,0,0,.10);
}

.pfca-first{
    filter: drop-shadow(0 0 18px rgba(212,175,55,.20));
}
.pfca-first .pfca-player-card{
    border:3px solid #d4af37;
    background: linear-gradient(180deg,#fffbea 0%,#ffffff 100%);
    box-shadow:0 20px 40px rgba(0,0,0,.14);
}

.pfca-photo-img,
.pfca-avatar-fallback{
    border:6px solid #fff;
    box-shadow:0 12px 22px rgba(0,0,0,.14);
}

.pfca-player-league{
    background:#065f46;
    font-weight:800;
    letter-spacing:.03em;
}

.pfca-player-name{
    color:#163326;
}

.pfca-first .pfca-player-crown{
    background: linear-gradient(180deg,#fff6d6 0%, #ffe9a8 100%);
    color:#7a5b00;
}

.pfca-card-cat{
    color:#14532d;
    font-weight:900;
}
.pfca-card-rama{
    background:#166534;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

@media (max-width: 640px){
    .pfca-card-podium{
        padding:18px;
    }
    .pfca-header-pro{
        padding:14px 12px;
    }
}


/* ===== 3.3.4 PODIO ANIMADO PRO ===== */
.pfca-podium-wrap{
    display:flex;
    justify-content:center;
    margin-top:30px;
    overflow:visible;
}
.pfca-podium{
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}
.pfca-item{
    text-align:center;
    width:180px;
    position:relative;
    animation: pfcaRise .7s ease both;
}
.pfca-second{animation-delay:.08s;}
.pfca-first{animation-delay:.16s;}
.pfca-third{animation-delay:.24s;}

@keyframes pfcaRise{
    from{opacity:0; transform:translateY(26px) scale(.96);}
    to{opacity:1; transform:translateY(0) scale(1);}
}

.pfca-base{
    width:100%;
    border-radius:14px 14px 0 0;
    margin-top:14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 12px 24px rgba(0,0,0,.10);
}
.pfca-first .pfca-base{
    height:170px;
    background:linear-gradient(180deg,#d9b84a 0%,#b78d1d 100%);
}
.pfca-second .pfca-base{
    height:128px;
    background:linear-gradient(180deg,#d5d8dc 0%,#9aa3ad 100%);
}
.pfca-third .pfca-base{
    height:108px;
    background:linear-gradient(180deg,#d79a65 0%,#aa6733 100%);
}

.pfca-photo{
    width:132px;
    height:132px;
    margin:0 auto;
    border-radius:50%;
    overflow:hidden;
    border:6px solid #fff;
    box-shadow:0 10px 20px rgba(0,0,0,.18);
    background:#e5e7eb;
}
.pfca-first .pfca-photo{
    width:168px;
    height:168px;
}
.pfca-photo-img,
.pfca-avatar-fallback{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}
.pfca-avatar-fallback{
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#166534 0%,#2f8c5d 100%);
    color:#fff;
    font-size:2rem;
    font-weight:900;
}
.pfca-medal{
    position:absolute;
    top:-14px;
    left:50%;
    transform:translateX(-50%);
    font-size:28px;
    z-index:5;
    background:#fff;
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    box-shadow:0 10px 18px rgba(0,0,0,.12);
}
.pfca-first .pfca-medal{
    width:60px;
    height:60px;
    font-size:32px;
}
.pfca-name{
    font-weight:900;
    margin-top:12px;
    color:#163326;
    line-height:1.18;
}
.pfca-first .pfca-name{
    font-size:1.12rem;
}
.pfca-league{
    font-size:13px;
    background:#065f46;
    color:#fff;
    padding:6px 10px;
    border-radius:8px;
    display:inline-block;
    margin-top:7px;
    font-weight:800;
    letter-spacing:.02em;
}
.pfca-player-top{
    margin-bottom:10px;
}
.pfca-player-crown{
    display:inline-block;
    padding:7px 12px;
    border-radius:999px;
    background:#ecfdf5;
    color:#14532d;
    font-size:.8rem;
    font-weight:800;
}
.pfca-first .pfca-player-crown{
    background:linear-gradient(180deg,#fff5cf 0%,#ffe59c 100%);
    color:#7a5b00;
}
.pfca-first{
    filter: drop-shadow(0 0 16px rgba(212,175,55,.25));
}

@media (max-width: 700px){
    .pfca-podium{gap:14px;}
    .pfca-item{width:160px;}
    .pfca-first .pfca-photo{width:150px;height:150px;}
    .pfca-photo{width:120px;height:120px;}
}


/* ===== 3.4.0 MASTER ===== */
.pfca-master-shell{
    position:relative;
    overflow:hidden;
    background:
      radial-gradient(circle at 50% 0%, rgba(16,185,129,.24), transparent 40%),
      linear-gradient(180deg,#04140d 0%,#0b1511 45%,#111310 100%);
    color:#fff;
    border-radius:28px;
    padding:24px 24px 18px;
    box-shadow:0 24px 48px rgba(0,0,0,.25);
    border:1px solid rgba(52,211,153,.18);
}
.pfca-master-topband{
    position:absolute;
    inset:0 auto auto 0;
    width:100%;
    height:110px;
    background:linear-gradient(180deg, rgba(0,128,64,.35), rgba(0,0,0,0));
    pointer-events:none;
}
.pfca-master-header{display:flex;justify-content:center;margin-bottom:10px;position:relative;z-index:1;}
.pfca-master-logo-badge{
    display:flex;align-items:center;gap:12px;
    background:linear-gradient(180deg,#0d3b2a 0%,#0d2c20 100%);
    border:2px solid #38b46f;
    padding:12px 24px;
    border-radius:0 0 22px 22px;
    box-shadow:0 14px 26px rgba(0,0,0,.22);
}
.pfca-master-logo-mark{
    width:56px;height:56px;border-radius:18px;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(180deg,#0f6b46 0%,#0c3d2b 100%);
    color:#fff;font-size:2rem;font-weight:900;
}
.pfca-master-logo-main{font-size:3rem;line-height:.9;font-weight:1000;letter-spacing:.02em;}
.pfca-master-logo-sub{font-size:.8rem;opacity:.9;font-weight:700;text-transform:uppercase;}
.pfca-master-grid{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    gap:20px;
    align-items:start;
    margin:8px 0 18px;
    position:relative;z-index:1;
}
.pfca-master-side{padding-top:12px;}
.pfca-master-tag,.pfca-master-code-label{
    display:inline-block;
    border:2px solid #2f9c62;
    color:#44d787;
    font-weight:900;
    text-transform:uppercase;
    border-radius:12px;
    padding:8px 14px;
    font-size:1rem;
    margin-bottom:12px;
}
.pfca-master-title{
    margin:0 0 12px;
    font-size:clamp(1.8rem,3vw,3rem);
    line-height:1.02;
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:.01em;
}
.pfca-master-meta-line{
    font-size:1.15rem;
    font-weight:700;
    color:#f5f5f5;
    margin:8px 0;
}
.pfca-master-center-head{text-align:center;padding-top:6px;}
.pfca-master-podio-label{
    font-size:clamp(2.4rem,5vw,5rem);
    line-height:1;
    font-weight:1000;
    text-transform:uppercase;
}
.pfca-master-stars{
    color:#1fd36f;
    font-size:2.1rem;
    letter-spacing:.18em;
}
.pfca-master-side-right{text-align:right;}
.pfca-master-code{
    font-size:2.5rem;
    font-weight:1000;
    color:#17c05f;
    line-height:1.05;
}
.pfca-master-rama{
    margin-top:18px;
    font-size:1.45rem;
    font-weight:900;
    text-transform:uppercase;
    color:#f7f7f7;
}
.pfca-master-podium-wrap{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    gap:22px;
    margin:18px auto 20px;
    flex-wrap:wrap;
    position:relative;z-index:1;
}
.pfca-master-item{
    width:300px;
    position:relative;
    text-align:center;
    animation:pfcaMasterRise .9s ease both;
}
.pfca-master-second{animation-delay:.08s}
.pfca-master-first{width:370px;animation-delay:.16s}
.pfca-master-third{animation-delay:.24s}
@keyframes pfcaMasterRise{
  from{opacity:0;transform:translateY(28px) scale(.97)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.pfca-master-card{
    background:linear-gradient(180deg,#f3ecdf 0%,#efe7d5 100%);
    color:#101010;
    border-radius:22px;
    padding:16px 16px 18px;
    border:4px solid #d1d5db;
    box-shadow:0 18px 34px rgba(0,0,0,.24);
}
.pfca-master-first .pfca-master-card{border-color:#e0b341;}
.pfca-master-third .pfca-master-card{border-color:#c78251;}
.pfca-master-photo-frame{
    border-radius:16px;
    overflow:hidden;
    background:#d7d7d7;
    aspect-ratio:4/4.9;
    margin-bottom:14px;
}
.pfca-master-photo{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.pfca-master-avatar{
    display:flex;align-items:center;justify-content:center;
    background:linear-gradient(135deg,#0f6b46,#0d2c20);
    color:#fff;
    font-weight:1000;
    font-size:2.6rem;
}
.pfca-master-player-name{
    font-size:clamp(1.25rem,2vw,2rem);
    line-height:1.02;
    font-weight:1000;
    text-transform:uppercase;
    margin-bottom:10px;
}
.pfca-master-player-league{
    display:inline-block;
    padding:9px 16px;
    border-radius:999px;
    background:#0f8a49;
    color:#fff;
    font-weight:900;
    font-size:1.05rem;
    text-transform:uppercase;
    margin-bottom:12px;
}
.pfca-master-points{
    border-top:2px solid rgba(0,0,0,.18);
    margin-top:8px;
    padding-top:10px;
}
.pfca-master-points span{
    display:block;
    text-transform:uppercase;
    font-weight:800;
    font-size:1.05rem;
    color:#2a2a2a;
}
.pfca-master-points strong{
    display:block;
    color:#0a7040;
    font-size:3rem;
    line-height:1;
    font-weight:1000;
    margin-top:4px;
}
.pfca-master-medal{
    position:absolute;
    top:-18px;
    left:22px;
    width:88px;height:88px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:2.5rem;font-weight:1000;
    color:#fff;
    box-shadow:0 12px 18px rgba(0,0,0,.28);
    z-index:3;
}
.pfca-master-medal-1{background:linear-gradient(180deg,#ffd95b,#c99516);}
.pfca-master-medal-2{background:linear-gradient(180deg,#e5e7eb,#9ca3af);}
.pfca-master-medal-3{background:linear-gradient(180deg,#de9b67,#ad6430);}
.pfca-master-base{
    border-radius:22px 22px 0 0;
    box-shadow:inset 0 2px 0 rgba(255,255,255,.22), 0 18px 26px rgba(0,0,0,.22);
    margin-top:12px;
    display:flex;align-items:center;justify-content:center;
}
.pfca-master-base-1{height:155px;background:linear-gradient(180deg,#d8af2e,#b58113);}
.pfca-master-base-2{height:108px;background:linear-gradient(180deg,#d7dbe0,#9aa4ae);}
.pfca-master-base-3{height:98px;background:linear-gradient(180deg,#d38e57,#a65f2c);}
.pfca-master-base-number{
    color:rgba(255,255,255,.85);
    font-size:5rem;
    font-weight:1000;
    line-height:1;
    text-shadow:0 4px 8px rgba(0,0,0,.22);
}
.pfca-master-footer{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin-top:12px;
    padding:14px 12px;
    border:2px solid #0a8a48;
    border-radius:18px;
    background:rgba(0,0,0,.34);
}
.pfca-master-foot-item{
    display:flex;align-items:center;gap:10px;
    color:#e5fcef;
    min-height:56px;
}
.pfca-master-foot-ico{font-size:1.7rem}
.pfca-master-foot-item strong{
    display:block;
    text-transform:uppercase;
    color:#10d46e;
    font-size:.9rem;
    font-weight:900;
}
.pfca-master-foot-item span{
    display:block;
    color:#f6fff8;
    font-size:1rem;
    font-weight:700;
}
@media (max-width: 1100px){
    .pfca-master-grid{grid-template-columns:1fr;gap:10px}
    .pfca-master-side,.pfca-master-side-right,.pfca-master-center-head{text-align:center}
    .pfca-master-podium-wrap{gap:16px}
    .pfca-master-footer{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 700px){
    .pfca-master-shell{padding:14px}
    .pfca-master-first,.pfca-master-item{width:min(100%,340px)}
    .pfca-master-podium-wrap{flex-direction:column;align-items:center}
    .pfca-master-footer{grid-template-columns:1fr}
    .pfca-master-medal{left:12px;top:-10px;width:68px;height:68px;font-size:2rem}
    .pfca-master-code{font-size:2rem}
}


/* ===== 3.4.1 MASTER EXT ===== */
.pfca-master-logo-mark img{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:18px;
}
.pfca-master-player-meta{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin:6px 0 8px;
}
.pfca-master-player-title{
    color:#14532d;
    font-size:1rem;
    font-weight:900;
    text-transform:uppercase;
}
.pfca-master-player-fide{
    color:#4b5563;
    font-size:.92rem;
    font-weight:800;
}


/* ===== 3.5.2 FIDE INFO PRO ===== */
.pfca-player-title{display:inline-flex;align-items:center;justify-content:center;margin:4px auto 2px;padding:4px 10px;border-radius:999px;background:#ecfdf3;border:1px solid rgba(20,83,45,.18);color:#14532d;font-size:.78rem;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.pfca-player-points{margin:4px 0;color:#6b4b00;font-size:.86rem;font-weight:900}
.pfca-league{font-weight:850}
