.pes-top {display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.pes-top h2 {margin:6px 0;font:800 28px/1.1 "Barlow Condensed",sans-serif;color:#faf1df}
.pes-top p {margin:0;color:#c9c0ad;font-size:12px}
.pes-actions {display:flex;gap:8px;flex-wrap:wrap}
.pes-coverage {color:#c5b188;font-size:12px;margin:12px 0}
.pes-lineup {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pes-position {padding:13px;background:#171618;border:1px solid #55462c;border-radius:9px}
.pes-position h3 {margin:0 0 8px;color:#efd095;font:800 18px "Barlow Condensed",sans-serif}
.pes-players {display:grid;gap:6px}
.pes-player {min-width:0;display:flex;align-items:center;gap:9px;padding:9px;border-radius:6px;background:#262326}
.pes-player img {width:34px;height:34px;object-fit:contain}
.pes-player div {flex:1;min-width:0;overflow-wrap:anywhere}
.pes-player strong,.pes-player small {display:block}
.pes-player strong {font-size:12px}
.pes-player small,.pes-player-empty {font-size:10px;color:#c8baa2}
.pes-player b {color:#f5cd81;font:900 22px "Barlow Condensed",sans-serif}
.pes-lineup-empty {grid-column:1/-1;padding:15px;border:1px dashed #614d2f;border-radius:9px;color:#c8baa2}
#pes-importer .pes-label {display:grid;gap:6px;color:#efe1c3;font-size:12px}
#pes-importer input,#pes-importer select,.pes-round-field select {width:100%;min-width:0;padding:8px 9px;border:1px solid #806c46;border-radius:6px;background:#1b1917;color:#f7ebd4;font:inherit}
#pes-importer label {text-transform:none}
#pes-importer .pes-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
#pes-importer .pes-print-fields {grid-template-columns:repeat(3,minmax(0,1fr))}
#pes-importer .pes-score {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:17px 0}
#pes-importer fieldset {margin:15px 0;border:1px solid #594829;border-radius:8px;padding:10px 12px}
#pes-importer legend {font-weight:800;color:#ebc57d}
.pes-rating-wrap {overflow:auto;margin-bottom:8px}
.pes-rating-table {width:100%;border-collapse:collapse;min-width:435px}
.pes-rating-table th,.pes-rating-table td {text-align:left;padding:5px}
.pes-rating-table th:nth-child(2){width:101px}
.pes-rating-table th:nth-child(3){width:140px}
.pes-note-with-star{display:flex;align-items:center;gap:6px;min-width:116px}
#pes-importer .pes-note-with-star input{min-width:65px}
#pes-importer .pes-mvp-star{flex:none;width:36px;height:36px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#b9aa8c;font-size:27px;line-height:1;cursor:pointer}
#pes-importer .pes-mvp-star:hover,#pes-importer .pes-mvp-star:focus-visible{border-color:#e7be69;background:#bd8d241a;outline:2px solid #e7be6944;outline-offset:1px}
#pes-importer .pes-mvp-star[aria-pressed="true"]{color:#ffd45a;background:#bd8d242b;text-shadow:0 0 9px #d4a72c55}
#pes-importer .pes-mvp-star:disabled{cursor:default;opacity:.4}
#pes-admin-status {min-height:20px;margin:8px 0;color:#f4d399}
#pes-admin-status.pes-error {color:#ff9c99}
#pes-importer details {margin:12px 0}
#pes-importer summary {cursor:pointer;color:#f4d399}
@media(max-width:670px){
 .pes-lineup,#pes-importer .pes-fields,#pes-importer .pes-print-fields {grid-template-columns:1fr}
}

#pes-importer .pes-help {font-size:12px;color:#d5c5a8;line-height:1.6;margin:10px 0}
#pes-importer .pes-photo-upload {border:1px solid #594829;border-radius:8px;padding:12px}
#pes-importer textarea {width:100%;box-sizing:border-box;padding:10px;border:1px solid #806c46;border-radius:6px;background:#1b1917;color:#f7ebd4;font:inherit;resize:vertical}
#pes-importer .pes-label>select[id^="pes-roster-"] {margin-bottom:12px}
.pes-rating-table td:first-child {min-width:190px}
.pes-event-table {width:100%;min-width:1040px;border-collapse:collapse}
.pes-event-table th,.pes-event-table td {padding:6px;text-align:left;vertical-align:top}
.pes-event-table th {font-size:12px;color:#efd095}
.pes-event-table td:nth-child(2),.pes-event-table td:nth-child(6) {min-width:180px}
.pes-event-table td:nth-child(4),.pes-event-table td:nth-child(5) {width:85px}
#pes-goal-summary {color:#efd095;font-size:12px;line-height:1.5}
#pes-importer .pes-save {margin-top:16px}

.pes-rating-table tr.pes-review,.pes-event-table tr.pes-review {background:#6a48251f}
#pes-save-conflict{border:1px solid #806c46;border-radius:8px;padding:14px;margin:14px 0}
.pes-conflict-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pes-conflict-columns>div{min-width:0;padding:10px;background:#242019;border-radius:5px}
.pes-conflict-columns p{white-space:pre-line;overflow-wrap:anywhere;font-size:12px;line-height:1.6}
@media(max-width:670px){.pes-conflict-columns{grid-template-columns:1fr}}
[data-pes-played-only][hidden]{display:none!important}#pes-walkover-help{border:1px solid #93763f;padding:12px;border-radius:6px;background:#2c2418;color:#f1d49a}#pes-walkover{font-weight:700}

/* Seleção da rodada em campo: posições e retratos oficiais do PES. */
.pes-lineup{display:block}
.pes-pitch{position:relative;isolation:isolate;display:grid;gap:20px;max-width:1000px;margin:20px auto 0;padding:34px 26px 28px;border:1px solid #8a7748;border-radius:18px;overflow:hidden;background:repeating-linear-gradient(0deg,#123b2e 0,#123b2e 62px,#153f32 62px,#153f32 124px);box-shadow:inset 0 0 80px #031b13aa,0 14px 36px #0003}
.pes-pitch-markings{position:absolute;z-index:-1;inset:16px;border:1px solid #c4d5ba5c;border-radius:3px;pointer-events:none}.pes-pitch-half{position:absolute;left:0;right:0;top:50%;border-top:1px solid #c4d5ba5c}.pes-pitch-circle{position:absolute;width:25%;aspect-ratio:1;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #c4d5ba5c;border-radius:50%}.pes-pitch-circle:after{content:"";position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:50%;background:#c4d5ba88;transform:translate(-50%,-50%)}.pes-pitch-box{position:absolute;left:26%;width:48%;height:13%;border:1px solid #c4d5ba5c}.pes-pitch-box-top{top:-1px}.pes-pitch-box-bottom{bottom:-1px}.pes-pitch-goal{position:absolute;left:39%;width:22%;height:5%;border:1px solid #c4d5ba5c}.pes-pitch-goal-top{top:-1px}.pes-pitch-goal-bottom{bottom:-1px}.pes-pitch-formation{position:absolute;top:13px;left:29px;color:#b9d5c0b5;font-size:10px;font-weight:800;letter-spacing:.16em}
.pes-pitch-row{position:relative;display:grid;align-items:start;gap:12px;z-index:1}.pes-pitch-row-attack,.pes-pitch-row-midfield{grid-template-columns:repeat(3,minmax(0,1fr));padding:0 8%}.pes-pitch-row-defence{grid-template-columns:repeat(4,minmax(0,1fr))}.pes-pitch-row-keeper{grid-template-columns:minmax(0,1fr);justify-items:center}
.pes-pitch-player{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;min-width:0;max-width:190px;width:100%;margin:0 auto;color:#fff8e8}.pes-pitch-position{font-size:9px;font-weight:800;color:#c2d9c7;letter-spacing:.08em}.pes-pitch-face{position:relative;display:grid;place-items:center;width:124px;height:auto;margin:0 0 5px;border:2px solid #d3b66c;border-radius:12px;background:linear-gradient(145deg,#272a29,#111b17);box-shadow:0 5px 14px #0006}.pes-pitch-initials{grid-area:1/1;font-weight:800;font-size:25px;color:#cbb879}.pes-pitch-face>.pes-pitch-portrait{position:relative;inset:auto;grid-area:1/1;display:block;width:100%;height:auto;border-radius:9px;object-fit:contain;object-position:center}.pes-pitch-face>.pes-pitch-crest{position:absolute;z-index:2;right:-12px;bottom:-7px;width:44px;height:44px;object-fit:contain;filter:none;padding:0;background:transparent;border:0;border-radius:0;box-sizing:border-box}.pes-pitch-rating{position:absolute;z-index:2;top:-4px;right:-15px;min-width:35px;padding:3px 5px;border-radius:6px;background:#f0ce7d;border:1px solid #fff1bc;color:#211805;font:900 18px/1.1 "Barlow Condensed",sans-serif;box-shadow:0 2px 8px #0005}.pes-pitch-player>strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere;text-wrap:balance;max-width:100%;padding:4px 7px;border-radius:5px;background:#071d16bd;text-shadow:0 1px 2px #000}.pes-pitch-club{font-size:8px;line-height:1.2;color:#c6d8ca;overflow-wrap:anywhere;max-width:100%}.pes-pitch-empty .pes-pitch-face{border-style:dashed;border-color:#829b8866;color:#a2b3a6;box-shadow:none;background:#183b2b66}.pes-pitch-empty>strong{font-size:10px;font-weight:500;color:#c6d4c9;background:transparent}
@media(max-width:670px){.pes-pitch{gap:20px;padding:30px 9px 20px;border-radius:12px}.pes-pitch-markings{inset:9px}.pes-pitch-formation{left:17px;top:12px;font-size:8px}.pes-pitch-row{gap:5px}.pes-pitch-row-attack,.pes-pitch-row-midfield{padding:0 4%}.pes-pitch-face{width:min(72px,calc(100% - 8px));height:auto;border-width:1px}.pes-pitch-row-defence .pes-pitch-face{width:min(66px,calc(100% - 8px));height:auto}.pes-pitch-face>.pes-pitch-crest{width:28px;height:28px;right:-7px;bottom:-6px;padding:0;border-radius:0}.pes-pitch-rating{font-size:14px;min-width:27px;right:-8px;padding:2px 3px}.pes-pitch-player>strong{font-size:10px;padding:3px 4px}.pes-pitch-club{font-size:7px}.pes-pitch-position{font-size:8px}.pes-pitch-player{gap:4px}.pes-pitch-initials{font-size:19px}}
@media(max-width:380px){.pes-pitch-face{width:min(64px,calc(100% - 8px));height:auto}.pes-pitch-row-defence .pes-pitch-face{width:min(60px,calc(100% - 8px));height:auto}.pes-pitch-player>strong{font-size:9px}.pes-pitch-club{font-size:6px}.pes-pitch-row{gap:3px}}

.pes-pitch-face:not(:has(.pes-pitch-portrait:not([hidden]))){aspect-ratio:4/5}
