/* Histórico e ranking (perfil.js): título laranja como o da loja de petiscos, abas em cima do painel branco. */
.pf-title { left: 116px; }
.pf-tabs { position: absolute; left: 50%; top: 14px; transform: translateX(-30%); display: flex; gap: 10px; }
.pf-tab, .pf-period { height: 44px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 10px; background: #fff; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); }
.pf-tab:hover, .pf-period:hover { background: #ffe7c7; }
.pf-tab.on, .pf-period.on { background: var(--orange); color: #5a2205; box-shadow: inset 0 -5px 0 rgba(0,0,0,.18); }
.pf-panel { top: 80px; height: 620px; padding: 18px 22px 22px; }
.pf-panel h3 { color: #6b3f12; margin: 18px 0 8px; }
.pf-panel h3 small { font-family: var(--body); font-size: 15px; font-weight: 800; color: var(--muted); margin-left: 8px; }
.pf-vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; font-weight: 800; font-size: 18px; text-align: center; }
.pf-vazio.curto { height: auto; padding: 60px 0 30px; }
.pf-vazio img { width: 96px; height: 96px; }
.pf-vazio .btn-orange { position: static; }
.pf-nota { font-size: 15px !important; color: var(--muted); font-weight: 700; margin: 14px 0 0; }
.pf-guest { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 3px solid var(--red); border-radius: 12px; background: #fff3f2; font-weight: 800; font-size: 15px; }
.pf-guest .btn-orange { position: static; flex: none; }

/* --- estatísticas: fileira de números --- */
.pf-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pf-tile { display: grid; grid-template-columns: 38px 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border: 3px solid #e4d3bf; border-radius: 12px; background: #fff8ee; min-width: 0; }
.pf-tile img { width: 38px; height: 38px; }
.pf-tile b { font-family: var(--display); font-size: 32px; line-height: 1; color: var(--ink); white-space: nowrap; }
.pf-tile span { grid-column: 1 / -1; margin-top: 6px; font-weight: 800; font-size: 15px; color: #6b3f12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tile i { grid-column: 1 / -1; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 2px; line-height: 1.25; }

/* batalhas: barra de partes (vitórias, empates, derrotas) com 2 px de respiro entre elas; a legenda traz os números */
.pf-bar { display: flex; gap: 2px; height: 22px; border-radius: 4px; overflow: hidden; }
.pf-bar i { display: block; min-width: 4px; }
.pf-bar .win, .pf-legend .win { background: #3f9a3a; }
.pf-bar .draw, .pf-legend .draw { background: #a9a29a; }
.pf-bar .loss, .pf-legend .loss { background: #d8433d; }
.pf-legend { display: flex; gap: 22px; margin-top: 8px; font-weight: 800; font-size: 15px; }
.pf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pf-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

.pf-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.pf-pets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-pets li { display: grid; grid-template-columns: 40px 120px 1fr 110px; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }
.pf-pets img { width: 40px; height: 40px; }
.pf-pets .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-pets .n { text-align: right; }
.pf-pets .n small { color: var(--muted); font-size: 12.5px; }
.pf-meter { height: 10px; border-radius: 0 4px 4px 0; background: #f1e4d3; overflow: hidden; }
.pf-meter i { display: block; height: 100%; background: var(--orange); border-radius: 0 4px 4px 0; }
.pf-tab-dados, .pf-rank { width: 100%; border-collapse: collapse; font-weight: 800; font-size: 15px; }
.pf-tab-dados th, .pf-rank th { text-align: left; font-size: 13px; color: var(--muted); padding: 4px 8px; border-bottom: 3px solid #e4d3bf; }
.pf-tab-dados td, .pf-rank td { padding: 6px 8px; border-bottom: 2px solid #f1e4d3; font-variant-numeric: tabular-nums; }
.pf-tab-dados td:not(:first-child), .pf-tab-dados th:not(:first-child), .pf-rank td:nth-child(n+3), .pf-rank th:nth-child(n+3) { text-align: right; }

/* --- partidas --- */
.pf-matches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-match { border: 3px solid #e4d3bf; border-radius: 12px; background: #fff8ee; }
.pf-match.win { border-color: #78c66b; } .pf-match.loss { border-color: #e98282; } .pf-match.live { border-color: var(--orange); }
.pf-row { width: 100%; display: grid; grid-template-columns: 112px 230px 130px 130px 76px 1fr 110px; align-items: center; gap: 10px; padding: 6px 12px; text-align: left; font-family: var(--body); font-weight: 800; font-size: 15px; color: var(--ink); }
.pf-row:hover { background: #fff1dc; border-radius: 10px; }
.pf-when { color: var(--muted); font-size: 13px; }
.pf-pack { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pf-pack em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; background: var(--ink); color: #fff; border-radius: 999px; padding: 1px 7px; align-self: flex-start; margin-top: 2px; }
.pf-pack small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-state { font-family: var(--display); font-size: 17px; }
.pf-match.win .pf-state { color: #2f7d2b; } .pf-match.loss .pf-state { color: #b8322d; } .pf-match.gone .pf-state { color: var(--muted); }
.pf-score { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.pf-score img { width: 20px; height: 20px; }
.pf-score img + img, .pf-score img:nth-of-type(2) { margin-left: 8px; }
.pf-turns { color: var(--muted); font-size: 13px; }
.pf-team { display: inline-flex; gap: 2px; min-width: 0; }
.pf-team img { width: 34px; height: 34px; }
.pf-team.small img { width: 28px; height: 28px; }
.pf-gains { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; }
.pf-gain { display: inline-flex; align-items: center; gap: 3px; }
.pf-gain img { width: 18px; height: 18px; }
.pf-battles { list-style: none; margin: 0; padding: 4px 12px 10px 132px; display: flex; flex-direction: column; gap: 3px; }
.pf-battles li { display: grid; grid-template-columns: 70px 100px 260px 1fr 110px; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.pf-battles .r { display: inline-flex; align-items: center; gap: 5px; }
.pf-battles .r img { width: 20px; height: 20px; }
.pf-battles li.win .r { color: #2f7d2b; } .pf-battles li.loss .r { color: #b8322d; } .pf-battles li.draw .r { color: var(--muted); }
.pf-battles .o { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-battles .g { text-align: right; color: var(--muted); font-size: 12.5px; }
.pf-more { position: static; display: block; margin: 12px auto 0; }

/* --- ranking --- */
.pf-periods { display: flex; gap: 8px; margin-bottom: 12px; }
.pf-period { height: 38px; font-size: 18px; }
.pf-rank .pos { width: 70px; white-space: nowrap; }
.pf-rank .pos .pf-medal { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
.pf-rank .nm em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; background: var(--orange); color: #5a2205; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.pf-rank tr.eu td { background: #ffe7c7; }
.pf-rank tr.gap td { text-align: center; color: var(--muted); border-bottom: 0; }
