/* Perfil do piloto (client/profile.js, docs/perfil.md). Grade do jogo: 10 entre itens, 16 entre blocos. */
.pnick[data-pnick] { cursor: pointer; }
.pnick[data-pnick]:hover, .pnick[data-pnick]:focus-visible { text-decoration: underline; text-underline-offset: 2px; outline: none; }
.vipnick.pnick[data-pnick]:hover { text-decoration-color: var(--gold); }

.profile, .profile-edit { display: flex; flex-direction: column; gap: 16px; }
.pf-head { display: flex; gap: 16px; align-items: center; padding: 12px 14px; border-radius: 6px; background: #0a061440; box-shadow: inset 0 0 0 2px var(--p-dark); }
.pf-helmet { flex: none; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 6px; background: radial-gradient(#3a2c66, #120c22 70%); box-shadow: inset 0 0 0 2px var(--line); }
.pf-id { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-nick { font: 700 22px/1.1 var(--pixel); overflow-wrap: anywhere; }
.pf-title { display: block; margin: 2px 0 4px; font: italic 600 13px/1.2 var(--sans); color: #ffd23a; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-guild { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink2); }
.pf-flag { display: inline-flex; align-items: center; gap: 4px; color: var(--ink2); }
.pf-private { margin: 0; padding: 10px 12px; border-radius: 6px; background: #0a061460; color: var(--ink2); }
.pf-bio { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.pf-bio.empty { color: var(--ink2); font-style: italic; }

.pf-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-social { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 0; border-radius: 4px; background: #0a061470; color: var(--ink);
  text-decoration: none; font-size: 12px; cursor: pointer; box-shadow: inset 0 0 0 2px var(--p-dark); }
.pf-social:hover { box-shadow: inset 0 0 0 2px var(--b-hi); }
.pf-social b { font-weight: 700; }
.pf-net { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; color: #fff; background: #555; flex: none; box-shadow: inset 0 0 0 1px #0006; }
.pf-net svg { display: block; }
.n-youtube .yt-play { fill: #ff0000; }
.n-instagram { background: linear-gradient(45deg, #f9a03a, #e1306c 55%, #833ab4); }
.n-tiktok { background: #111; } .n-tiktok svg { filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }
.n-x { background: #000; }
.n-youtube { background: #ff0000; } .n-youtube svg { color: #fff; }
.n-twitch { background: #9146ff; }
.n-kick { background: #0a0614; color: #53fc18; }
.n-discord { background: #5865f2; }

.pf-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pf-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 4px; background: #0a061450; box-shadow: inset 0 0 0 2px var(--p-dark); text-align: center; }
.pf-stat b { font: 700 16px/1.1 var(--pixel); color: var(--gold); }
.pf-stat small { font-size: 11px; color: var(--ink2); }
.pf-h { margin: 0; font: 700 11px/1 var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }

/* pódio de F1, como o da landing (site/landing.css): 2º à esquerda, 1º no meio e mais alto, 3º à direita */
.pf-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; }
.pf-podium .pod-slot { display: flex; flex-direction: column; min-width: 0; }
.pf-podium .pod-step { display: grid; place-items: center; border-radius: 0 0 4px 4px; box-shadow: inset 0 0 0 2px var(--line), inset 0 4px 0 #ffffff55, inset 0 -6px 0 #0004, 0 4px 0 var(--line); }
.pf-podium .pod-step b { font: 700 34px/1 var(--pixel); color: #1a1200; text-shadow: 2px 2px 0 #ffffff66; }
.pf-podium .p1 .pod-step { height: 92px; background: linear-gradient(#ffe68a, #e0a828); }
.pf-podium .p2 .pod-step { height: 64px; background: linear-gradient(#f4f6fa, #a8b0c4); }
.pf-podium .p3 .pod-step { height: 44px; background: linear-gradient(#f0b888, #b06a30); }
.pf-car { --tc: var(--common); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 6px 6px 0 0; background: #120c22;
  box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--tc); text-align: center; min-width: 0; }
.pf-car.tier-uncommon { --tc: var(--uncommon); } .pf-car.tier-rare { --tc: var(--rare); } .pf-car.tier-epic { --tc: var(--epic); }
.pf-car.tier-mythic { --tc: var(--mythic); } .pf-car.tier-legendary { --tc: var(--legendary); } .pf-car.tier-plate { --tc: #e8c060; }
.p1 .pf-car:not(.empty) { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--tc), inset 0 0 0 5px #c8ccd8, inset 0 0 0 6px #5a5e6a, 0 0 0 2px #e4e8f0, 0 0 24px #ffd23a55; }
.pf-car.empty { justify-content: center; min-height: 120px; color: var(--ink2); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px #3a2c66; }
.pf-empty { font: 700 22px/1 var(--pixel); opacity: .5; }
/* a caixa da aura (.g-art, client/style.css) tem o tamanho da arte; a arte encolhe com a coluna, até 192 px como na Garagem */
.pf-art { width: 100%; display: flex; justify-content: center; padding-top: 6px; }
.pf-art .g-art { width: min(100%, 192px); }
.pf-art .g-art > .hero { width: 100%; height: auto; }
.pf-car-name { font: 700 13px/1.2 var(--pixel); overflow-wrap: anywhere; }
.pf-car-tier { font: 700 11.5px/1 var(--sans); color: var(--tc); }
.pf-car-tier .bp-plate { font-size: 9px; }
.pf-car-meta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; align-items: center; color: var(--ink2); }

.pf-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* editor */
.pe-sec { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.pe-sec .hint { margin: 0; color: var(--ink2); font-size: 12px; }
.pe-bio { width: 100%; resize: vertical; min-height: 64px; font: 13px/1.45 var(--sans); }
.pe-count { align-self: flex-end; color: var(--ink2); }
.pe-nets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.pe-net { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 8px; }
.pe-in-wrap { position: relative; min-width: 0; }
.pe-in-wrap .pe-at { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.pe-in-wrap .pe-in.at { padding-left: 20px; }
.pe-net .pe-in { min-width: 0; width: 100%; }
.pe-at { color: var(--ink2); font-size: 12px; }
.pe-err { grid-column: 2 / -1; color: var(--red); font-size: 11px; }
.pe-places { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; margin-bottom: 16px; }
.pe-place { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; align-items: center; min-width: 0; }
.pe-place .pe-in { min-width: 0; width: 100%; }
.pe-medal { display: grid; place-items: center; height: 28px; border-radius: 4px; font: 700 14px/1 var(--pixel); color: #1a1200; box-shadow: inset 0 0 0 2px var(--line); }
.pe-place.p1 .pe-medal { background: linear-gradient(#ffe68a, #e0a828); }
.pe-place.p2 .pe-medal { background: linear-gradient(#f4f6fa, #a8b0c4); }
.pe-place.p3 .pe-medal { background: linear-gradient(#f0b888, #b06a30); }
.pe-switch { width: 20px; height: 20px; accent-color: var(--gold); }

@media (max-width: 720px) {
  .pf-head { gap: 12px; padding: 10px; }
  .pf-helmet { width: 76px; height: 76px; }
  .pf-helmet .helmet-ico svg { width: 64px; height: 64px; }
  .pf-nick { font-size: 18px; }
  .pf-stats { grid-template-columns: repeat(3, 1fr); }
  .pf-podium { gap: 6px; grid-template-columns: 1fr 1.1fr 1fr; }
  .pf-car { padding: 6px 3px 8px; }
  .pf-car-name { font-size: 11px; } .pf-car-tier { font-size: 10px; } .pf-car-meta { font-size: 10px; }
  .pf-podium .pod-step b { font-size: 22px; }
  .pf-podium .p1 .pod-step { height: 60px; } .pf-podium .p2 .pod-step { height: 42px; } .pf-podium .p3 .pod-step { height: 28px; }
  .pf-car.empty { min-height: 90px; }
  .pe-nets { grid-template-columns: 1fr; }
  .pe-places { grid-template-columns: 1fr; }
  .pe-places .p1 { order: -1; }
}
.pe-in { height: 30px; border: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--line); background: var(--p-light); color: var(--ink); padding: 0 8px; font-size: 12px; min-width: 0; width: 100%; max-width: none; }
.pe-bio.pe-in { height: auto; padding: 6px 8px; }
.pe-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--b-hi); }
/* o <select> do pódio vira o dropdown do jogo (client/ui/dropdown.js): ocupa a linha inteira */
.pe-place .dd-btn { max-width: none; width: 100%; min-width: 0; min-height: 30px; }
.pe-place .dd-face { flex: 1; }

/* menu do jogador (botão direito ou toque longo no Pit Stop e no nick do chat) */
.pmenu { position: fixed; z-index: 60; display: flex; flex-direction: column; min-width: 180px; padding: 6px; gap: 2px; border-radius: 6px;
  background: var(--w-mid); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--w-light), 0 6px 0 #0008; }
.pm-nick { padding: 6px 8px 8px; font: 700 13px/1 var(--pixel); color: var(--gold); border-bottom: 2px solid var(--line); margin-bottom: 2px; }
.pm-item { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 4px; background: none; color: var(--ink); font-size: 13px; text-align: left; cursor: pointer; }
.pm-item:hover, .pm-item:focus-visible { background: var(--b-base); outline: none; }
.pm-item.danger { color: #ff8a7a; } .pm-item.danger:hover, .pm-item.danger:focus-visible { background: #d0302a; color: #fff; }
html.mobile .pm-item { min-height: 40px; font-size: 14px; }

.pe-saveerr { margin: 0; padding: 8px 12px; border-radius: 4px; background: #d0302a33; box-shadow: inset 0 0 0 2px #d0302a; color: #ffd0c8; }

/* selo ADM (administrador do jogo, docs/moderacao.md): vermelho com borda dourada, no chat, perfil, rankings e Pit Stop */
.vip-badge.cadm { background: #d0302a; color: #fff; box-shadow: inset 0 0 0 1px #ffd23a, 0 0 0 1px var(--line); }
.cmsg .cadm { font-size: 8px; padding: 2px 3px; margin: 0 4px 0 0; vertical-align: 1px; }
.rk-table .cadm { font-size: 8px; padding: 2px 3px; vertical-align: 1px; }
.pm-sep { margin: 4px 0 2px; padding: 4px 8px 2px; border-top: 2px solid var(--line); font: 700 9px/1 var(--pixel); letter-spacing: 1px; color: #ff8a7a; }
/* flex: none: o painel nunca encolhe dentro do perfil (flex em coluna); a altura é a do conteúdo, com os botões dentro */
.pf-mod { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 14px; border-radius: 6px; background: #d0302a1a; box-shadow: inset 0 0 0 2px #d0302a88; overflow: visible; }
.pf-mod .pf-h { color: #ff8a7a; }
.pf-mod .pf-modstate { margin: 0; font-size: 12px; color: var(--ink2); } .pf-mod .pf-modstate.bad { color: #ffb0a0; font-weight: 700; }
.pf-modbtns { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 3px; } /* 3 px: a sombra de baixo do botão */

.pf-car.tier-event { --tc: var(--event); } .pf-car.tier-champion { --tc: var(--champion); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--champion), inset 0 0 0 6px var(--champion2); }

/* ---------- amigos e bloqueio (client/friends.js, docs/amigos.md) ---------- */
.window[data-kind="friends"] { width: min(640px, 100%); }
.friends { display: flex; flex-direction: column; gap: 16px; }
.friends .hint { margin: 0; color: var(--ink2); font-size: 12px; line-height: 1.45; }
.fr-add { display: flex; gap: 8px; align-items: center; }
.fr-add .fr-in { flex: 1; height: 40px; font-size: 13px; }
.fr-sec { display: flex; flex-direction: column; gap: 6px; }
.fr-sec > .pf-h { margin-bottom: 2px; }
.fr-count { font: 600 11px/1 var(--sans); color: #7cf09a; letter-spacing: 0; text-transform: none; }
.fr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; background: #0a061450; box-shadow: inset 0 0 0 2px var(--p-dark); }
.fr-row.on { box-shadow: inset 0 0 0 2px #7cf09a55; }
.fr-row.req { padding: 6px 10px; }
.fr-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.fr-who .g-dot { margin-right: 0; flex: none; }
.fr-helmet { flex: none; display: grid; place-items: center; }
.fr-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fr-id small { color: var(--ink2); font-size: 11px; }
.fr-nick { font: 700 13px/1.2 var(--pixel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fr-acts { display: flex; gap: 6px; align-items: center; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.fr-acts .btn.small { min-height: 32px; font-size: 11px; padding: 0 8px; }
.fr-x { min-width: 32px; padding: 0 !important; }
.fr-wait { color: var(--ink2); font-size: 11px; }
.fr-empty { margin: 0; color: var(--ink2); font-size: 12px; }
.fr-blocked > summary { cursor: pointer; padding: 4px 0; }
.fr-blocked[open] > summary { margin-bottom: 4px; }
@media (max-width: 720px) {
  .fr-row:not(.req) { flex-wrap: wrap; }
  .fr-row:not(.req) .fr-acts { width: 100%; justify-content: flex-start; padding-left: 16px; }
  .fr-add .btn { padding: 0 10px; font-size: 12px; }
}
