/* Local competition additions layered on the Steam 1.0.7 interface. */
body:not(.loaded)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000 url('../images/interface/merixgames.png') no-repeat 50% 50% / cover;
}

.menu.intro {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.menu.competition-main .panel.small > .clip > .scrollable-content {
  padding-top: 16px;
  padding-bottom: 16px;
}

.menu.competition-main .grid.padding.small > p {
  padding-top: 4px;
}

.menu.competition-main .button {
  height: 76px;
  line-height: 66px;
}

.menu.competition-main .button:after {
  height: 66px;
}

.menu.competition-main .small-header .label,
.menu.competition-main .button .label {
  text-shadow: 0 2px 1px rgba(7, 20, 25, 0.95) !important;
}

.fame-widget,
.menu-footer .user-status,
.menu-footer li:has(> .user-status) {
  display: none !important;
}

.menu.loading .menu-footer {
  display: none;
}

.menu.loading.match-lineups::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 29, 0.62);
}

.match-loading-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 98px 1fr 58px;
  gap: 0 22px;
  width: 1600px;
  height: 780px;
  margin: -390px 0 0 -800px;
  padding: 0 34px 28px;
  border: 4px solid #213f49;
  border-top-color: #ef8d2f;
  background: rgba(31, 65, 76, 0.98);
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.24), inset 0 2px 0 rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.match-loading-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 3px solid #ef8d2f;
  font-size: 34px;
}

.match-loading-header strong:first-of-type {
  text-align: right;
}

.match-loading-header strong:last-of-type {
  text-align: left;
}

.match-loading-kicker {
  position: absolute;
  top: 12px;
  left: 34px;
  color: #fed437;
  font: 700 15px/1 Montserrat, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.match-loading-vs {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin: auto;
  border: 3px solid #fff7d8;
  background: #d95858;
  font-size: 23px;
  transform: rotate(2deg);
}

.match-lineup {
  min-width: 0;
  padding: 18px 0 12px;
}

.match-team-heading {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 13px;
  align-items: center;
  gap: 15px;
  height: 82px;
  padding: 7px 16px 9px;
  border-bottom: 3px solid #ef8d2f;
  background: #294b56;
  box-sizing: border-box;
}

.match-team-heading h2 {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  margin: 0;
  font-size: 32px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-team-badge {
  display: grid;
  grid-row: 1 / 3;
  width: 68px;
  height: 68px;
  place-items: center;
}

.match-team-badge img {
  display: block;
  max-width: 68px;
  max-height: 68px;
}

.blue-lineup .match-team-heading {
  border-bottom-color: #4c82c8;
}

.red-lineup .match-team-heading {
  border-bottom-color: #db4e4e;
}

.match-team-strength {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  height: 11px;
  background: rgba(8, 27, 33, 0.72);
}

.match-team-strength i {
  display: block;
  min-width: 0;
  background: rgba(116, 150, 158, 0.58);
}

.match-team-strength i.active {
  background: repeating-linear-gradient(
    135deg,
    #ffe34b 0,
    #ffe34b 6px,
    #ed9631 6px,
    #ed9631 10px
  );
}

.lineup-team-thumbnail {
  position: relative;
  display: grid;
  height: 360px;
  margin-top: 14px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #19343d;
  background: linear-gradient(
    145deg,
    var(--team-primary) 0,
    var(--team-primary) 49.8%,
    var(--team-secondary) 50.2%,
    var(--team-secondary) 100%
  );
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.lineup-team-thumbnail::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(7, 27, 33, 0.22));
  pointer-events: none;
}

.lineup-team-thumbnail img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lineup-name-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 10px 0 0;
  padding: 0;
  border-bottom: 3px solid #db4e4e;
  background: #294b56;
  list-style: none;
}

.blue-lineup .lineup-name-list {
  border-bottom-color: #4c82c8;
}

.lineup-name-list li {
  min-width: 0;
  padding: 13px 5px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}

.lineup-name-list li:last-child {
  border-right: 0;
}

.lineup-name-list strong {
  display: block;
  overflow: hidden;
  width: 100%;
  font: 700 16px/1.1 Montserrat, Arial, Helvetica, sans-serif;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-loading-status {
  grid-column: 1 / -1;
  align-self: end;
  color: #fed437;
  font-size: 28px;
  text-align: center;
}

.match .tie-summary {
  position: absolute;
  top: 232px;
  left: 13px;
  z-index: 4;
  width: 148px;
  color: #b9dbe7;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.tournament .user-team::before,
.tournament .user-team::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.tournament .user-team {
  color: #ffe24d;
  font-weight: 700;
  text-shadow: 0 1px 0 #1b282e;
}

.tournament-group table tr:has(.user-team) td {
  box-shadow: inset 0 0 0 999px rgba(255, 226, 77, 0.1), inset 0 2px 0 -1px rgba(255, 255, 255, 0.125);
}

.tournament-group table tr:has(.user-team) td:first-child {
  box-shadow: inset 4px 0 0 #ffe24d, inset 0 0 0 999px rgba(255, 226, 77, 0.1), inset 0 2px 0 -1px rgba(255, 255, 255, 0.125);
}

.match .user-team span {
  display: inline-block;
  box-shadow: inset 0 -3px 0 #ffe24d;
}

/* FIFA 2002 information layout with Kopanito materials. */
.tournament .panel.large {
  padding: 150px 120px 118px;
}

.tournament .panel.large > .large-header {
  z-index: 4;
}

.tournament .panel.large > .large-header .label {
  width: 1420px;
  font-size: 54px;
}

.tournament .competition-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 82px;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.tournament .competition-screen {
  position: relative;
  min-height: 0;
  border: 2px solid #1b343d;
  border-top: 6px solid #ef8d2f;
  background: rgba(30, 54, 63, 0.97);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05), 8px 8px 0 rgba(0, 0, 0, 0.14);
}

.tournament .competition-screen > .scrollable-content {
  min-height: 100%;
  padding: 18px 24px 54px;
}

.tournament .competition-surface {
  display: none;
}

.tournament.show-competition-all .competition-surface.competition-all,
.tournament.show-competition-league .competition-surface.competition-league,
.tournament.show-competition-europe .competition-surface.competition-europe {
  display: block;
}

.tournament .standings-block,
.tournament .fixture-block,
.tournament .next-fixture-panel,
.tournament .tie-card {
  border: 1px solid #152c34;
  background: #426d7c;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), 4px 4px 0 rgba(0, 0, 0, 0.12);
}

.tournament .standings-block > h2,
.tournament .fixture-block > h3,
.tournament .next-fixture-panel > h3 {
  overflow: hidden;
  height: 42px;
  margin: 0;
  padding: 9px 14px 7px;
  border-bottom: 3px solid #ef8d2f;
  background: #263f49;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament .league-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  gap: 16px;
  align-items: start;
}

.tournament .league-sidebar {
  display: grid;
  gap: 14px;
}

.tournament .competition-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font: 15px/1 Montserrat, Arial, Helvetica, sans-serif;
  text-align: center;
}

.tournament .competition-table th {
  height: 27px;
  padding: 2px 4px;
  background: #1b333c;
  color: #b9dbe7;
  font-size: 12px;
  text-transform: uppercase;
}

.tournament .competition-table td {
  overflow: hidden;
  height: 28px;
  padding: 2px 4px;
  border-top: 1px solid #38606c;
  background: #578fa2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament .competition-table tr:nth-child(even) td {
  background: #4f8293;
}

.tournament .competition-table tr.qualifying td {
  background: #629f8a;
}

.tournament .competition-table tr.leader td:first-child {
  box-shadow: inset 4px 0 0 #ef8d2f;
}

.tournament .competition-table tr.user-standing td {
  background: #365f6c;
  color: #fff5a6;
  font-weight: 700;
}

.tournament .competition-table tr.user-standing td:first-child {
  box-shadow: inset 5px 0 0 #fed437;
}

.tournament .competition-table .rank {
  width: 38px;
}

.tournament .competition-table .table-badge {
  width: 48px;
  padding: 0;
}

.tournament .competition-table .table-team {
  width: 22%;
  text-align: left;
}

.tournament .competition-table .table-stat {
  width: 10%;
}

.tournament .competition-table .points {
  background: #294a55 !important;
  color: #fed437;
  font-weight: 700;
}

.tournament .team-crest {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  vertical-align: middle;
}

.tournament .team-crest img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tournament .crest-table {
  width: 36px;
  height: 26px;
}

.tournament .crest-small {
  width: 34px;
  height: 30px;
}

.tournament .crest-round {
  width: 38px;
  height: 34px;
}

.tournament .crest-large {
  width: 112px;
  height: 92px;
}

.tournament .crest-large img {
  width: 112px;
  height: 92px;
  object-fit: contain;
  object-position: 50% 50%;
}

.tournament .pending-crest {
  color: #b9dbe7;
  font: 700 20px/1 Montserrat, Arial, Helvetica, sans-serif;
}

.tournament .next-fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  grid-template-rows: 28px 1fr;
  align-items: center;
  min-height: 198px;
  padding: 6px 18px 14px;
}

.tournament .fixture-stage {
  grid-column: 1 / -1;
  margin: 0;
  color: #c9e3eb;
  font: 14px/1 Montserrat, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.tournament .next-team {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 4px;
}

.tournament .next-team strong {
  overflow: hidden;
  width: 100%;
  font-size: 22px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament .versus {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: auto;
  border: 3px solid #f5f1df;
  background: #de5a5a;
  font-size: 21px;
  line-height: 1;
  transform: rotate(2deg);
}

.tournament .competition-complete,
.tournament .empty-state {
  display: grid;
  min-height: 110px;
  place-items: center;
  color: #c9e3eb;
  font: 18px/1.3 Montserrat, Arial, Helvetica, sans-serif;
}

.tournament .competition-complete strong {
  color: #fed437;
  font-size: 28px;
}

.tournament .fixture-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 3px 8px;
  border-top: 1px solid #365c68;
  background: #2f4e59;
}

.tournament .fixture-row:nth-child(odd) {
  background: #294650;
}

.tournament .fixture-row.user-fixture {
  box-shadow: inset 5px 0 0 #fed437;
}

.tournament .fixture-row.next,
.tournament .next-fixture.next,
.tournament .tie-card.next {
  background: #d9eef2;
  color: #172c34;
  box-shadow: inset 7px 0 0 #ef8d2f, inset 0 0 0 2px #fff;
  text-shadow: none;
}

.tournament .fixture-row.next *,
.tournament .next-fixture.next *,
.tournament .tie-card.next * {
  text-shadow: none;
}

.tournament .fixture-detail {
  overflow: hidden;
  color: #b9dbe7;
  font: 12px/1 Montserrat, Arial, Helvetica, sans-serif;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tournament .team-identity {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.tournament .team-identity.away {
  grid-template-columns: minmax(0, 1fr) 34px;
  text-align: right;
}

.tournament .team-identity.away .team-crest {
  grid-column: 2;
  grid-row: 1;
}

.tournament .team-identity.away .team-name {
  grid-column: 1;
  grid-row: 1;
}

.tournament .team-identity .team-name {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  font-size: 17px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament .fixture-score {
  color: #fff;
  font-size: 19px;
  text-align: center;
  white-space: nowrap;
}

.tournament .fixture-score.pending {
  color: #b9dbe7;
  font-size: 15px;
}

.tournament .league-sidebar .fixture-row {
  grid-template-columns: 0 minmax(0, 1fr) 54px minmax(0, 1fr);
  min-height: 34px;
  padding: 1px 7px;
}

.tournament .league-sidebar .fixture-detail {
  visibility: hidden;
}

.tournament .league-sidebar .crest-small {
  width: 26px;
  height: 24px;
}

.tournament .league-sidebar .team-name {
  font-size: 14px;
}

.tournament .league-sidebar .fixture-score {
  font-size: 16px;
}

.tournament .group-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  margin-bottom: 12px;
  border-bottom: 3px solid #de5a5a;
  background: #263f49;
}

.tournament .group-navigation h2 {
  margin: 0;
  color: #fed437;
  font-size: 30px;
  line-height: 1;
}

.tournament .group-direction {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  color: #b9dbe7;
  font: 700 14px/1 Montserrat, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.tournament .group-direction.previous {
  grid-column: 1;
  justify-self: start;
}

.tournament .group-direction.group-next {
  grid-column: 3;
  justify-self: end;
  justify-content: flex-end;
}

.tournament .group-standings {
  margin-bottom: 12px;
}

.tournament .group-standings .competition-table td {
  height: 40px;
  font-size: 17px;
}

.tournament .group-standings .crest-table {
  width: 42px;
  height: 36px;
}

.tournament .group-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tournament .group-match-grid .fixture-row {
  grid-template-columns: 0 minmax(0, 1fr) 58px minmax(0, 1fr);
}

.tournament .group-match-grid .fixture-detail {
  visibility: hidden;
}

.tournament .round-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 64px;
  margin-bottom: 12px;
  padding: 8px 16px 10px;
  border-bottom: 3px solid #de5a5a;
  background: #263f49;
  text-align: left;
}

.tournament .round-heading span {
  color: #b9dbe7;
  font: 13px/1 Montserrat, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.tournament .round-heading h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.tournament .round-heading > strong {
  color: #fed437;
  font-size: 28px;
  line-height: 1;
}

.tournament .round-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tournament .tie-card {
  overflow: hidden;
  background: #315460;
}

.tournament .tie-card.user-fixture {
  box-shadow: inset 5px 0 0 #fed437, 4px 4px 0 rgba(0, 0, 0, 0.12);
}

.tournament .tie-team {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 42px;
  padding: 3px 8px;
  border-top: 1px solid #416b77;
  text-align: left;
}

.tournament .tie-team:first-child {
  border-top: 0;
}

.tournament .tie-team.winner {
  background: #477f6b;
}

.tournament .tie-team strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament .tie-team > span:last-child {
  color: #fed437;
  font: 700 19px/1 Montserrat, Arial, Helvetica, sans-serif;
  text-align: right;
}

.tournament .leg-results {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 3px 10px;
  background: #1f3942;
  color: #b9dbe7;
  font: 12px/1 Montserrat, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.tournament .tournament-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 4px 60px 0;
  border-top: 3px solid #ef8d2f;
  background: rgba(69, 112, 127, 0.94);
}

.tournament .tournament-actions p:only-child {
  grid-column: 2;
}

.tournament .tournament-actions .button {
  width: 100%;
  height: 70px;
  font-size: 28px;
  line-height: 62px;
}

.tournament .tournament-actions .button::after {
  height: 62px;
}

.tournament .tournament-actions .button .icon {
  left: 44px;
  width: 48px;
  height: auto;
}

.tournament .tournament-actions .button .icon ~ .label > span {
  padding-left: 72px;
}

.tournament .menu-footer {
  font-size: 16px;
}

.tournament .menu-footer .key {
  min-width: 34px;
}

/* Five-part team strength indicator shared by club and national selectors. */
.friendly-team-browser-strip {
  position: absolute;
  top: 54px;
  right: 260px;
  left: 260px;
  z-index: 15;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 64px 90px;
  align-items: center;
  min-height: 68px;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  text-align: center;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.7);
}

.friendly-team-browser-strip strong {
  overflow: hidden;
  font-size: 34px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friendly-team-browser-strip small {
  color: #ffe24d;
  font-size: 18px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7);
}

.friendly-browser-direction {
  display: flex;
  align-items: center;
  color: #fff;
}

.friendly-browser-direction.next {
  justify-content: flex-end;
}

.friendly-browser-direction.previous {
  justify-content: flex-start;
}

.friendly-team-browser-strip .key {
  min-width: 32px;
}

.friendly-team-browser-strip + .choice-slider {
  padding-top: 54px;
  box-sizing: border-box;
}

.team.rated-team .team-strength {
  position: absolute;
  right: 4px;
  bottom: 5px;
  left: 4px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  height: 13px;
  padding: 0;
  border: 0;
  background: rgba(20, 48, 57, 0.72);
  box-sizing: border-box;
  pointer-events: none;
}

.team.rated-team .team-strength i {
  display: block;
  min-width: 0;
  background: #52717a;
}

.team.rated-team .team-strength i.active {
  background: repeating-linear-gradient(
    135deg,
    #ffe34b 0,
    #ffe34b 6px,
    #ed9631 6px,
    #ed9631 10px
  );
}

.team.rated-team.focused .team-strength i.active {
  box-shadow: 0 0 5px rgba(255, 227, 75, 0.8);
}
