/* PES 2013 pages (own stylesheet, loaded only on /pes13/ pages; site.css stays untouched).
   Look taken from the PES 2013 menus: blue-lit stadium behind dark glass panels,
   gun-metal tabs and a cyan glow for the selected item. Art: /assets/pes13/ui/ (from the game's dt06.img). */

body.theme-pes13 {
  --bg: #060c16; --panel: rgba(17, 23, 32, .84); --panel-2: rgba(36, 46, 60, .72); --line: rgba(150, 190, 230, .16);
  --text: #eef4fb; --muted: #93a5bb; --accent: #27c3f3; --accent-2: #7fe1ff; --accent-ink: #03131f;
  --win: #27c3f3; --glow: 0 0 18px rgba(39, 195, 243, .45);
  background: #060c16; color: var(--text);
}
/* fixed backdrop: the menu stadium, darkened, with the hex grid of the menus on top */
body.theme-pes13::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 12, 22, .55) 0%, rgba(6, 12, 22, .82) 38%, #060c16 100%),
    url(/assets/pes13/ui/stadium.jpg) center top / cover no-repeat; }
body.theme-pes13::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background: url(/assets/pes13/ui/hex.png) 0 0 / 220px repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%); }
/* light beams in the empty space left and right of the content (wide screens only) */
.pside { display: none; }
@media (min-width: 1440px) {
  .pside { display: block; position: fixed; top: 0; bottom: 0; z-index: -1; pointer-events: none;
    width: calc((100vw - 1192px) / 2); opacity: .55; background-size: cover; background-repeat: no-repeat; }
  .pside.l { left: 0; background-image: url(/assets/pes13/ui/beams_l.jpg); background-position: right top;
    -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent 100%); mask-image: linear-gradient(90deg, #000 20%, transparent 100%); }
  .pside.r { right: 0; background-image: url(/assets/pes13/ui/beams_r.jpg); background-position: left top;
    -webkit-mask-image: linear-gradient(270deg, #000 20%, transparent 100%); mask-image: linear-gradient(270deg, #000 20%, transparent 100%); }
}

/* dark glass panels with the diagonal sheen of the game menus */
body.theme-pes13 :is(.panel, .stat, .lcard, .tcard2, .dvcard, .step, .board, .seeker, .pod) {
  background-color: var(--panel);
  background-image: linear-gradient(118deg, rgba(255, 255, 255, .055) 0%, rgba(255, 255, 255, .02) 38%, transparent 38.2%);
  border-color: var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 24px rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.theme-pes13 .stat::before { background: var(--accent); box-shadow: var(--glow); }
body.theme-pes13 .pod.p1 { background-color: rgba(60, 48, 16, .78); border-color: rgba(242, 183, 72, .45); }
body.theme-pes13 :is(.lbtable, .ttable) thead th { background: rgba(255, 255, 255, .04); color: var(--muted); }
body.theme-pes13 .lbtable tbody tr:hover td { background: rgba(39, 195, 243, .07); }
body.theme-pes13 .lbtable tr.top td { background: rgba(39, 195, 243, .05); }
body.theme-pes13 .mrow:hover { background: rgba(39, 195, 243, .06); }
body.theme-pes13 input, body.theme-pes13 select { background: rgba(10, 16, 24, .85); color: var(--text); border-color: var(--line); }
body.theme-pes13 .btn:not(.primary) { background: linear-gradient(180deg, #3a4452, #1d242e); border-color: rgba(255, 255, 255, .14); color: var(--text); }
body.theme-pes13 .btn.primary { background: linear-gradient(180deg, #6fdcff, #13a6dc); border-color: #6fdcff; color: var(--accent-ink); box-shadow: var(--glow); }
body.theme-pes13 h1 em { color: var(--accent); text-shadow: 0 0 22px rgba(39, 195, 243, .35); }
body.theme-pes13 h2::before { box-shadow: var(--glow); }
body.theme-pes13 footer { background: rgba(4, 8, 14, .85); border-top: 1px solid var(--line); }

main.pes13 { padding-bottom: 40px; position: relative; }

/* sub-nav: gun-metal tabs, cyan glow on the active one (PES 2013 menu bar) */
.pnav { margin-top: 0; }
body.theme-pes13 .pnav a { color: #c9d4e2; border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0;
  background: linear-gradient(180deg, #46505e 0%, #262d38 55%, #1a2029 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
body.theme-pes13 .pnav a:not(.on):hover { color: #fff; background: linear-gradient(180deg, #56616f 0%, #2d3541 55%, #1d242d 100%); }
body.theme-pes13 .pnav a.on { color: var(--accent-ink); border-color: #8fe6ff;
  background: linear-gradient(180deg, #a6efff 0%, #3ccaf5 45%, #0f9fd6 100%); box-shadow: 0 0 22px rgba(39, 195, 243, .55), inset 0 1px 0 #fff; }
body.theme-pes13 .pnav .rule { background: linear-gradient(90deg, transparent, #27c3f3 12%, #7fe1ff 50%, #27c3f3 88%, transparent); box-shadow: 0 0 14px rgba(39, 195, 243, .7); }

/* beta note */
.pbeta { margin-top: 22px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; color: var(--text);
  background: rgba(245, 184, 75, .1); border: 1px solid rgba(245, 184, 75, .4); }
.pbeta b { color: #f5b84b; }

/* region / kind tabs */
.rtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.rtabs.sm { margin: 0; }
.rtab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 700 14px/1 var(--body); color: #c9d4e2; border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, #3a4452, #1d242e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.rtab i { font-style: normal; font-size: 11px; padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, .35); color: var(--muted); }
.rtab:hover { color: #fff; }
.rtab.on { color: var(--accent-ink); border-color: #8fe6ff; background: linear-gradient(180deg, #a6efff, #2cc0f0 55%, #0f9fd6);
  box-shadow: 0 0 18px rgba(39, 195, 243, .5); }
.rtab.on i { background: rgba(3, 19, 31, .25); color: var(--accent-ink); }
.rtab .rmap { width: 18px; height: 18px; object-fit: cover; border-radius: 4px; }
.rtab .rn small { display: none; }
.rtabs.sm .rtab { padding: 6px 10px; font-size: 12px; }
#tkinds .rtab .rmap { display: none; }
/* big region cards on the leaderboard: the continent tiles of the game's region select */
.rtabs.big { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rtabs.big .rtab { position: relative; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border-radius: 12px; overflow: hidden; text-align: left; }
.rtabs.big .rmap { width: 100%; height: 92px; border-radius: 0; object-fit: cover; object-position: center 40%; filter: saturate(.9) brightness(.9); }
.rtabs.big .rtab[data-r="global"] .rmap { object-fit: contain; padding: 14px; background: radial-gradient(circle, #1d3550, #0b1420 70%); }
.rtabs.big .rn { padding: 9px 12px 10px; font: 800 17px/1.05 var(--head); letter-spacing: .03em; text-transform: uppercase; }
.rtabs.big .rn small { display: block; margin-top: 3px; font: 600 11px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.rtabs.big .rtab.on .rn small { color: rgba(3, 19, 31, .75); }
.rtabs.big .rtab i { position: absolute; top: 8px; right: 8px; background: rgba(3, 10, 18, .75); color: #fff; }
.rtabs.big .rtab.on .rmap { filter: none; }

/* team badge: logo, flag or initials */
.crest.pbadge { background: rgba(39, 195, 243, .1); border-color: rgba(39, 195, 243, .3); }
.crest.pbadge b { color: var(--accent); }
.crest.pbadge img { padding: 0; background: transparent; }
.crest.pbadge img.tflag { inset: 18%; width: 64%; height: 64%; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line); }
.crest.pbadge:has(img.tflag) { background: var(--panel-2); border-color: var(--line); }

/* division badges */
.divb { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; }
.divb.sm { width: 22px; height: 22px; }
.lbtable td.pts .divb { margin-right: 6px; }
.lbtable td:nth-child(2) { width: 30px; padding-right: 0; }
.grank { margin-left: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.divkey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.dvcard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.dvcard img { width: 64px; height: 64px; object-fit: contain; }
.dvcard b { font: 800 18px/1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.dvcard span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dvlist .dvrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.dvlist .dvrow:first-child { border-top: 0; }
.dvrow img { width: 36px; height: 36px; object-fit: contain; }
.dvrow b { flex: 1; font: 800 17px/1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.dvrow span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* player head: division plate on the right */
.phead .pdiv { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pdiv img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(39, 195, 243, .35)); }
.pdiv b { font: 800 16px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.pdiv span { color: var(--muted); font-size: 12px; font-weight: 700; }

/* most used teams: win % bar */
.trow .tn small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.wbar { flex: none; width: 90px; height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.wbar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.trow .wp { flex: none; width: 42px; text-align: right; font: 800 17px/1 var(--head); font-variant-numeric: tabular-nums; }

/* match page: team strength chip */
.tstr { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 6px; font: 700 12px/1 var(--body);
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); vertical-align: middle; }

/* teams page */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 10px; }
.tcard2 { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.tcard2 .tpos { width: 28px; flex: none; color: var(--muted); font: 700 12px/1 var(--body); text-align: right; font-variant-numeric: tabular-nums; }
.tcard2 .crest.lg { width: 46px; height: 46px; }
.tinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.tinfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.sbar { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.sbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.tval { flex: none; font: 800 24px/1 var(--head); font-variant-numeric: tabular-nums; color: var(--accent); }
#tform .rtabs { margin: 0; }

/* friendly rooms */
.prooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.proom .rname { font-size: 19px; margin-bottom: 10px; }

/* match + profile bits */
.pnote { margin-top: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.pnote b { color: var(--text); }
.pnote.legal { margin-top: 30px; font-size: 12px; }
.pintro { padding: 6px 16px 12px; }
.pintro > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pintro > div:first-child { border-top: 0; }
.pintro small { color: var(--muted); font-weight: 600; }
.pintro p { margin: 10px 0 0; color: var(--muted); }

@media (max-width: 860px) {
  .rtabs.big { grid-template-columns: repeat(3, 1fr); }
  .divkey { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .divkey { grid-template-columns: repeat(2, 1fr); }
  .phead { flex-wrap: wrap; }
  .pdiv img { width: 60px; height: 60px; }
  .wbar { width: 56px; }
  .tgrid { grid-template-columns: 1fr; }
  .rtab { padding: 8px 11px; font-size: 13px; }
  .rtabs.big { grid-template-columns: repeat(2, 1fr); }
  .rtabs.big .rmap { height: 64px; }
}

/* match statistics (v4) */
.mstats { padding: 14px 18px; display: grid; gap: 10px; }
.srow { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 12px; }
.srow > b { font: 800 20px/1 var(--head); font-variant-numeric: tabular-nums; }
.srow > b:last-child { text-align: right; }
.sbar2 { position: relative; display: flex; justify-content: space-between; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.sbar2 i { display: block; height: 100%; background: linear-gradient(90deg, #0f9fd6, #27c3f3); opacity: .55; }
.sbar2 i.r { background: linear-gradient(90deg, #8b95a3, #c9d4e2); opacity: .35; }
.sbar2 span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ptable td, .ptable th { padding: 7px 10px; font-size: 13px; }
.ptable td:first-child { font-weight: 700; }
.prt.hi { color: #34d399; } .prt.lo { color: #f87171; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.ptable td:first-child, .ptable th:first-child { text-align: left; }
.ptable td, .ptable th { text-align: center; }
.board .pnote img.divb { position: static !important; display: inline-block; width: 20px; height: 20px; margin: 0 2px; vertical-align: -5px; }

/* ---- v5: goals, line-ups, stats page ---- */
/* live card: goals under the score */
.plgoals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.plgoals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.plgoals li { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.plgoals li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.plgoals li span { color: var(--accent); font: 800 14px/1 var(--head); }
.plgoals .away li { flex-direction: row-reverse; text-align: right; }
.plgoals .ev.goal { font-size: 12px; }
/* goal feeds */
.gfeed { padding: 4px 0; }
.grow { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.grow:first-child { border-top: 0; }
.grow:hover { background: rgba(39, 195, 243, .06); }
.grow .gn { display: flex; flex-direction: column; min-width: 0; }
.grow .gn b { font-weight: 700; }
.grow .gn em { font-style: normal; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.grow .gby { color: var(--text); font-size: 13px; font-weight: 600; text-align: right; }
.grow .gby small { display: block; color: var(--muted); font-weight: 500; }
.grow .gmin { font: 800 22px/1 var(--head); color: var(--accent); text-align: right; min-width: 52px; }
.grow .gmin small { display: block; margin-top: 3px; font: 600 11px/1 var(--body); color: var(--muted); }
.crest.sm { width: 20px; height: 20px; font-size: 8px; }
/* faces in the theme */
body.theme-pes13 .face { background: radial-gradient(circle at 50% 35%, #2b3b50, #121a25 70%); border: 1px solid var(--line); }
/* positions */
.ppos { display: inline-block; min-width: 34px; padding: 3px 5px; border-radius: 5px; font: 800 11px/1 var(--body); letter-spacing: .03em; text-align: center; color: #fff; }
.ppos.pg { background: #b7791f; } .ppos.pd { background: #2563eb; } .ppos.pm { background: #059669; } .ppos.pf { background: #dc2626; }
.pcell { display: flex; align-items: center; gap: 9px; text-align: left; }
.pcell > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.pcell .ev { font-size: 10px; margin-top: 2px; }
.ptable tr.subin td { opacity: .82; }
.ptable tr.motm td { background: rgba(245, 184, 75, .08); }
.ptable tr.motm td:first-child { box-shadow: inset 3px 0 0 #f5b84b; }
/* player of the match */
.motm { display: flex; align-items: center; gap: 18px; padding: 16px 20px; flex-wrap: wrap; border-color: rgba(245, 184, 75, .4) !important; }
.motm > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 180px; }
.motm small { color: #f5b84b; font: 700 11px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; }
.motm b { font: 800 26px/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.motm span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.motm .face.lg { width: 72px; height: 72px; border-color: rgba(245, 184, 75, .55); }
.mnums { display: flex; gap: 22px; }
.mnums > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mnums b, .mnums .prt { font: 800 24px/1 var(--head); }
.mnums small { color: var(--muted); letter-spacing: .04em; }
/* line-ups on a pitch */
.pitchwrap { padding: 12px; }
.pitchhead { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.pitchhead span { display: flex; align-items: center; gap: 8px; }
.pitch { position: relative; aspect-ratio: 105 / 62; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .28);
  background: repeating-linear-gradient(90deg, #1f6b3a 0 9.09%, #1b6034 9.09% 18.18%); box-shadow: inset 0 0 60px rgba(0, 0, 0, .45); }
.pitch .pl { position: absolute; border: 2px solid rgba(255, 255, 255, .3); }
.pitch .pl.half { left: 50%; top: 0; bottom: 0; border-width: 0 0 0 2px; }
.pitch .pl.circle { left: 50%; top: 50%; width: 17.4%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.pitch .pl.box { top: 21%; bottom: 21%; width: 15.7%; } .pitch .pl.box.l { left: -2px; } .pitch .pl.box.r { right: -2px; }
.pitch .pl.six { top: 37%; bottom: 37%; width: 5.2%; } .pitch .pl.six.l { left: -2px; } .pitch .pl.six.r { right: -2px; }
.pnode { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 92px; text-align: center; z-index: 1; }
.pnode .face { width: 38px; height: 38px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .7); }
.pnode b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11px/1.2 var(--body); color: #fff;
  text-shadow: 0 1px 3px #000, 0 0 6px rgba(0, 0, 0, .8); text-transform: uppercase; }
.pnode span { display: flex; align-items: center; gap: 2px; }
.pnode .prt { font: 800 11px/1 var(--body); padding: 2px 4px; border-radius: 4px; background: rgba(3, 10, 18, .78); color: #fff; }
.pnode .prt.hi { color: #34d399; } .pnode .prt.lo { color: #f87171; }
.pnode .ev.goal { font-size: 11px; }
.psubs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; font-size: 13px; }
.psubs > div { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.psubs .r { justify-content: flex-end; }
.psub { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 99px; background: var(--panel-2); }
.psub .face { width: 24px; height: 24px; }
@media (max-width: 720px) {
  .pnode { width: 60px; } .pnode .face { width: 26px; height: 26px; } .pnode b { font-size: 9px; } .pnode .ev.goal { display: none; }
  .grow { grid-template-columns: auto 1fr auto; } .grow .gby { display: none; }
  .mnums { gap: 14px; } .motm b { font-size: 21px; }
}
@media (max-width: 480px) { .pnode b { display: none; } }
/* stats page */
.tpop { display: inline-flex; align-items: center; gap: 8px; font-size: .8em; }
.scorers.one { grid-template-columns: 1fr; padding: 4px 16px; }
.scorers.one li:last-child { border-bottom: 0; }
.scorers .g { color: var(--accent); }
.scorers .nm b { font-weight: 700; }
body.theme-pes13 :is(.lboard, .tcard) { background-color: var(--panel); border-color: var(--line);
  background-image: linear-gradient(118deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .02) 38%, transparent 38.2%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lboard li .av { flex: none; }
.lboard li a.plink { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
p.sub { margin: -6px 0 10px; color: var(--muted); font-size: 13px; }
body.theme-pes13 .showmore { background: linear-gradient(180deg, #2a323e, #161c25); border-color: var(--line); color: var(--text); border-radius: var(--radius); }
.tcell { display: inline-flex; align-items: center; gap: 8px; }
.ptable tr.potm td { background: rgba(245, 184, 75, .08); }
.ptable tr.potm td:first-child { box-shadow: inset 3px 0 0 #f5b84b; }

/* ---- v6: mini table, searching, leagues, kits, balls, champions ---- */
.ptsw { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ptsw b { font: 800 21px/1 var(--head); color: var(--accent); font-variant-numeric: tabular-nums; }
img.divb.mid { display: inline-block; width: 30px; height: 30px; margin: 0 !important; vertical-align: middle; }
.lbmini { width: 100%; }
.lbmini td, .lbmini th { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
.lbmini td:nth-child(1), .lbmini th:nth-child(1) { width: 44px; text-align: center; }
.lbmini td:nth-child(3), .lbmini th:nth-child(3), .lbmini td:nth-child(4), .lbmini th:nth-child(4) { width: 56px; text-align: center; }
.lbmini td:nth-child(3), .lbmini td:nth-child(4) { font: 700 16px/1 var(--body); font-variant-numeric: tabular-nums; }
.lbmini td:last-child, .lbmini th:last-child { width: 108px; text-align: right; }
.lbmini td:nth-child(2) .lbp span { overflow: hidden; text-overflow: ellipsis; max-width: 190px; white-space: nowrap; }
.lbmini .medal.sm { width: 24px; height: 30px; }
/* quick match queue */
.seeker .spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(39, 195, 243, .25); border-top-color: var(--accent); animation: pspin 1s linear infinite; }
@keyframes pspin { to { transform: rotate(360deg); } }
/* league logos */
.lglogo { display: inline-block; width: 28px; height: 28px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.lglogo.txt { display: inline-grid; place-items: center; border-radius: 7px; background: var(--panel-2); font: 800 10px/1 var(--body); color: var(--accent); }
.lglogo.xl { width: 84px; height: 84px; }
.lglogo.xl.txt { font-size: 22px; }
.lgchips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.lgchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; cursor: pointer; font: 700 13px/1 var(--body);
  color: #c9d4e2; border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(180deg, #2f3846, #1a2029); }
.lgchip:first-child { padding-left: 12px; }
.lgchip i { font-style: normal; font-size: 11px; padding: 3px 6px; border-radius: 99px; background: rgba(0, 0, 0, .35); color: var(--muted); }
.lgchip:hover { color: #fff; border-color: rgba(127, 225, 255, .5); }
.lgchip.on { color: var(--accent-ink); border-color: #8fe6ff; background: linear-gradient(180deg, #a6efff, #2cc0f0 55%, #0f9fd6); box-shadow: 0 0 16px rgba(39, 195, 243, .45); }
.lgchip.on i { background: rgba(3, 19, 31, .25); color: var(--accent-ink); }
.lghead { display: flex; align-items: center; gap: 18px; padding: 14px 20px; margin-bottom: 14px; }
.lghead h3 { margin: 0; font: 800 26px/1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.lghead small { color: var(--muted); }
/* kits */
.tkits { display: flex; gap: 2px; flex: none; }
img.kit { width: 40px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); transition: transform .15s; }
.tcard2:hover img.kit { transform: scale(1.35); }
img.kit.sm { width: 30px; height: 33px; }
/* balls: the game's own preview banners (ballserv) */
.balls { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.bcard { overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #fff; line-height: 0; transition: transform .15s, box-shadow .15s; }
.bcard img { width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; }
.bcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.bcard.nobk { grid-column: 1 / -1; max-width: 640px; border: 2px solid var(--accent); box-shadow: 0 0 22px rgba(39, 195, 243, .35); }
/* monthly champions */
.crace { display: flex; align-items: center; gap: 22px; padding: 18px 24px; margin-bottom: 8px; flex-wrap: wrap;
  border-color: rgba(245, 192, 75, .4) !important; background-color: rgba(48, 38, 14, .55) !important; }
img.ctrophy { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(245, 192, 75, .35)); }
img.ctrophy.sm { width: 46px; height: 46px; position: absolute; top: 8px; right: 8px; opacity: .9; }
.cinfo { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.cinfo small { color: #f5c04b; font: 700 12px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; }
.cinfo b { display: flex; align-items: center; gap: 8px; font: 800 32px/1 var(--head); text-transform: uppercase; }
.cinfo span { color: var(--muted); }
.cclock { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.cclock > b { display: flex; flex-direction: column; align-items: center; font: 800 36px/1 var(--head); color: #f5c04b; }
.cclock > b small { font: 700 11px/1.4 var(--body); color: var(--muted); text-transform: uppercase; }
.cclock > span { width: 100%; color: var(--muted); font-size: 12px; text-align: center; }
body.theme-pes13 .champ { background-color: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.ctitles { margin-left: 8px; font-size: 12px; font-weight: 700; color: #f5c04b; }
.champ-tag { color: #1a1204 !important; background: linear-gradient(180deg, #ffe08a, #f5b84b) !important; border: 0 !important; font-weight: 800; }
@media (max-width: 720px) { .tkits { display: none; } .lbmini td:nth-child(2) .lbp span { max-width: 110px; } .cinfo b { font-size: 24px; } }
.lgstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lgcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 14px; text-align: center; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.lgcard:hover { border-color: rgba(127, 225, 255, .5); }
.lgcard .rk { position: absolute; top: 10px; left: 12px; font: 800 18px/1 var(--head); color: var(--accent); }
.lgcard b { font: 800 18px/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.lgcard small { color: var(--muted); font-size: 12px; }
.lglogo.lg { width: 64px; height: 64px; }
.lglogo.lg.txt { font-size: 16px; }
/* v8: cards */
.ev.card { display: inline-block; width: 9px; height: 12px; border-radius: 2px; vertical-align: -1px; margin: 0 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); font-size: 0; }
.ev.card.yel { background: #f5c518; }
.ev.card.red { background: #e0303a; }
.tlbox .ev.card { width: 11px; height: 15px; margin: 0 6px 0 2px; flex: none; }
.pcell .ev.card { margin-top: 0; }
.tl li.tlcard .tlbox b { font-weight: 500; }
/* v8: banner melts into the page: no black box, the art itself fades out at the bottom */
body.theme-pes13 .ghero { background: transparent; }
body.theme-pes13 .ghero::after { display: none; }
body.theme-pes13 .ghero .art {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, .55) 74%, rgba(0, 0, 0, .18) 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, .55) 74%, rgba(0, 0, 0, .18) 88%, transparent 100%); }
/* v11: leaderboard podium like the FIFA 09 page (main team crest, two more beside it) */
.mpod { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 10px; align-items: end; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.mp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 26px 8px 12px; border-radius: 14px;
  text-decoration: none; color: var(--text); text-align: center; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); border: 1px solid rgba(190, 200, 215, .35); }
.mp.p1 { padding-top: 30px; padding-bottom: 16px; border-color: rgba(242, 183, 72, .7); background: linear-gradient(180deg, rgba(242, 183, 72, .16), rgba(242, 183, 72, .03)); box-shadow: 0 0 22px rgba(242, 183, 72, .12); }
.mp.p3 { border-color: rgba(205, 127, 50, .6); }
.mp > .medal { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); }
.mpt { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; width: 100%; }
.mpt .mside { justify-self: center; opacity: .9; }
.mpt .mside .crest { width: 22px; height: 22px; }
.mpt .mmain .crest { width: 54px; height: 54px; }
.mp.p1 .mpt .mmain .crest { width: 64px; height: 64px; }
.mp .avatar.mpav { width: 40px; height: 40px; min-width: 40px; font-size: 16px; margin-top: 2px; }
.mp.p1 .avatar.mpav { width: 48px; height: 48px; min-width: 48px; font-size: 19px; }
.mpn { display: flex; align-items: center; gap: 5px; max-width: 100%; font-size: 14px; }
.mpn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpr { font: 800 26px/1 var(--display, inherit); font-style: normal; color: var(--accent); letter-spacing: .5px; }
.mp.p1 .mpr { font-size: 32px; color: #f2b748; }
.mp small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lbtable td.mteam .crest { width: 24px; height: 24px; }
.pod .mpt { width: 70%; margin: 0 auto 6px; }
@media (max-width: 560px) { .mpod { gap: 6px; padding: 12px 8px; } .mpt .mmain .crest { width: 40px; height: 40px; } .mp.p1 .mpt .mmain .crest { width: 46px; height: 46px; }
  .mpt .mside { display: none; } .mpr { font-size: 22px; } .mp.p1 .mpr { font-size: 26px; } .mp small { white-space: normal; } }
.mpt .crest { margin: 0; }
.lbmini .form .f { width: 17px; height: 17px; font-size: 10px; }
.lbmini td.pts b { font-size: 17px; }
.lbmini { table-layout: auto; width: 100%; }
.lbmini th, .lbmini td { padding-left: 8px; padding-right: 8px; }
.lbmini td:nth-child(2) .lbp span { max-width: 120px; }
@media (max-width: 560px) { .mpt { display: flex; justify-content: center; } }

/* v12: game open + how to play (download card, requirements, NOBK keys, FAQ) */
.pbeta.open { background: rgba(39, 195, 243, .09); border-color: rgba(39, 195, 243, .45); }
.pbeta.open b { color: var(--accent-2); }
.pbeta.open a { color: var(--accent-2); font-weight: 700; }
.pdl { position: relative; display: flex; align-items: center; gap: 22px; margin: 26px 0 8px; padding: 22px 24px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid rgba(127, 225, 255, .35); isolation: isolate;
  background: linear-gradient(90deg, rgba(6, 12, 22, .94) 0%, rgba(6, 12, 22, .78) 55%, rgba(6, 12, 22, .45) 100%),
              url(/assets/pes13/banner.jpg?v=12) center 35% / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(39, 195, 243, .08), 0 10px 34px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .1); }
.pdl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: -1;
  background: linear-gradient(90deg, transparent, #27c3f3 15%, #7fe1ff 50%, #27c3f3 85%, transparent); box-shadow: 0 0 14px rgba(39, 195, 243, .8); }
.pdl-logo { width: 150px; height: auto; flex: none; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
.pdl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pdl-text b { font-size: 21px; letter-spacing: .01em; }
.pdl-text b em { font-style: normal; color: var(--accent); margin-left: 4px; font-size: 15px; vertical-align: 2px;
  padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(39, 195, 243, .5); background: rgba(39, 195, 243, .1); }
.pdl-text span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.pdl-text .pdl-up { color: #c9d4e2; font-size: 13px; }
.pdl-btn { flex: none; font-size: 17px; padding: 13px 30px; }
.preq { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.preq > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); border-top: 2px solid rgba(39, 195, 243, .6); }
.preq b { font-size: 15px; }
.preq span { color: var(--muted); font-size: 13px; }
.psteps .step::before { text-shadow: 0 0 18px rgba(39, 195, 243, .45); }
.psteps .act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.psteps code, .pfaq code, .pkeys code, main.pes13 .sub code { font-size: .92em; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.pkeys { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.pkeys > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); border-top: 2px solid rgba(39, 195, 243, .6); }
.pkeys .keys { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.pkeys .keys i { font-style: normal; color: var(--muted); }
.pkeys kbd { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 7px;
  font: 700 14px/1 inherit; color: #eaf7ff; border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(180deg, #4a5564 0%, #262d38 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 0 #0b1018; }
.pkeys b { font-size: 15px; }
.pkeys small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.pfaq { display: flex; flex-direction: column; gap: 8px; }
.pfaq details { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.pfaq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--accent); }
.pfaq details[open] summary::after { content: "−"; }
.pfaq details[open] { border-color: rgba(39, 195, 243, .35); }
.pfaq p { margin: 0; padding: 0 16px 16px; color: #c3cfdd; line-height: 1.55; }
.pfaq a, .psteps a:not(.btn) { color: var(--accent-2); }
@media (max-width: 720px) {
  .pdl { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .pdl-logo { width: 120px; }
  .pdl-btn { align-self: stretch; text-align: center; justify-content: center; }
}
/* v12: stats page footballer cards, two by two and the same height */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: stretch; }
.fgrid .fcard { display: flex; flex-direction: column; min-width: 0; }
.fgrid .fcard .panel { flex: 1; }
.fgrid .fcard .sub { min-height: 1.4em; }
.fgrid .cards2 { white-space: nowrap; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr; } }
/* v13: hero logo without the white plate (transparent logo, soft light behind it so the black letters stay readable) */
body.theme-pes13 .ghero .plate.pclear { background: none; box-shadow: none; padding: 0;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .9)) drop-shadow(0 0 16px rgba(255, 255, 255, .55)) drop-shadow(0 8px 20px rgba(0, 0, 0, .35)); }
/* v16: leaderboard podium polish: bigger medal, captioned most-played teams, big division badge next to the rating, W/D/L chips */
.podium .pod { gap: 8px; }
.podium .pod > .medal { width: 40px; height: 50px; top: 10px; left: 14px; }
.podium .pod .ptm { width: 78%; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 4px; }
.podium .pod .ptm .mpt { width: 100%; margin: 0; }
.podium .pod .ptm .mside .crest { width: 30px; height: 30px; }
.podium .pod .ptm .mmain .crest { width: 52px; height: 52px; }
.podium .pod.p1 .ptm .mmain .crest { width: 60px; height: 60px; }
.podium .pod .ptm small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.podium .pod .pmeta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; }
.podium .pod .pdv { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.podium .pod .pdv .divb.lg { width: 38px; height: 38px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.podium .pod .pdv span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.podium .pod .pdv small, .podium .pod .prt small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.podium .pod .pdv b { font: 800 22px/1 var(--head); color: var(--text); }
.podium .pod .prt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.podium .pod .prt b { font: 800 30px/1 var(--head); color: var(--text); }
.podium .pod.p1 .prt b { font-size: 36px; color: #f5c04b; text-shadow: 0 0 18px rgba(245, 192, 75, .35); }
.podium .pod .pwdl { display: flex; gap: 6px; justify-content: center; margin-top: 2px; }
.podium .pod .pwdl span { min-width: 44px; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.podium .pod .pwdl b { font: 800 16px/1 var(--head); margin-right: 3px; color: var(--text); }
.podium .pod .pwdl .w { border-color: rgba(34, 197, 94, .45); } .podium .pod .pwdl .w b { color: #4ade80; }
.podium .pod .pwdl .l { border-color: rgba(239, 68, 68, .4); } .podium .pod .pwdl .l b { color: #f87171; }
@media (max-width: 720px) {
  .podium .pod .pmeta { flex-direction: column; gap: 6px; }
  .podium .pod .ptm small { display: none; }
  .podium .pod .pwdl span { min-width: 0; padding: 3px 6px; }
  .podium .pod > .medal { width: 26px; height: 33px; left: 6px; top: 6px; }
  .podium .pod .ptm { margin-top: 18px; }
  .podium .pod .pdv { padding: 3px 8px 3px 4px; gap: 4px; }
  .podium .pod .pdv small { display: none; }
  .podium .pod .pdv .divb.lg { width: 28px; height: 28px; }
  .podium .pod .pdv b { font-size: 18px; }
  .podium .pod .prt b { font-size: 24px; } .podium .pod.p1 .prt b { font-size: 28px; }
  .podium .pod .prt { align-items: center; }
}

/* v19 player page: MMR box like the FIFA 09 profile (division emblem, MMR, peak/rank, rating line, streaks) */
.p13mmr { margin: 18px 0; }
.p13mmr[class*="pdv"] { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--dvc) 40%, var(--line));
  background: radial-gradient(520px 300px at 110px 50%, color-mix(in srgb, var(--dvc) 26%, transparent), transparent 70%),
              linear-gradient(90deg, color-mix(in srgb, var(--dvc) 9%, var(--panel)), var(--panel) 60%); }
.p13mmr .mmrmain b { font: 800 46px/1 var(--head); }
.p13mmr[class*="pdv"] .spark polyline { stroke: var(--dvc); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--dvc) 70%, transparent)); }
.p13mmr[class*="pdv"] .mmrside b:not(.streak):not(.bad) { color: #fff; }
.p13mmr .dvhero { display: flex; align-items: center; gap: 22px; }
.p13mmr .dvemb { position: relative; width: 168px; height: 168px; flex: 0 0 auto; }
.p13mmr .dvemb::before { content: ""; position: absolute; inset: -6%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--dvc) 60%, transparent) 0%, transparent 62%); filter: blur(10px); animation: p13pulse 3.4s ease-in-out infinite; }
.p13mmr .dvemb .divemb { position: relative; display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 8px 22px color-mix(in srgb, var(--dvc) 65%, transparent)) drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); animation: p13float 4.2s ease-in-out infinite; }
.p13mmr .dvemb::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%) 0 0 / 250% 100% no-repeat;
  -webkit-mask: var(--dvimg) center / contain no-repeat; mask: var(--dvimg) center / contain no-repeat; mix-blend-mode: overlay;
  animation: p13float 4.2s ease-in-out infinite, p13shine 5s ease-in-out infinite; }
.p13mmr .dvtxt { min-width: 0; }
.p13mmr .dvname { display: block; font: 800 34px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; font-style: normal;
  color: var(--dvc); text-shadow: 0 0 22px color-mix(in srgb, var(--dvc) 55%, transparent); margin-bottom: 8px; }
.p13mmr .streak.G { color: #3ddc84; } .p13mmr .streak.M { color: #ff5d6c; } .p13mmr .streak.B { color: var(--muted); }
@keyframes p13pulse { 0%, 100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes p13float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes p13shine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .p13mmr .dvemb::before, .p13mmr .dvemb::after, .p13mmr .dvemb .divemb { animation: none; } }
@media (max-width: 640px) { .p13mmr .dvemb { width: 118px; height: 118px; } .p13mmr .dvname { font-size: 26px; } .p13mmr .dvhero { gap: 14px; } }
.stats.six .stat b small { font-size: .55em; color: var(--muted); font-weight: 700; }

/* v20 inside the NOBK profile (iframe): the profile already shows name, avatar and flag; no page background */
html.p13embed, html.p13embed body { background: transparent !important; }
html.p13embed body::before, html.p13embed body::after { display: none !important; }
html.p13embed .phead { display: none; }
html.p13embed .p13mmr { margin-top: 0; }

/* v21 match page: a player left -> real score of that moment */
.pnote.quitnote { color: var(--warn, #f2b748); border-color: color-mix(in srgb, var(--warn, #f2b748) 35%, transparent); }
.pnote.quitnote b { color: #fff; }

/* v22 teams page: no league chips; long list renders only what is on screen */
#lgchips, #lghead { display: none !important; }
.tcard2 { content-visibility: auto; contain-intrinsic-size: auto 64px; }

/* 2026-11-07: live-page podium polish - podium steps, medal-coloured cards and avatar rings, W/D/L chips */
.mpod { gap: 12px; padding: 18px 14px 0; align-items: end; }
.mp { gap: 6px; padding: 16px 10px 0; overflow: hidden; border-radius: 16px 16px 0 0; border-bottom: 0;
  background: linear-gradient(180deg, rgba(203, 213, 225, .13), rgba(203, 213, 225, .02) 70%); border-color: rgba(203, 213, 225, .38); }
.mp.p1 { padding: 20px 10px 0; background: linear-gradient(180deg, rgba(245, 192, 75, .24), rgba(245, 192, 75, .04) 70%);
  border-color: rgba(245, 192, 75, .65); box-shadow: 0 -6px 34px -8px rgba(245, 192, 75, .4); }
.mp.p3 { background: linear-gradient(180deg, rgba(217, 128, 54, .18), rgba(217, 128, 54, .02) 70%); border-color: rgba(217, 128, 54, .5); }
.mp > .medal { top: 8px; left: 10px; transform: none; width: 24px; height: 30px; }
.mp.p1 > .medal { width: 30px; height: 37px; top: 8px; left: 10px; }
.mpt .mmain .crest { width: 50px; height: 50px; } .mp.p1 .mpt .mmain .crest { width: 60px; height: 60px; }
.mpt .mside .crest { width: 24px; height: 24px; }
.mp .avatar.mpav { width: 46px; height: 46px; min-width: 46px; font-size: 18px; margin-top: 4px; box-shadow: 0 0 0 3px #11161f, 0 0 0 5px #cbd5e1; }
.mp.p1 .avatar.mpav { width: 58px; height: 58px; min-width: 58px; font-size: 22px; box-shadow: 0 0 0 3px #11161f, 0 0 0 5px #f5c04b, 0 0 22px rgba(245, 192, 75, .55); }
.mp.p3 .avatar.mpav { box-shadow: 0 0 0 3px #11161f, 0 0 0 5px #d98036; }
.mpn { font-size: 15px; font-weight: 700; margin-top: 4px; }
.mpr { color: var(--text); font-size: 28px; margin-top: 2px; }
.mp.p1 .mpr { font-size: 38px; color: #f5c04b; text-shadow: 0 0 20px rgba(245, 192, 75, .35); }
.mp .mpm { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mp .mpw { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.mp .mpw i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); padding: 3px 6px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .18); }
.mp .mpw b { color: var(--text); margin-right: 2px; font-size: 13px; }
.mp .mpw .w { border-color: rgba(34, 197, 94, .45); } .mp .mpw .w b { color: #4ade80; }
.mp .mpw .l { border-color: rgba(239, 68, 68, .45); } .mp .mpw .l b { color: #f87171; }
.mp .mpstep { align-self: stretch; margin: 10px -10px 0; display: flex; align-items: center; justify-content: center; height: 30px;
  font: 800 20px/1 var(--head, inherit); color: rgba(255, 255, 255, .8);
  background: linear-gradient(180deg, rgba(203, 213, 225, .28), rgba(203, 213, 225, .08)); border-top: 1px solid rgba(203, 213, 225, .45); }
.mp.p1 .mpstep { height: 50px; font-size: 26px; color: #fff4d6; background: linear-gradient(180deg, rgba(245, 192, 75, .5), rgba(245, 192, 75, .12)); border-top-color: rgba(245, 192, 75, .8); }
.mp.p3 .mpstep { height: 20px; font-size: 15px; background: linear-gradient(180deg, rgba(217, 128, 54, .42), rgba(217, 128, 54, .1)); border-top-color: rgba(217, 128, 54, .7); }
@media (max-width: 640px) {
  .mpod { gap: 6px; padding: 22px 8px 0; } .mpt .mside { display: none; }
  .mp { padding: 14px 6px 0; } .mp.p1 { padding: 18px 6px 0; } .mp > .medal, .mp.p1 > .medal { width: 20px; height: 25px; left: 6px; top: 6px; }
  .mpt .mmain .crest { width: 40px; height: 40px; } .mp.p1 .mpt .mmain .crest { width: 48px; height: 48px; }
  .mp .avatar.mpav { width: 38px; height: 38px; min-width: 38px; } .mp.p1 .avatar.mpav { width: 48px; height: 48px; min-width: 48px; }
  .mpr { font-size: 22px; } .mp.p1 .mpr { font-size: 30px; } .mpn { font-size: 13px; }
  .mp .mpw i { padding: 2px 4px; } .mp .mpstep { margin: 8px -6px 0; } }

/* 2026-11-07 b: podium - no corner medals; the step shows the player's division badge */
.mp > .medal { display: none; }
.mp .mpstep { height: 46px; } .mp.p1 .mpstep { height: 62px; } .mp.p3 .mpstep { height: 40px; }
.mp .mpstep img.divb { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55)); }
.mp.p1 .mpstep img.divb { width: 46px; height: 46px; }
.mp.p3 .mpstep img.divb { width: 30px; height: 30px; }
@media (max-width: 640px) { .mp .mpstep img.divb { width: 28px; height: 28px; } .mp.p1 .mpstep img.divb { width: 38px; height: 38px; } }
