/* Teamazo · Couche d’origine (Codex), 1/3 : logo, en-tête, panneaux, vestiaire, terrain, équipes, fenêtres. */

/* Logo « Le maillot » (même dessin que l’icône de l’appli, couleurs fixes dans toutes les ambiances). */
.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
}
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-word {
  font: 800 italic 32px/0.9 var(--display);
  letter-spacing: -0.7px;
}
.brand-word span {
  color: var(--lime);
}

.saved {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.saved .icon {
  color: var(--lime);
  width: 16px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #4c5844;
  background: #2b3524;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
}
.header-end {
  display: flex;
  gap: 24px;
  align-items: center;
}
.app {
  max-width: 1780px;
  margin: auto;
  padding: 27px 32px 32px;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}

.intro h1 {
  font: 700 40px/1.12 var(--display);
  letter-spacing: 0.2px;
}
.intro p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.outline-btn,
.primary-btn,
.subtle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.outline-btn {
  border: 1px solid #3a4239;
  background: #1c221c;
  color: var(--white);
}
.primary-btn {
  background: var(--lime);
  color: #19240e;
  border: 1px solid var(--lime);
  font-weight: 700;
}
.subtle-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
.icon-btn {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.icon-btn:hover {
  background: #303830;
  color: var(--white);
}
.icon-btn .icon {
  width: 16px;
  height: 16px;
}
.format-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.format-label {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.format-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px;
  scrollbar-width: thin;
}
.format {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 7px;
  background: #1a1f1b;
  padding: 10px 15px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.format small {
  font-size: 12px;
  opacity: 0.65;
}
.format.active {
  color: var(--lime);
  border-color: #6c853d;
  background: #26321b;
}
.format .icon {
  width: 17px;
  height: 17px;
}
.custom-size {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.custom-size input {
  width: 66px;
  padding: 8px;
}
.workspace {
  display: grid;
  grid-template-columns: 286px minmax(400px, 1fr) 278px;
  gap: 20px;
  align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 19px 18px 14px;
}
.panel-heading h2 {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-heading h2 .icon {
  color: var(--muted);
}
.count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #2b312b;
  border-radius: 5px;
  padding: 2px 7px;
  min-width: 22px;
  text-align: center;
}

.list-heading {
  padding: 11px 17px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.list-heading label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.list-heading input {
  width: 15px;
  height: 15px;
}
.players-list {
  max-height: 650px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #46533d transparent;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid #292f29;
  min-height: 68px;
}
.player-row:last-child {
  border-bottom: 0;
}
.player-row.absent {
  opacity: 0.54;
}
.player-initials {
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #2b3430;
  color: #c4d3c2;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.player-row:nth-child(3n + 2) .player-initials {
  background: #34312a;
  color: #d6c9ad;
}
.player-row:nth-child(3n + 3) .player-initials {
  background: #2b303d;
  color: #b8c9e1;
}
.player-info {
  flex: 1;
  min-width: 0;
}
.player-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-position {
  font-size: 12px;
  color: var(--muted);
}
.rating-edit {
  width: 39px !important;
  padding: 4px 1px;
  text-align: center;
  border-color: transparent;
  background: #303223;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  border-radius: 5px;
}
.rating-edit:hover,
.rating-edit:focus {
  border-color: var(--gold);
}
.player-menu {
  min-width: 26px;
  width: 26px;
  padding: 0;
}
.player-menu .icon {
  width: 14px;
}

.field-panel {
  min-width: 0;
}
.field-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 13px;
  gap: 8px;
}
.section-label {
  font-size: 12px;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: var(--muted);
}
.field-toolbar .view-label {
  font-size: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
}
.field-toolbar .icon {
  height: 15px;
  width: 15px;
}
.match-capture {
  border: 1px solid #354330;
  border-radius: 11px;
  overflow: hidden;
  background: #172019;
}
.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 19px 22px;
  background: #1d251d;
}
.match-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team-emblem {
  width: 33px;
  height: 37px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  background: #593037;
  color: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
}
.team-emblem.blue {
  background: #293f5c;
  color: var(--blue);
}
.match-side strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.match-side small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.match-side.right {
  text-align: right;
  flex-direction: row-reverse;
}
.versus {
  font: 700 italic 25px var(--display);
  color: #7e8b77;
}
.board-wrap {
  padding: 17px 20px 18px;
  background: #141f16;
  position: relative;
}
.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 1.42;
  isolation: isolate;
  touch-action: pan-y;
}
.player-token {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 80px;
  min-height: 78px;
  padding: 0;
  border: 0;
  z-index: 2;
  color: white;
  background: transparent;
  display: flex;
  align-items: center;
  flex-direction: column;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  filter: drop-shadow(0 4px 3px #0004);
}
.player-token:hover:not(:disabled) {
  filter: drop-shadow(0 0 6px #c4f85777);
  z-index: 3;
}
.player-token.dragging {
  cursor: grabbing;
  z-index: 20;
  filter: drop-shadow(0 7px 7px #0008);
  transition: none;
}
.jersey {
  position: relative;
  width: 52px;
  height: 49px;
  display: block;
}
.jersey svg {
  width: 52px;
  height: 49px;
  overflow: visible;
}
.jersey-number {
  position: absolute;
  inset: 9px 0 0;
  text-align: center;
  font: 700 23px var(--display);
  color: white;
  text-shadow: 0 1px 2px #0003;
}
.token-rating {
  position: absolute;
  right: -5px;
  top: -4px;
  color: #fff;
  background: #222d22;
  border: 1px solid #9cad8355;
  padding: 1px 4px;
  line-height: 17px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}
.token-name {
  margin-top: 3px;
  max-width: 93px;
  background: #122319db;
  border: 1px solid #a7c59626;
  border-radius: 4px;
  padding: 2px 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.token-position {
  font-size: 10px;
  color: #d5e6d1;
  line-height: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.field-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 25px;
  pointer-events: none;
}
.field-empty div {
  background: #122218eb;
  border: 1px solid #718365;
  border-radius: 10px;
  padding: 18px;
  font-size: 14px;
  max-width: 290px;
}
.field-empty strong {
  display: block;
  font: 700 24px var(--display);
  margin-bottom: 5px;
}
.field-empty p {
  color: #b9cbb3;
  font-size: 13px;
}
.pitch.drag-over {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.capture-footer {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #151c15;
  padding: 12px 20px;
  color: #a7b29f;
  font-size: 12px;
}
.capture-footer strong {
  color: var(--lime);
  font: 800 italic 22px var(--display);
}

.field-actions {
  display: flex;
  gap: 10px;
  margin-top: 17px;
}
.field-actions .primary-btn {
  flex: 1;
}
.field-actions .subtle-btn {
  padding: 11px 12px;
}
.pending-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #67542e;
  background: #332d1f;
  border-radius: 7px;
  font-size: 13px;
  color: var(--gold);
}
.pending-note button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  font-size: 13px;
}

.teams-panel .panel-heading {
  padding-bottom: 16px;
}
.balance-area {
  padding: 0 15px 16px;
  border-bottom: 1px solid var(--line);
}
.balance-area .primary-btn {
  width: 100%;
  font-size: 14px;
  padding-left: 8px;
  padding-right: 8px;
}
.balance-area p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 9px;
}
.fairness {
  margin: 15px;
  padding: 13px 12px;
  border: 1px solid #3d4c2e;
  background: #26301e;
  border-radius: 7px;
}
.fairness-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 6px;
}
.fairness-line strong {
  font-weight: 600;
  color: var(--lime);
}
.fairness-line span {
  color: var(--muted);
  font-size: 12px;
}
.fairness-meter {
  margin-top: 10px;
  background: #3b4631;
  display: flex;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  gap: 3px;
}
.fairness-meter .red {
  background: var(--red);
  border-radius: 4px;
}
.fairness-meter .blue {
  background: var(--blue);
  border-radius: 4px;
}
.team-block {
  padding: 0 15px 13px;
}
.team-block + .team-block {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.team-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.team-title h3 {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
}
.team-title .team-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--red);
}
.team-block.blue .team-dot {
  background: var(--blue);
}
.average {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--red);
  font-family: var(--display);
}
.team-block.blue .average {
  color: var(--blue);
}
.average small {
  font: 400 12px var(--font);
  color: var(--muted);
  margin-left: 2px;
}
.team-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  font-size: 13px;
}
.team-row .role {
  width: 24px;
  flex-shrink: 0;
  color: #85917d;
  font-size: 10px;
  font-weight: 700;
}
.team-row .name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-row .score {
  color: var(--gold);
  font-size: 12px;
  min-width: 21px;
  text-align: right;
}
.team-row .icon-btn {
  min-width: 26px;
  min-height: 27px;
}
.team-row .icon {
  width: 13px;
  height: 13px;
}
.team-empty {
  padding: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.bottom-note {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #72806d;
  font-size: 12px;
}
.bottom-note .icon {
  width: 14px;
  height: 14px;
  margin-right: 5px;
}
.bottom-note strong {
  font: 700 italic 18px var(--display);
  color: #a1ad98;
}
.mobile-tabs {
  display: none;
}
dialog {
  color: var(--white);
  background: var(--panel);
  border: 1px solid #46513d;
  border-radius: 13px;
  width: min(440px, calc(100% - 32px));
  padding: 24px;
  box-shadow: 0 30px 100px #000a;
}
dialog::backdrop {
  background: #080d09c9;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font: 700 29px var(--display);
}
.form-field {
  display: block;
  margin: 17px 0;
}
.form-field > span {
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
  color: #c6cec1;
}
.form-field > input,
.form-field > select {
  width: 100%;
}
.rating-control {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rating-control input[type='number'] {
  width: 76px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.form-actions .primary-btn {
  flex: 1;
}
.dialog-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.danger-btn {
  border-color: #74454a;
  background: #45282c;
  color: #ffafb4;
}
.key-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  width: max-content;
  background: #e4efda;
  color: #1b2915;
  box-shadow: 0 8px 32px #0005;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast .icon {
  width: 17px;
  height: 17px;
}
.empty-locker {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty-locker strong {
  display: block;
  color: var(--white);
  margin-bottom: 5px;
}
.export-stage {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 1050px;
  padding: 25px;
  background: #101811;
  z-index: -1;
  pointer-events: none;
}
.export-stage .match-capture {
  width: 1000px;
}
.export-stage .capture-footer {
  display: flex;
}
.export-stage .match-side strong {
  font-size: 21px;
}
.export-stage .match-side small {
  font-size: 16px;
}
.export-stage .player-token {
  width: 105px;
}
.export-stage .jersey {
  transform: scale(1.2);
  margin-bottom: 9px;
}
.export-stage .token-name {
  font-size: 15px;
  max-width: 145px;
  line-height: 21px;
}
.export-stage .token-position {
  font-size: 12px;
}
.drag-ghost {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  margin: 0;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  background: #314124;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 310px minmax(500px, 1fr) 310px;
    gap: 24px;
  }
  .player-row {
    padding: 13px 16px;
  }
  .app {
    padding-top: 32px;
  }
  .pitch {
    aspect-ratio: 1.5;
  }
}
@media (max-width: 1220px) and (min-width: 761px) {
  .app {
    padding: 24px 20px;
  }
  .app-header {
    padding: 0 22px;
  }
  .workspace {
    grid-template-columns: 240px minmax(350px, 1fr);
    gap: 17px;
  }
  .teams-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 240px 1fr 1fr;
    align-items: start;
  }
  .teams-panel > .panel-heading {
    grid-column: 1;
  }
  .balance-area {
    grid-column: 1;
    border-bottom: 0;
  }
  .fairness {
    grid-column: 1;
    margin-top: 0;
  }
  .team-block {
    grid-column: 2;
    grid-row: 1 / 5;
    padding: 20px !important;
  }
  .team-block + .team-block {
    grid-column: 3;
    grid-row: 1 / 5;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .player-row {
    gap: 7px;
    padding: 10px;
  }
  .player-initials {
    display: none;
  }
  .format {
    padding: 10px;
  }
  .format-bar {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  .app-header {
    height: 64px;
    padding: 0 18px;
  }
  .brand-word {
    font-size: 28px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .avatar {
    display: none;
  }
  .saved {
    font-size: 11px;
    gap: 5px;
  }
  .saved .icon {
    width: 14px;
  }
  .app {
    padding: 22px 15px calc(99px + env(safe-area-inset-bottom));
  }
  .intro {
    margin-bottom: 20px;
    align-items: center;
  }
  .intro h1 {
    font-size: 33px;
  }
  .intro p {
    font-size: 13px;
    margin-top: 5px;
  }

  .intro > .outline-btn {
    display: none;
  }
  .format-bar {
    display: block;
    margin-bottom: 20px;
  }
  .format-label {
    display: none;
  }
  .format-options {
    margin: 0 -15px;
    padding: 2px 15px 5px;
    scrollbar-width: none;
  }
  .format {
    padding: 10px 13px;
    gap: 8px;
  }
  .format small {
    display: none;
  }
  .custom-size {
    margin-top: 9px;
  }
  .workspace {
    display: block;
  }
  .workspace > [data-view] {
    display: none;
  }
  .workspace > [data-view].mobile-active {
    display: block;
  }
  .panel {
    border-radius: 10px;
  }
  .players-list {
    max-height: none;
  }
  .player-row {
    padding: 12px 17px;
    gap: 12px;
  }
  .player-initials {
    width: 36px;
    height: 38px;
  }
  .player-info .player-name {
    font-size: 16px;
  }
  .player-position {
    font-size: 13px;
  }
  .rating-edit {
    font-size: 14px;
    width: 46px !important;
  }
  .field-toolbar {
    margin-bottom: 12px;
  }
  .match-header {
    padding: 14px 16px;
  }
  .match-side {
    gap: 7px;
  }
  .match-side strong {
    font-size: 13px;
  }
  .match-side small {
    font-size: 11px;
  }
  .team-emblem {
    width: 27px;
    height: 31px;
  }
  .versus {
    font-size: 22px;
  }
  .board-wrap {
    padding: 15px 17px;
  }
  .pitch {
    aspect-ratio: 0.76;
  }
  .jersey,
  .jersey svg {
    width: 44px;
    height: 43px;
  }
  .jersey-number {
    font-size: 20px;
    inset: 8px 0 0;
  }
  .player-token {
    width: 70px;
    min-height: 67px;
  }
  .token-name {
    font-size: 11px;
    line-height: 15px;
    padding: 1px 5px;
    max-width: 82px;
  }
  .token-rating {
    right: -5px;
    top: -3px;
    font-size: 10px;
    padding: 0 3px;
  }
  .token-position {
    font-size: 9px;
    line-height: 13px;
  }

  .field-actions .primary-btn {
    font-size: 13px;
    padding: 11px 7px;
  }
  .field-actions .subtle-btn {
    padding: 11px;
  }
  .reset-label {
    display: none;
  }
  .bottom-note {
    display: none;
  }
  .team-block {
    padding: 5px 19px 15px;
  }
  .team-row {
    padding: 8px 0;
    font-size: 15px;
  }
  .team-row .icon-btn {
    min-width: 35px;
    min-height: 33px;
  }
  .team-row .icon {
    width: 16px;
    height: 16px;
  }
  .team-row .role {
    font-size: 11px;
    width: 30px;
  }
  .team-row .score {
    font-size: 14px;
  }
  .team-title h3 {
    font-size: 17px;
  }
  .average {
    font-size: 29px;
  }
  .team-meta {
    font-size: 13px;
  }
  .fairness {
    padding: 16px;
  }
  .balance-area {
    padding: 0 18px 18px;
  }
  .balance-area .primary-btn {
    padding: 14px;
  }
  .mobile-tabs {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #191f19f5;
    backdrop-filter: blur(16px);
    border-top: 1px solid #3a4535;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    z-index: 40;
    gap: 8px;
  }
  .mobile-tabs button {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 7px;
    padding: 7px;
    background: transparent;
    color: #93a08b;
    font-size: 11px;
    font-weight: 600;
    position: relative;
  }
  .mobile-tabs button .icon {
    width: 21px;
    height: 21px;
  }
  .mobile-tabs button.active {
    background: #303e23;
    color: var(--lime);
  }

  .toast {
    bottom: calc(89px + env(safe-area-inset-bottom));
    font-size: 13px;
    max-width: calc(100% - 28px);
  }
  .export-stage .jersey,
  .export-stage .jersey svg {
    width: 52px;
    height: 49px;
  }
  .export-stage .jersey-number {
    font-size: 23px;
  }
  .export-stage .token-rating {
    font-size: 11px;
  }
  .export-stage .match-header {
    padding: 22px;
  }
}
.export-stage .token-name {
  font-family: Arial, sans-serif;
  line-height: 24px;
  min-height: 28px;
  padding: 2px 8px;
  overflow: visible;
  white-space: nowrap;
}
.export-stage .token-rating {
  font-family: Arial, sans-serif;
  line-height: 20px;
  min-height: 24px;
}
.export-stage .jersey-number {
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 30px;
  inset: 10px 0 0;
}
.export-stage .team-emblem {
  line-height: 28px;
  font-family: Arial, sans-serif;
}
@media (max-width: 760px) {
  .pitch {
    aspect-ratio: var(--mobile-pitch-ratio, 0.76);
  }
}
.locker-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 10px 12px;
  background: #151b16;
  border-bottom: 1px solid var(--line);
}
.locker-dock button,
.assign-pill {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #202620;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  min-height: 30px;
  padding: 4px 6px;
}
[data-dest='A'],
.locker-dock [data-locker-drop='A'] {
  color: var(--team-a-ui, var(--red));
}
[data-dest='B'],
.locker-dock [data-locker-drop='B'] {
  color: var(--team-b-ui, var(--blue));
}
.assign-pill[aria-pressed='true'] {
  background: #35402d;
  border-color: currentColor;
  color: var(--white);
}
.assign-pill[data-dest='A'][aria-pressed='true'] {
  color: var(--team-a-ui, var(--red));
  background: var(--team-a-bg, #44272b);
}
.assign-pill[data-dest='B'][aria-pressed='true'] {
  color: var(--team-b-ui, var(--blue));
  background: var(--team-b-bg, #25344c);
}
.locker-group {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
  min-height: 75px;
}
.locker-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  background: #202720;
  font-size: 12px;
  font-weight: 700;
}
.locker-group-header .group-dot {
  height: 8px;
  width: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--group-color, #a0aba0);
}
.locker-group-header .count {
  margin-left: auto;
}
.locker-group-header button {
  background: none;
  border: 0;
  color: var(--white);
  padding: 0;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.locker-empty {
  padding: 13px;
  color: #85927d;
  font-size: 12px;
}
.locker-group.drag-over {
  background: #34472b;
  outline: 2px dashed var(--lime);
  outline-offset: -3px;
}
.locker-dock button.drag-over {
  background: var(--lime);
  color: #15200e;
  border-color: var(--lime);
}
.grouped-row {
  display: block;
  padding: 10px 12px;
  min-height: 0;
}
.player-row-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.grouped-row.absent {
  opacity: 0.7;
}
.locker-grip {
  padding: 0;
  min-width: 22px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #7d8c76;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.locker-grip .icon {
  width: 17px;
  height: 17px;
}
.locker-grip:active {
  cursor: grabbing;
}
.assignment-pills {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr 1.3fr;
  gap: 5px;
  margin-top: 8px;
}
.assign-pill {
  font-size: 11px;
  min-height: 27px;
  padding: 3px 4px;
}
.locker-drag-ghost {
  position: fixed;
  z-index: 250;
  pointer-events: none;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  background: #314124;
  border: 1px solid var(--lime);
  border-radius: 8px;
  color: white;
  box-shadow: 0 10px 25px #0008;
  font-size: 14px;
  white-space: nowrap;
}
.locker-source-dragging {
  opacity: 0.35 !important;
}
.locker-bottom {
  padding: 8px 14px 12px;
}
.clear-locker {
  font-size: 12px;
  border: 0;
  background: transparent;
  color: #ad9999;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 2px;
}
.clear-locker .icon {
  width: 14px;
  height: 14px;
}
.team-edit-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.team-edit-btn .icon {
  width: 12px;
  height: 12px;
  opacity: 0.65;
}
.team-edit-btn strong {
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.team-edit-btn:hover {
  text-decoration: underline;
}
.team-title .team-edit-btn {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
}
.team-title .team-edit-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 145px;
}
.team-block.red .average {
  color: var(--team-a-ui, var(--red));
}
.team-block.blue .average {
  color: var(--team-b-ui, var(--blue));
}
.team-title .team-dot {
  background: var(--team-a-ui, var(--red));
}
.team-block.blue .team-dot {
  background: var(--team-b-ui, var(--blue));
}
.fairness-meter .red {
  background: var(--team-a-ui, var(--red));
}
.fairness-meter .blue {
  background: var(--team-b-ui, var(--blue));
}
.export-stage .team-edit-btn .icon {
  display: none;
}
.export-stage .team-edit-btn {
  text-decoration: none !important;
  pointer-events: none;
}
.share-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.share-actions .outline-btn {
  flex: 1;
  font-size: 13px;
}
.share-actions .subtle-btn {
  font-size: 12px;
}
.color-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.color-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #202720;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--white);
  padding: 10px;
  font-size: 13px;
}
.color-choice[aria-pressed='true'] {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}
.color-swatch {
  height: 18px;
  width: 18px;
  border: 1px solid #83907b;
  border-radius: 50%;
  flex-shrink: 0;
}
.team-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #232b21;
  padding: 15px;
  margin-top: 18px;
}
.team-preview svg {
  height: 52px;
  width: 56px;
}
.team-preview strong {
  overflow-wrap: anywhere;
}
.link-area {
  width: 100%;
  min-height: 95px;
  resize: vertical;
  margin-top: 12px;
  background: #101611;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  font: 13px/1.5 var(--font);
  overflow-wrap: anywhere;
}
.share-note {
  font-size: 12px;
  color: var(--gold);
  line-height: 1.6;
  margin: 12px 0 0;
}
.balance-detail {
  color: var(--muted);
  font-size: 12px;
  padding-top: 8px;
  line-height: 1.5;
}
@media (max-width: 1220px) and (min-width: 761px) {
  .team-title .team-edit-btn span {
    max-width: none;
  }
}
@media (max-width: 760px) {
  .grouped-row {
    padding: 12px 15px;
  }
  .assignment-pills {
    gap: 7px;
    margin-left: 28px;
  }
  .assign-pill {
    min-height: 35px;
    font-size: 12px;
  }
  .locker-dock {
    position: sticky;
    top: 0;
    z-index: 5;
    gap: 7px;
  }
  .locker-dock button {
    min-height: 38px;
  }
  .locker-group-header {
    padding: 13px 16px;
    font-size: 14px;
  }
  .locker-grip {
    min-width: 28px;
    min-height: 40px;
  }
  .locker-grip .icon {
    width: 21px;
    height: 21px;
  }
  .team-edit-btn strong {
    font-size: 12px;
  }
  .team-title .team-edit-btn {
    font-size: 16px;
  }
  .team-title .team-edit-btn span {
    max-width: 200px;
  }
  .share-actions .outline-btn {
    padding: 11px 8px;
  }
  .share-actions .subtle-btn {
    padding: 10px;
  }
  .export-stage .team-edit-btn strong {
    font-size: 21px;
  }
}
button {
  touch-action: manipulation;
}
.locker-grip,
.player-token {
  touch-action: none;
}
@media (max-width: 760px) {
  .locker-panel {
    overflow: visible;
  }
  .locker-panel .panel-heading {
    border-radius: 10px 10px 0 0;
  }
}
.main-view-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  background: #181e18;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
  width: fit-content;
}
.main-view-tabs button {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 22px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}
.main-view-tabs button strong {
  font-size: 15px;
  display: block;
}

.main-view-tabs button.active {
  color: var(--lime);
  background: #2a371e;
  border-color: #4e6633;
}
.main-view-tabs button[data-main-view='postmatch'].active {
  color: var(--gold);
  background: #363022;
  border-color: #75603c;
}
.main-view-tabs .icon {
  width: 22px;
  height: 22px;
}
.field-toolbar {
  flex-wrap: wrap;
}
.formation-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex-wrap: wrap;
  margin-top: 4px;
}
.formation-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.8px;
  margin-right: 3px;
}
.formation-btn {
  border: 1px solid #3a4634;
  border-radius: 5px;
  color: #b3c0aa;
  background: #1d261b;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 600;
}
.formation-btn.active {
  border-color: #7c974a;
  background: #304022;
  color: var(--lime);
}
.formation-btn small {
  font-weight: 400;
  opacity: 0.7;
  margin-left: 5px;
  font-size: 11px;
}
.player-token.swap-target {
  z-index: 10;
  filter: drop-shadow(0 0 9px #c4f85c) !important;
}
.player-token.swap-target .jersey:before {
  content: '';
  position: absolute;
  inset: -9px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #c4f85c19;
  box-shadow: 0 0 16px #c4f85c99;
}
.player-token.swap-target .token-name {
  border-color: var(--gold);
  color: var(--lime);
}
.postmatch-view {
  max-width: 1100px;
  margin: auto;
}
.postmatch-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.postmatch-heading h2 {
  font: 700 32px var(--display);
}

.postmatch-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.postmatch-heading .icon {
  color: var(--gold);
}
.ranking-capture {
  background: #151b16;
  border: 1px solid #414938;
  border-radius: 12px;
  padding: 26px;
  overflow: hidden;
}
.result-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  background: #20271e;
  border: 1px solid #394633;
  border-radius: 9px;
  padding: 19px 22px;
}
.result-team {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.result-team:last-child {
  flex-direction: row-reverse;
  text-align: right;
}
.result-team strong {
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.result-team small {
  display: block;
  font-size: 11px;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-bottom: 3px;
}
.result-shield {
  width: 37px;
  height: 43px;
  border-radius: 6px 6px 13px 13px;
  display: grid;
  place-items: center;
  font: 700 24px var(--display);
  flex-shrink: 0;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  max-width: 800px;
  margin: 0 auto 30px;
  padding-top: 22px;
}
.podium-card {
  position: relative;
  min-width: 0;
  text-align: center;
  padding: 20px 16px 17px;
  min-height: 249px;
  border: 1px solid #788582;
  border-radius: 12px;
  background: #141719;
  box-shadow: 0 12px 25px #0003;
}
.podium-card.first {
  border-color: #d7b15d;
  background: #141719;
  min-height: 285px;
  box-shadow: 0 0 30px #e0be5814;
}
.podium-card.third {
  border-color: #95734f;
  background: #141719;
}
.podium-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #cbd6cf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.first .podium-banner {
  color: #f2d487;
}
.third .podium-banner {
  color: #d4a97b;
}
.podium-banner .icon {
  width: 19px;
  height: 19px;
}
.mvp-crown {
  position: absolute;
  left: 50%;
  top: -19px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #392b11;
  border: 5px solid #151b16;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.mvp-crown .icon {
  width: 20px;
  height: 20px;
}
.podium-rating {
  position: absolute;
  top: 56px;
  left: 15px;
  display: flex;
  flex-direction: column;
  font: 700 29px/0.9 var(--display);
  color: #d6dfd5;
}
.podium-rating small {
  font: 400 10px var(--font);
  margin-top: 6px;
  color: #acb8a3;
}
.first .podium-rating {
  color: #f4d889;
  top: 70px;
}
.podium-jersey {
  height: 83px;
  display: grid;
  place-items: center;
  margin: 18px 0 8px;
}
.podium-jersey svg {
  width: 79px;
  height: 75px;
  filter: drop-shadow(0 7px 5px #0005);
}
.first .podium-jersey {
  height: 105px;
  margin-top: 20px;
}
.first .podium-jersey svg {
  width: 94px;
  height: 88px;
}
.podium-card h3 {
  font: 700 24px/1.1 var(--display);
  overflow-wrap: anywhere;
  min-height: 27px;
}
.podium-team {
  font-size: 11px;
  line-height: 1.3;
  color: #b3bba9;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.podium-title {
  display: inline-block;
  font-size: 11px;
  color: #d3ddc7;
  padding: 5px 8px;
  border: 1px solid #83907755;
  background: #10180e44;
  border-radius: 5px;
  margin-top: 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.first .podium-title {
  color: #ffe5a0;
  border-color: #ddc16c55;
}
.podium-placeholder {
  border: 1px dashed #414b37;
  border-radius: 12px;
  display: grid;
  place-items: center;
  min-height: 190px;
  color: #839277;
  font-size: 13px;
}
.ranking-list-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 0 2px 12px;
  color: #aab69e;
  font-size: 12px;
}
.ranking-list-header h3 {
  color: #e7eddf;
  font-size: 15px;
  font-weight: 600;
}
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rank-row {
  display: grid;
  grid-template-columns: 25px 30px minmax(125px, 1fr) minmax(110px, 0.75fr) 102px 112px;
  gap: 10px;
  align-items: center;
  padding: 13px 12px;
  background: #1e261c;
  border: 1px solid #343f2e;
  border-radius: 8px;
  position: relative;
}
.rank-row:first-child {
  border-color: #7a6639;
  background: #2c2d20;
}
.rank-position {
  font: 700 24px var(--display);
  color: #a3b394;
  text-align: center;
}
.rank-row:first-child .rank-position {
  color: var(--gold);
}
.rank-grip {
  touch-action: none;
  cursor: grab;
  border: 0;
  background: transparent;
  color: #7d8f70;
  padding: 0;
  min-height: 35px;
}
.rank-grip .icon {
  width: 18px;
  height: 18px;
}
.rank-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rank-mini-jersey svg {
  width: 34px;
  height: 34px;
}
.rank-name {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  display: block;
  line-height: 1.3;
}
.rank-meta {
  font-size: 11px;
  color: #9da992;
  display: block;
  margin-top: 3px;
}
.rank-title {
  justify-self: start;
  border: 1px solid #5c674e;
  border-radius: 20px;
  background: #2b3324;
  color: #cad5bd;
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.rank-title .icon {
  width: 11px;
  height: 11px;
  margin-left: 3px;
}
.rank-goals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.rank-goals button,
.rank-controls button {
  border: 1px solid #48523d;
  background: #293222;
  border-radius: 5px;
  color: #c3d2b4;
  min-height: 30px;
  min-width: 27px;
  font-size: 13px;
  padding: 3px;
}
.rank-goals .goals-value {
  font-size: 13px;
  white-space: nowrap;
  min-width: 32px;
  text-align: center;
  color: #e6eddf;
}
.rank-controls {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.rank-controls .rank-first {
  font-size: 10px;
  min-width: 42px;
}
.rank-controls button:disabled,
.rank-goals button:disabled {
  cursor: default;
  opacity: 0.32;
}
.rank-row.rank-dragging {
  opacity: 0.3;
}
.rank-row.drop-before:before,
.rank-row.drop-after:after {
  content: '';
  height: 3px;
  background: var(--lime);
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 3px;
  box-shadow: 0 0 8px #c4f85c77;
}
.rank-row.drop-before:before {
  top: -6px;
}
.rank-row.drop-after:after {
  bottom: -6px;
}
.rank-ghost {
  position: fixed;
  z-index: 250;
  pointer-events: none;
  border: 1px solid var(--gold);
  background: #38412b;
  color: #f0f4df;
  box-shadow: 0 12px 25px #0008;
  border-radius: 8px;
  padding: 12px 18px;
  transform: translate(-50%, -50%);
  font-size: 14px;
  white-space: nowrap;
}
.rank-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed #49583d;
  border-radius: 9px;
}
.rank-empty .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  color: var(--gold);
}
.rank-empty strong {
  display: block;
  color: var(--white);
  font: 700 26px var(--display);
  margin-bottom: 7px;
}
.ranking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  gap: 10px;
  color: #86957c;
  font-size: 11px;
}
.ranking-footer strong {
  font: 800 italic 23px var(--display);
  color: var(--lime);
}
.postmatch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 17px;
}
.postmatch-actions p {
  color: var(--muted);
  font-size: 12px;
}
.postmatch-actions .primary-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #2f250f;
}
.rank-export-stage {
  position: fixed;
  left: -12000px;
  top: 0;
  padding: 25px;
  width: 1050px;
  background: #101811;
  z-index: -1;
  pointer-events: none;
}
.rank-export-stage .ranking-capture {
  width: 1000px;
  border-radius: 12px;
}
.rank-export-stage [data-export-hide] {
  display: none !important;
}
.rank-export-stage .rank-row {
  grid-template-columns: 36px minmax(150px, 1fr) minmax(180px, 0.8fr) 85px;
  gap: 14px;
  min-height: 70px;
}
.rank-export-stage .rank-title {
  border-radius: 6px;
}
.rank-export-stage .rank-goals .goals-value {
  font-size: 15px;
}
.rank-export-stage .rank-name {
  font-size: 16px;
}
.rank-export-stage .rank-meta {
  font-size: 12px;
}
.rank-export-stage .rank-title {
  font-size: 13px;
}
.rank-export-stage .rank-position {
  font-size: 26px;
}
.rank-export-stage .rank-mini-jersey svg {
  width: 38px;
  height: 38px;
}
.rank-export-stage .ranking-footer {
  font-size: 13px;
}
.rank-export-stage .rank-player {
  min-width: 0;
}
@media (max-width: 900px) {
  .rank-row {
    grid-template-columns: 22px 24px minmax(100px, 1fr) 105px;
    gap: 8px;
  }
  .rank-title {
    grid-column: 3;
    grid-row: 2;
  }
  .rank-goals {
    grid-column: 4;
    grid-row: 1;
  }
  .rank-controls {
    grid-column: 4;
    grid-row: 2;
  }
  .ranking-capture {
    padding: 20px;
  }
}
@media (max-width: 760px) {
  .main-view-tabs {
    width: 100%;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
  }
  .main-view-tabs button {
    flex: 1;
    padding: 10px 9px;
    gap: 7px;
  }
  .main-view-tabs button strong {
    font-size: 13px;
  }

  .main-view-tabs .icon {
    width: 18px;
    height: 18px;
  }
  .formation-btn {
    padding: 7px 8px;
    font-size: 11px;
  }
  .formation-btn small {
    display: none;
  }
  .formation-label {
    font-size: 10px;
  }
  .postmatch-heading {
    margin-bottom: 15px;
  }
  .postmatch-heading h2 {
    font-size: 29px;
  }
  .postmatch-heading p {
    font-size: 12px;
  }
  .ranking-capture {
    padding: 12px;
    border-radius: 10px;
  }
  .result-banner {
    gap: 7px;
    padding: 12px 8px;
  }
  .result-team {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  .result-team:last-child {
    flex-direction: column;
    text-align: center;
  }
  .result-team strong {
    font-size: 12px;
  }
  .result-team small {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .result-shield {
    width: 25px;
    height: 28px;
    font-size: 17px;
  }
  .podium {
    gap: 7px;
    padding-top: 18px;
    margin-bottom: 23px;
  }
  .podium-card {
    padding: 16px 6px 10px;
    min-height: 211px;
    border-radius: 8px;
  }
  .podium-card.first {
    min-height: 240px;
  }
  .podium-banner {
    font-size: 10px;
    letter-spacing: 0;
    gap: 2px;
  }
  .podium-banner .icon {
    width: 13px;
    height: 13px;
  }
  .podium-rating {
    font-size: 23px;
    top: 41px;
    left: 7px;
  }
  .podium-rating small {
    font-size: 9px;
    margin-top: 3px;
  }
  .first .podium-rating {
    top: 51px;
  }
  .podium-jersey {
    margin: 18px 0 6px;
    height: 72px;
    justify-items: end;
  }
  .podium-jersey svg {
    width: 50px;
    height: 50px;
  }
  .first .podium-jersey {
    height: 89px;
    margin-top: 20px;
  }
  .first .podium-jersey svg {
    width: 59px;
    height: 59px;
  }
  .podium-card h3 {
    font-size: 18px;
    min-height: 21px;
  }
  .podium-team {
    font-size: 10px;
  }
  .podium-title {
    font-size: 10px;
    line-height: 1.3;
    padding: 4px;
    margin-top: 8px;
  }
  .podium-placeholder {
    min-height: 165px;
    font-size: 11px;
  }
  .mvp-crown {
    width: 35px;
    height: 35px;
    top: -17px;
    border-width: 4px;
  }
  .mvp-crown .icon {
    width: 16px;
  }

  .rank-row {
    padding: 10px 7px;
    grid-template-columns: 18px 20px minmax(65px, 1fr) 85px;
    gap: 6px;
  }
  .rank-mini-jersey {
    display: none;
  }
  .rank-name {
    font-size: 13px;
  }
  .rank-meta {
    font-size: 10px;
  }
  .rank-title {
    font-size: 10px;
    padding: 5px 7px;
  }
  .rank-position {
    font-size: 21px;
  }
  .rank-goals {
    gap: 3px;
  }
  .rank-goals button,
  .rank-controls button {
    min-width: 25px;
    min-height: 32px;
  }
  .rank-goals .goals-value {
    font-size: 11px;
    min-width: 26px;
  }
  .rank-controls {
    gap: 3px;
  }
  .rank-controls .rank-first {
    min-width: 28px;
    font-size: 9px;
  }
  .ranking-list-header {
    font-size: 10px;
  }
  .ranking-list-header h3 {
    font-size: 13px;
  }
  .ranking-footer {
    font-size: 10px;
  }
  .ranking-footer strong {
    font-size: 20px;
  }
  .postmatch-actions .primary-btn {
    width: 100%;
    font-size: 13px;
  }
  .postmatch-actions p {
    font-size: 11px;
  }
  .mobile-tabs {
    gap: 4px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .mobile-tabs button {
    padding: 7px 3px;
    font-size: 10px;
  }
  .rank-grip .icon {
    width: 16px;
  }
  .rank-export-stage .ranking-capture {
    padding: 26px;
  }
  .rank-export-stage .result-banner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 20px;
    padding: 19px 22px;
  }
  .rank-export-stage .result-team {
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }
  .rank-export-stage .result-team:last-child {
    flex-direction: row-reverse;
    text-align: right;
  }
  .rank-export-stage .result-team strong {
    font-size: 17px;
  }
  .rank-export-stage .result-shield {
    width: 37px;
    height: 43px;
    font-size: 24px;
  }
  .rank-export-stage .rank-title,
  .rank-export-stage .rank-goals,
  .rank-export-stage .rank-controls {
    grid-column: auto;
    grid-row: auto;
  }
  .rank-export-stage .rank-mini-jersey {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
