/* Matches page — dark Age of Empires battle layout (isolated from player-page CSS). */
/* El encabezado no debe proyectar su sombra sobre el wallpaper. */
body.page-matches .topbar.topbarPlayerStyle{
  /* style.css del perfil fija height:56px, pero el contenido mide más.
     Dejar altura automática evita que .topbar-inner sobresalga al wallpaper. */
  height:auto!important;
  min-height:56px;
  background:#070b12!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  border-bottom:1px solid #49576c75;
}

body.page-matches{background:#05080e!important;color:#f1f4fa}
.gm-page{min-height:calc(100vh - 70px);background:linear-gradient(180deg,#07111a 0%,#04080f 600px,#04070d 100%);color:#f5f7fa;font-family:Inter,"Segoe UI",Arial,sans-serif}
.gm-page *,.gm-page *::before,.gm-page *::after{box-sizing:border-box}
.gm-hero{
  position:relative;isolation:isolate;display:flex;justify-content:center;align-items:flex-start;
  height:180px;overflow:hidden;
  background:#101e2b url("/static/ui_images/matches_wallpaper.webp") center 47%/cover no-repeat;
  box-shadow:inset 0 -20px 28px #03070f5c;
}
.gm-hero__shade{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,#060b1236,transparent 32%,#0a0f182b 60%,#080d1538),
             linear-gradient(180deg,#090b1030,transparent 45%,#07101a20 82%,#050a1080)}
.gm-hero__title-row{display:flex;gap:20px;align-items:center;margin:20px 16px 0;text-shadow:0 2px 15px #000,0 0 18px #000d}
.gm-hero h1{
  margin:0;color:#ffe5a9;font:800 clamp(34px,3.7vw,57px)/1 Georgia,"Times New Roman",serif;
  letter-spacing:2px;text-shadow:0 2px 5px #000,0 0 19px #000a;
}
.gm-hero__rule{display:block;width:clamp(38px,10vw,190px);height:2px;background:linear-gradient(90deg,transparent,#ffe5a4)}
.gm-hero__rule:last-child{transform:scaleX(-1)}
.gm-hero__diamond{color:#ffd46e;filter:drop-shadow(0 0 7px #e4ac47)}
.gm-container{position:relative;z-index:1;margin:-31px auto 0;padding:0 clamp(14px,2.7vw,36px) 45px;max-width:1630px}
.gm-filterbar{
  display:grid;grid-template-columns:minmax(190px,1.8fr) minmax(145px,1.1fr) minmax(145px,1fr) minmax(150px,1fr) minmax(180px,1.27fr);
  align-items:stretch;gap:14px;padding:12px 16px;min-height:63px;
  border:1px solid #8c9aab72;border-radius:17px;
  background:linear-gradient(130deg,#101823f5,#060b13f8);
  box-shadow:0 6px 24px #000c,inset 0 0 0 1px #0e1823;
}
.gm-filter{
  min-width:0;display:flex;align-items:center;gap:9px;
  height:40px;padding:0 10px 0 13px;position:relative;
  color:#f5c75e;border:1px solid #b98a32;border-radius:10px;
  background:linear-gradient(180deg,#101c29,#0a111c);cursor:pointer;
  box-shadow:inset 0 1px #ffffff0e,0 0 7px #bd812022;
}
.gm-filter:hover,.gm-filter:focus-within{border-color:#f6cc75;box-shadow:0 0 9px #f9bb4440}
.gm-filter svg{width:21px;height:21px;flex:0 0 21px;color:#f9ce6d}
.gm-filter span{color:#eff0f6;font-size:13px;font-weight:700;white-space:nowrap}
.gm-filter input,.gm-filter select{
  min-width:0;flex:1;width:100%;background:transparent;border:0;outline:none;
  color:#eff3f8;font:600 13px Inter,"Segoe UI",sans-serif;
}
.gm-filter input::placeholder{color:#bcc7d7;opacity:1;font-weight:500}
.gm-filter input::-webkit-search-cancel-button{filter:grayscale(1) brightness(2)}
.gm-filter select{cursor:pointer;appearance:auto;padding-right:1px;white-space:nowrap}
.gm-filter select option{background:#0d1826;color:#eff1f8}
.gm-search-submit{
  border:0;background:transparent;border-radius:6px;display:grid;place-items:center;
  width:25px;height:25px;padding:3px;cursor:pointer;color:#eaca86;
}
.gm-search-submit svg{width:17px;height:17px}
.gm-search-submit:hover{background:#a974242c}
.gm-matches{display:flex;flex-direction:column;gap:26px;padding-top:20px}
.gm-page .gm-card{
  display:block;position:relative;min-width:0;
  padding:0!important;margin:0!important;overflow:hidden!important;
  border:1.5px solid #d3a743!important;border-radius:17px!important;
  background:linear-gradient(125deg,#0d1a29,#060b13 75%)!important;
  box-shadow:inset 0 0 0 1px #dab36122,0 9px 25px #000b!important;
}
.gm-page .gm-card:hover{border-color:#ffda80!important}
.gm-page .gm-card::after{display:none!important}
.gm-card__head{display:flex;gap:0;min-height:110px;border-bottom:1px solid #6c7c9061}
.gm-card__map{
  display:flex;align-items:center;justify-content:center;
  flex:0 0 184px;min-width:0;min-height:108px;padding:4px 8px;
  border-right:1px solid #65788b70;
}
.gm-map-thumb{
  width:min(168px,100%);height:106px;object-fit:contain;display:block;
  filter:drop-shadow(0 3px 6px #000a);
}
.gm-card__headline{min-width:0;flex:1;display:flex;flex-direction:column}
.gm-card__topline{
  min-height:58px;padding:10px 14px 9px 23px;
  display:flex;align-items:center;flex-wrap:wrap;column-gap:clamp(10px,1.7vw,27px);row-gap:7px;
  background:linear-gradient(180deg,#111f2df4,#091422dc);
  border-bottom:1px solid #62748556;
}
.gm-card__ident{display:flex;gap:12px;align-items:baseline;white-space:nowrap}
.gm-match-label{font:900 21px/1.1 Inter,"Segoe UI",sans-serif;letter-spacing:.3px;color:#f9f7f2}
.gm-match-number{font:900 23px/1.1 Inter,"Segoe UI",sans-serif;color:#f9c967!important;text-shadow:0 0 8px #ae78214b}
.gm-card .gm-ranked{
  display:inline-flex!important;align-items:center;gap:7px;flex:none;min-width:94px;
  padding:5px 12px;margin:0!important;border:1px solid #e2b85e;border-radius:999px;
  background:linear-gradient(180deg,#4937137d,#241c107a);
  box-shadow:inset 0 0 6px #ffc8662f;
  color:#f9d884;font:900 13px/1.1 Inter,"Segoe UI",sans-serif;white-space:nowrap;
}
.gm-card .gm-ranked .pillRankedStar{font-size:16px;order:-1}
.gm-card .gm-ranked .pillRankedText{font:900 13px/1 Inter,"Segoe UI",sans-serif;color:#ffdb84!important}
/* Partida activa: contorno amarillo, texto verde y punto verde pulsante. */
.gm-card .gm-ranked.is-progress{
  border-color:#e2b85e;
  color:#54dd87;
  background:rgba(28,35,26,.64);
  box-shadow:inset 0 0 0 1px rgba(226,184,94,.08);
}
.gm-card .gm-ranked.is-progress .pillRankedText{
  color:#54dd87!important;
}
.gm-card .gm-ranked.is-progress .gm-ranked__live-dot{
  display:inline-block;
  flex:none;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#45e58a;
  box-shadow:0 0 0 2px rgba(69,229,138,.15);
  animation:gm-live-blink 1.35s ease-in-out infinite;
}
@media (prefers-reduced-motion:reduce){
  .gm-card .gm-ranked.is-progress .gm-ranked__live-dot{animation:none}
}
.gm-card .gm-ranked.is-unranked{border-color:#7f8795;color:#c1c9d2;background:#252d3c}
.gm-card .gm-ladder{display:inline-block;min-width:0;color:#e7ebf6;font:600 13px Inter,"Segoe UI",sans-serif;white-space:nowrap}
.gm-card .gm-created{display:inline-flex;align-items:center;gap:7px;min-width:0;color:#eef0f7;font:500 13px Inter,"Segoe UI",sans-serif;white-space:nowrap}
.gm-card .gm-created svg{width:17px;height:17px;color:#d7d7de}
.gm-page .gm-view,.gm-page .gm-view:visited{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  margin-left:auto;min-width:139px;padding:10px 15px;border-radius:10px;
  border:1px solid #f5d37b!important;
  background:linear-gradient(180deg,#ffe5a6,#d79f35)!important;
  color:#211805!important;font:900 12px/1 Inter,"Segoe UI",sans-serif;
  text-decoration:none;white-space:nowrap;
  box-shadow:0 2px 10px #a67b3440;
}
.gm-page .gm-view svg{width:18px;height:18px;flex:0 0 18px}
.gm-page .gm-view:hover{filter:brightness(1.09)}
.gm-page .gm-view.btnMatch--disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.4)}
.gm-card__meta{display:grid;grid-template-columns:1fr 1.35fr 1.08fr .82fr 1fr;min-height:50px;align-items:center;padding:4px 12px}
.gm-meta-item{
  display:flex;align-items:center;justify-content:center;min-width:0;gap:8px;
  padding:5px 11px;color:#e4e8f0;font:600 12px/1.2 Inter,"Segoe UI",sans-serif;
  border-right:1px solid #78879c6b;white-space:normal;overflow-wrap:anywhere;
}
.gm-meta-item:first-child{justify-content:flex-start}
.gm-meta-item:last-child{border-right:0}
.gm-meta-item svg{width:20px;height:20px;flex:0 0 20px;color:#ffce65}
.gm-meta-item strong{font-weight:800;color:#fff}
.gm-meta-item .gm-outcome{display:inline-block;border-radius:999px;padding:5px 12px;border:1px solid #758090;background:#151b25;color:#c9d7e8;text-align:center;min-width:78px}
.gm-meta-item .gm-outcome.is-win{color:#b8ffce;border-color:#33c966;background:linear-gradient(#09502b,#06351f)}
.gm-meta-item .gm-outcome.is-abandon{color:#ffc6c6;border-color:#e33d3d;background:#500f15}
.gm-meta-item .gm-outcome.is-live{color:#b4ecff;border-color:#398eac;background:#0d2b36}
/* Estado de la partida, independiente de victoria/derrota. */
.gm-meta-item .gm-state{
  display:inline-flex;align-items:center;gap:7px;
  font-weight:900;font-size:12px;letter-spacing:.025em;
  white-space:nowrap;
}
.gm-meta-item .gm-state--finished{color:#66b8ff!important}
.gm-meta-item .gm-state--void{color:#ffb15a!important}
.gm-meta-item .gm-state--invalidated{color:#ff666e!important}
.gm-meta-item .gm-state--live{color:#54dd87!important}
.gm-meta-item .gm-state--unknown{color:#b7c1d0!important}
.gm-state__pulse{
  width:8px;height:8px;min-width:8px;display:inline-block;
  border-radius:50%;background:#45e58a;
  box-shadow:0 0 0 2px #45e58a33,0 0 10px #45e58a75;
  animation:gm-live-blink 1.35s ease-in-out infinite;
}
@keyframes gm-live-blink {
  0%,100%{opacity:1;box-shadow:0 0 0 2px #45e58a33,0 0 10px #45e58a75}
  50%{opacity:.28;box-shadow:0 0 0 0 #45e58a00,0 0 2px #45e58a33}
}
.gm-page .gm-view.btnMatch--disabled{
  pointer-events:none;user-select:none;
}
@media(prefers-reduced-motion:reduce){
  .gm-state__pulse{animation:none!important}
}
.gm-page .gm-card__teams{
  display:grid!important;grid-template-columns:minmax(0,1fr) 84px minmax(0,1fr)!important;
  gap:12px;align-items:center;margin:0;padding:11px 20px 15px;
  background:linear-gradient(180deg,#06101a,#050a11);
}
.gm-page .gm-team{
  min-width:0;padding:7px 9px 8px!important;margin:0;
  border-radius:13px!important;border:1.5px solid #6f7f91!important;
  background:linear-gradient(160deg,#152637,#09131e 75%)!important;
}
.gm-page .gm-team--red{
  border-color:#6f7f91!important;
  background:linear-gradient(160deg,#211720,#15121a 65%,#0b101a)!important;
}
.gm-page .gm-team__header{
  display:flex;align-items:center;gap:10px;margin:0 0 5px!important;
  padding:3px 9px 7px;border-bottom:1px solid #7b8b9f50;
  color:#eaf3ff!important;font:900 17px Inter,"Segoe UI",sans-serif;
}
.gm-page .gm-team__header svg{width:22px;height:22px;flex:0 0 22px;color:#32b6f6}
.gm-page .gm-team--red .gm-team__header {
  color:#f4dde0!important;
  border-bottom-color:#75879a75;
}
.gm-page .gm-team--red .gm-team__header svg{color:#db858e}
.gm-team__count{font:550 12px Inter,"Segoe UI",sans-serif;color:#ecedf2}
.gm-page .gm-team__players{display:flex;flex-direction:column;gap:5px}
.gm-page .gm-player{
  display:grid!important;grid-template-columns:37px minmax(0,1fr) auto auto!important;
  align-items:center;column-gap:9px;min-height:39px;
  border:1px solid #39485878!important;border-radius:9px!important;
  padding:4px 7px!important;margin:0!important;
  background:linear-gradient(90deg,#07121b,#070e17ec)!important;
}
.gm-page .gm-team--red .gm-player{background:linear-gradient(90deg,#0c1217,#11121a)!important}
.gm-page .gm-player__civ{
  width:37px!important;height:37px!important;flex:0 0 37px!important;overflow:hidden;border-radius:8px!important;
  box-sizing:border-box!important;
  border:1px solid var(--slotColor,#718096)!important;box-shadow:none!important;background:transparent!important;
}
.gm-page .gm-player__civ img{width:100%;height:100%;display:block;object-fit:cover}
.gm-page .gm-player__civ.slotRing::after{content:none!important}
.gm-page .gm-player__civ.slotRing{box-shadow:none!important}
.gm-page .gm-player__meta{display:flex;flex-direction:column;gap:2px;min-width:0}
.gm-page .gm-player__name{
  min-width:0;max-width:100%;line-height:1.12;
  display:flex;align-items:center;gap:5px;white-space:nowrap;
}
.gm-page .gm-player__flag{
  display:block;flex:0 0 20px;width:20px;height:15px;
  object-fit:cover;border-radius:2px;border:1px solid #71809652;
}
.gm-page .gm-player__name a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gm-page .gm-player__name a,.gm-page .gm-player__name a:visited{
  text-decoration:none;color:#f5f6fc!important;font:800 13px/1.1 Inter,"Segoe UI",sans-serif;
}
.gm-page .gm-player__name a:hover{color:#ffd27a!important;text-decoration:underline}
.gm-page .gm-player__name .mvpMedal{
  display:block;width:19px;height:19px;flex:0 0 19px;
  object-fit:contain;vertical-align:middle;background:transparent;
}
.gm-page .gm-player__civname{font:500 10px Inter,"Segoe UI",sans-serif;text-transform:uppercase;color:#bdc8d7;letter-spacing:.05em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gm-page .gm-player__rating{
  min-width:0;display:inline-flex;align-items:center;justify-content:flex-end;
  gap:6px;white-space:nowrap;font:700 11px/1 Inter,"Segoe UI",sans-serif;color:#e7e9f0;
  font-variant-numeric:tabular-nums;
}
.gm-player__rating .gm-elo-label{font-weight:650;color:#e6e7ec}
.gm-player__rating .gm-elo-before-block{
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;min-width:32px;line-height:1;
}
.gm-player__rating .gm-elo-before{color:#e7e9f0}
.gm-player__rating .gm-elo-arrow{color:#b8c2d3;align-self:center}
.gm-player__rating .gm-elo-after{color:#66b8ff;font-weight:900}
.gm-player__rating.is-live .gm-elo-before{color:#66b8ff;font-weight:900}
.gm-player__rating .gm-elo-delta{font-size:10px;font-weight:900;line-height:1}
.gm-player__rating .gm-elo-delta.is-pos{color:#3fe385}
.gm-player__rating .gm-elo-delta.is-neg{color:#ff565f}
.gm-player__rating .gm-elo-delta.is-zero{color:#bac5d3}
.gm-page .gm-player__result{
  display:inline-flex;align-items:center;justify-content:center;
  margin:0!important;min-width:89px;max-width:103px;white-space:nowrap;
  font:900 11px/1 Inter,"Segoe UI",sans-serif;letter-spacing:.1px;
  padding:6px 9px;border-radius:999px;border:1px solid #646e7b;
  background:#121e2a;color:#d5dce6;
}
.gm-page .gm-player__result.is-win{color:#caffd7;background:linear-gradient(#075b28,#06431f);border-color:#30d25c}
.gm-page .gm-player__result.is-lose,.gm-page .gm-player__result.is-abandon{color:#ffd4d4;background:linear-gradient(#5c131a,#320b0f);border-color:#e13c41}
.gm-page .gm-versus{display:flex;align-items:center;justify-content:center;min-height:80px}
.gm-page .gm-versus .versusBadge{
  display:grid;place-items:center;width:76px;height:76px;border:0!important;border-radius:50%!important;
  color:#fff0cc;font:900 35px/1 Georgia,serif;letter-spacing:0;
  text-shadow:0 0 12px #e6a83d;
  background:radial-gradient(circle,#61431d65 0%,transparent 69%)!important;
  box-shadow:inset 0 0 0 1px #dca73a55,0 0 25px #b87a1c25;
}
.gm-page .gm-card__missing{
  padding:18px 22px;
  color:#ffdfac;
  font:600 13px/1.5 Inter,"Segoe UI",sans-serif;
  background:#1c1721;
  border-top:1px solid #8b673f;
}
.gm-page .gm-player__protected{
  display:inline-block;margin-left:7px;padding:2px 6px;
  border-radius:6px;border:1px solid #607082;
  color:#e1e7ee;background:#27323d;font:800 10px Inter,sans-serif;
}
.gm-no-results{padding:35px 15px;text-align:center;color:#c3cbd8;border:1px solid #526074;border-radius:13px;background:#0b1523}
.gm-no-results p{margin:0 0 10px}
.gm-no-results a{color:#f3c36f;text-decoration:none;font-weight:700}
.gm-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:11px;margin:24px auto 12px}
.gm-pagination a,.gm-pagination span{display:inline-flex;padding:10px 15px;border:1px solid #9b814c;border-radius:9px;background:#101825;color:#f4d48a;font:750 12px Inter,sans-serif;text-decoration:none}
.gm-pagination span{border-color:#41536a;color:#cad7e5}
.gm-pagination a:hover{background:#293548}
.gm-card .liveDot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#55e69d;box-shadow:0 0 5px #55e69d}
@media(max-width:1300px){
  .gm-filterbar{grid-template-columns:repeat(4,minmax(0,1fr))}
  .gm-filter--search{grid-column:span 2}
  .gm-card__map{flex-basis:149px}
  .gm-card__topline{gap:11px;padding:9px 12px}
  .gm-page .gm-player{grid-template-columns:36px minmax(0,1fr) auto!important}
  .gm-page .gm-player__result{grid-column:3;grid-row:2;justify-self:end;margin-top:-2px!important}
  .gm-page .gm-player__rating{grid-column:3;grid-row:1}
}
@media(max-width:960px){
  .gm-hero{height:155px}
  .gm-container{margin-top:-23px;padding:0 12px 30px}
  .gm-filterbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px}
  .gm-filter--search{grid-column:span 2}
  .gm-card__head{align-items:stretch}
  .gm-card__map{flex-basis:129px}
  .gm-card__topline{flex-wrap:wrap}
  .gm-card__meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gm-meta-item:nth-child(2),.gm-meta-item:nth-child(4){border-right:0}
  .gm-meta-item:last-child{grid-column:1 / -1;border-top:1px solid #52617654}
  .gm-meta-item{justify-content:flex-start}
  .gm-page .gm-card__teams{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)!important;gap:6px;padding:11px}
  .gm-page .gm-versus .versusBadge{width:53px;height:53px;font-size:23px}
  .gm-page .gm-player{grid-template-columns:34px minmax(0,1fr)!important}
  .gm-page .gm-player__rating{grid-column:2;grid-row:2;justify-content:flex-start}
  .gm-page .gm-player__result{grid-column:2;grid-row:3;justify-self:start}
}
@media(max-width:650px){
  .gm-hero{height:138px;background-position:center 42%}
  .gm-hero__title-row{gap:8px;margin-top:20px}
  .gm-hero__rule{width:35px}
  .gm-hero h1{font-size:32px}
  .gm-filterbar{grid-template-columns:1fr 1fr;border-radius:13px}
  .gm-filter--search{grid-column:span 2}
  .gm-filter{padding:0 8px;gap:6px}
  .gm-filter span{font-size:11px}
  .gm-filter select{font-size:11px}
  .gm-card__map{flex-basis:106px;padding:5px}
  .gm-map-thumb{width:min(99px,100%);height:78px}
  .gm-card__topline{padding:10px;gap:8px}
  .gm-match-label{font-size:16px}
  .gm-match-number{font-size:18px}
  .gm-card .gm-ladder,.gm-card .gm-created{font-size:11px}
  .gm-page .gm-view{margin-left:0;min-width:124px;padding:9px 12px}
  .gm-card__meta{padding:6px}
  .gm-meta-item{padding:5px;font-size:11px}
  .gm-meta-item svg{width:17px;height:17px;flex-basis:17px}
  .gm-page .gm-card__teams{display:flex!important;flex-direction:column;gap:8px;padding:10px}
  .gm-page .gm-team{width:100%}
  .gm-page .gm-versus{min-height:34px}
  .gm-page .gm-versus{min-height:54px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .gm-page .gm-versus .versusBadge{
    width:44px!important;height:44px!important;min-width:44px!important;
    min-height:44px!important;margin:0!important;padding:0!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    font:900 19px/1 Georgia,serif!important;letter-spacing:0!important;
    box-sizing:border-box!important;overflow:hidden!important;white-space:nowrap!important;
  }
  .gm-page .gm-player{grid-template-columns:34px minmax(0,1fr) auto auto!important}
  .gm-page .gm-player__rating{grid-column:3;grid-row:1;justify-content:flex-end;font-size:10px}
  .gm-page .gm-player__result{grid-column:4;grid-row:1;justify-self:end;font-size:10px;min-width:76px}
}
@media(max-width:430px){
  .gm-filterbar{grid-template-columns:1fr;gap:7px}
  .gm-filter--search{grid-column:span 1}
  .gm-card__head{flex-direction:column}
  .gm-card__map{
    display:flex;flex:0 0 132px;width:100%;min-height:132px;
    padding:5px;border-right:0;border-bottom:1px solid #65788b70;
  }
  .gm-map-thumb{width:min(190px,100%);height:120px}
  .gm-card__topline{flex-direction:row;align-items:center}
  .gm-card .gm-created{width:100%}
  .gm-card__meta{grid-template-columns:1fr}
  .gm-meta-item{border-right:0;border-bottom:1px solid #52617654}
  .gm-meta-item:last-child{border-bottom:0}
  .gm-page .gm-player{grid-template-columns:34px minmax(0,1fr) auto!important}
  .gm-page .gm-player__rating{grid-column:3;grid-row:1}
  .gm-page .gm-player__result{grid-column:3;grid-row:2}
}

.gm-filter-search-wrap{position:relative;min-width:0;z-index:15}
.gm-filter-search-wrap .gm-filter{width:100%}
.gm-player-suggestions[hidden]{display:none!important}
.gm-player-suggestions{
  position:absolute;z-index:30;top:calc(100% + 5px);left:0;right:0;
  overflow:auto;max-height:260px;padding:5px;
  background:#0a1421;border:1px solid #ba904b;border-radius:10px;
  box-shadow:0 13px 26px #000d;
}
.gm-player-option{
  display:block;width:100%;padding:10px 12px;border:0;border-radius:6px;
  text-align:left;background:transparent;color:#f4f4f7;
  font:700 13px Inter,"Segoe UI",sans-serif;cursor:pointer;
}
.gm-player-option:hover,.gm-player-option:focus-visible,.gm-player-option.is-active{
  background:#29374a;color:#ffe1a0;outline:none;
}
@media(max-width:650px){
 .gm-player-suggestions{max-height:210px}
}
/* FFA (3+): una sola tabla de Jugadores, sin VS ni segundo equipo. */
.gm-page .gm-card--ffa .gm-card__teams{
  display:block!important;
  padding:12px 20px 17px;
}
.gm-page .gm-card--ffa .gm-team[data-team="1"]{
  width:100%;
  border-color:#6f7f91!important;
  background:linear-gradient(160deg,#192130,#0b121d 80%)!important;
}
.gm-page .gm-card--ffa .gm-team[data-team="2"],
.gm-page .gm-card--ffa .gm-versus{
  display:none!important;
}
.gm-page .gm-card--ffa .gm-team__players{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:7px 14px;
}
@media(max-width:650px){
  .gm-page .gm-card--ffa .gm-card__teams{padding:10px}
  .gm-page .gm-card--ffa .gm-team__players{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.gm-page *{transition:none!important}}

/* Matches listing: full wallpaper visible before filters, without resizing the image. */
body.page-matches:not(.page-match-detail) .gm-hero{
  /* Keep the existing fixed hero height and background-size:cover. */
  align-items:center;
  box-shadow:inset 0 -14px 22px #03070f35;
}
body.page-matches:not(.page-match-detail) .gm-hero__title-row{
  /* True vertical centering, including the narrow-screen rules above. */
  margin:0 16px;
}
body.page-matches:not(.page-match-detail) .gm-hero__shade{
  background:linear-gradient(90deg,#060b1228,transparent 32%,#0a0f1821 60%,#080d1529),
             linear-gradient(180deg,#090b1024,transparent 45%,#07101a17 82%,#050a105c);
}
body.page-matches:not(.page-match-detail) .gm-container{
  /* Former -31px overlap hid the last strip of the battle scene. */
  margin:15px auto 0;
}
