/* Sim Racing Peru · Beta 0.64.5
   Identidad de escuderias, licencias oficiales y titulos completos. */
#pilot-grid .srp644-directory-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,325px),1fr));gap:13px}
#pilot-grid .pilot-card{position:relative;min-width:0;min-height:145px;padding:16px 14px;gap:12px;align-items:flex-start;overflow:hidden}
#pilot-grid .pilot-avatar{width:56px;height:56px;flex:0 0 56px;margin-top:2px}
#pilot-grid .pilot-card-detail{min-width:0;flex:1 1 0}
#pilot-grid .pilot-card-detail>b{font-size:clamp(23px,2.25vw,29px);line-height:1.13;white-space:normal;overflow:visible;overflow-wrap:break-word;word-break:normal;hyphens:auto;text-wrap:pretty}
#pilot-grid .pilot-card-detail .pilot-team{font-size:12px;line-height:1.4;overflow-wrap:break-word}
#pilot-grid .pilot-arrow{flex:none;margin-left:auto}
#pilot-grid .pilot-caption{gap:5px}
#pilot-grid .pilot-chip{white-space:normal;line-height:1.35;max-width:100%}
#pilot-grid .srp644-card-badges{flex-wrap:wrap;margin-top:7px}
#pilot-grid .srp644-honour .srp-honour-icon,
#pilot-grid .srp644-honour .srp-honour-icon img{width:20px;height:20px}
#pilot-grid .pilot-chip.srp645-licencia{display:inline-flex;align-items:center;gap:6px;background:rgba(18,24,32,.84);border:1px solid #7b8895;color:#f8fafc;padding:2px 7px 2px 3px}
#pilot-grid .srp645-licencia img{width:24px;height:24px;object-fit:contain;flex:none}
.srp645-team-painted{--srp645-team-palette:linear-gradient(90deg,#313b49,#202935);--srp645-team-main:#6e7a89;position:relative;isolation:isolate;overflow:hidden}
#pilot-grid .pilot-card.srp645-team-painted,
.beta-team-card.srp645-team-painted{
  background:linear-gradient(112deg,rgba(13,18,25,.96) 10%,rgba(13,18,25,.82) 72%,rgba(13,18,25,.75)),var(--srp645-team-palette);
  border-color:#45505f;border-left-color:var(--srp645-team-main);
}
.srp645-team-painted::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--srp645-team-palette);pointer-events:none;z-index:1}
.srp645-team-painted::after{content:"";position:absolute;top:4px;right:0;width:18%;bottom:0;background:var(--srp645-team-palette);opacity:.12;transform:skew(-15deg) translateX(24%);pointer-events:none;z-index:0}
.srp645-team-painted>*{position:relative;z-index:1}
.beta-team-card{min-width:0;align-items:flex-start}
.beta-team-card>div{min-width:0;flex:1 1 0}
.beta-team-card strong{font-size:clamp(20px,2.1vw,25px);font-weight:850;line-height:1.18;text-transform:uppercase;white-space:normal;overflow:visible;overflow-wrap:break-word;word-break:normal;text-wrap:pretty}
.beta-team-card .beta-shield{flex:0 0 58px}
.beta-team-card>span:last-child{flex:none}
.beta-team-card .srp644-card-badges{gap:3px;margin:7px 0}
.beta-team-card .srp644-honour{min-width:18px;min-height:18px}
.beta-team-card .srp644-honour .srp-honour-icon,
.beta-team-card .srp644-honour .srp-honour-icon img{width:18px;height:18px}
.srp641-team-heading{min-width:0}
.srp641-team-heading h2{font-size:clamp(31px,4vw,53px);line-height:1.1;white-space:normal;overflow-wrap:break-word;word-break:normal;hyphens:auto;text-wrap:pretty;text-transform:uppercase}
.srp641-team-header{min-width:0}
.srp641-masthead.srp645-team-painted{background:linear-gradient(135deg,rgba(15,23,33,.96),rgba(15,23,33,.87)),var(--srp645-team-palette);border-left:4px solid var(--srp645-team-main)}
.srp641-masthead.srp645-team-painted::after{opacity:.06}
.srp641-star{width:84px;min-width:84px;max-width:105px;min-height:76px;gap:2px;padding:6px}
.srp641-star .srp-honour-icon{width:29px;height:29px}
.srp641-star .srp-honour-icon img{width:26px;height:26px}
.srp641-star small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word;line-height:1.22;max-width:100%;font-size:9px}
.srp641-pilot-achievements .srp-honour-icon{width:21px;height:21px}
.srp641-pilot-achievements .srp-honour-icon img{width:18px;height:18px}
.srp641-pilot>a{min-width:0;flex:1;white-space:normal;overflow-wrap:break-word}
.srp641-identity.srp645-team-painted{background:linear-gradient(120deg,rgba(16,23,31,.94),rgba(16,23,31,.86)),var(--srp645-team-palette)}
#pilotos-perfil .pilot-profile-hero.srp645-team-painted{background:linear-gradient(110deg,rgba(14,18,24,.93),rgba(14,18,24,.81)),var(--srp645-team-palette)}
#pilotos-perfil .pilot-profile-identity h2{overflow-wrap:break-word;word-break:normal;line-height:1.04}
.srp645-palette-editor{border:1px solid #435365;background:#141d27;padding:16px;margin:14px 0 19px}
.srp645-palette-editor>strong{display:block;font-size:14px;color:#fff;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.srp645-palette-editor>p{font-size:12px;color:#c6d3df;margin:0 0 12px}
.srp645-palette-inputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.srp645-color-option{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0;border:1px solid #45566a;background:#1e2a38;padding:9px}
.srp645-color-option>span{display:flex;align-items:center;gap:7px;font-size:12px;color:#e7eef6}
.srp645-color-option input[type="checkbox"]{width:17px;height:17px;accent-color:#e20c1a;flex:none}
.srp645-color-option input[type="color"]{width:45px;min-width:45px;height:34px;cursor:pointer;padding:2px;border:1px solid #596b80;background:#101720}
.srp645-color-option input[type="color"]:disabled{opacity:.35;cursor:not-allowed}
.srp645-preview{min-height:45px;border:1px solid #536279;margin-top:10px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:850;color:#fff;text-shadow:0 1px 3px #000;background:#1a2430}
.srp645-preview small{font:10px 'IBM Plex Mono',monospace;color:#fff}
@media(max-width:800px){.srp645-palette-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){
 #pilot-grid .srp644-directory-cards{grid-template-columns:1fr}
 #pilot-grid .pilot-card{padding:14px 12px;gap:10px}
 #pilot-grid .pilot-card-detail>b{font-size:24px}
 .beta-team-card strong{font-size:22px}
 .srp641-star{min-width:74px;width:74px}
 .srp641-team-header{flex-wrap:wrap}
 .srp641-team-heading{flex-basis:calc(100% - 80px)}
}
