.country-field {
  margin-top: 20px;
}

.selection-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 17px;
  overflow: hidden;
  border: 1px solid #292f39;
  border-left: 2px solid #4f8cff;
  border-radius: 12px;
  background: linear-gradient(135deg, #121721, #10141b);
  position: relative;
}

.selection-card::after {
  content: '';
  position: absolute;
  width: 86px;
  height: 86px;
  right: -35px;
  top: -42px;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
  pointer-events: none;
}

.selection-card.pending {
  border-left-color: #d9ff43;
}

.selection-card.champion {
  border-color: #d9ff4352;
  border-left-color: #d9ff43;
  background: linear-gradient(135deg, #1b2118, #11161a);
}

.selection-card.missed {
  border-left-color: #5e6673;
}

.selection-flag {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff0e;
  border-radius: 10px;
  background: #ffffff08;
  font-size: 26px;
  line-height: 1;
  overflow: hidden;
}

.selection-flag > .country-flag-emoji,
.selection-flag > img {
  grid-area: 1 / 1;
}

.selection-flag > .country-flag-emoji {
  font-size: 25px;
}

.selection-flag > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 36px;
  height: 27px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 2px 8px #0006;
}

.country-flag-inline {
  position: relative;
  display: inline-grid;
  width: 1.5em;
  height: 1.05em;
  place-items: center;
  overflow: hidden;
  border-radius: .15em;
  background: #ffffff12;
  vertical-align: -.16em;
  line-height: 1;
}

.country-flag-inline > .country-flag-emoji,
.country-flag-inline > img {
  grid-area: 1 / 1;
}

.country-flag-inline > .country-flag-emoji {
  font-size: .9em;
}

.country-flag-inline > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selection-copy,
.selection-record {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.selection-copy small,
.selection-record small {
  display: block;
  color: #737b88;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.selection-copy b {
  display: block;
  margin: 3px 0;
  font: 15px 'Archivo Black';
  text-transform: uppercase;
}

.selection-copy span {
  display: block;
  overflow: hidden;
  color: #9ba3af;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-record {
  text-align: right;
}

.selection-record b {
  display: block;
  color: #d9ff43;
  font: 15px 'Archivo Black';
}

.selection-card--compact {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  margin: -6px 0 18px;
  padding: 11px;
}

.selection-card--compact .selection-flag {
  width: 34px;
  height: 34px;
  font-size: 21px;
}

.selection-card--compact .selection-copy b {
  font-size: 11px;
}

.selection-card--compact .selection-copy span {
  white-space: normal;
}

.selection-card--compact .selection-record {
  grid-column: 2;
  text-align: left;
}

.national-action {
  border: 1px solid #d9ff4360;
  background: #d9ff43;
  color: #10130b;
}

.final-selection-section {
  padding: 22px 0;
  border-bottom: 1px solid #aaa;
}

.selection-card--paper {
  border-color: #cbcbc6;
  border-left-color: #3f6fd8;
  background: linear-gradient(135deg, #ecece7, #dfdfda);
  color: #101217;
}

.selection-card--paper::after {
  border-color: #1111110c;
}

.selection-card--paper .selection-copy span,
.selection-card--paper .selection-copy small,
.selection-card--paper .selection-record small {
  color: #62676d;
}

.selection-card--paper .selection-record b {
  color: #315ec7;
}

.selection-breakdown {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid #1112;
}

.selection-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  background: #fff7;
  font-size: 9px;
}

.selection-breakdown b {
  font-size: 10px;
}

.selection-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.selection-results span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-left: 2px solid #315ec7;
  background: #fff6;
  color: #555b63;
  font-size: 9px;
  line-height: 1.35;
}

.selection-results b {
  color: #15191f;
  font-size: 9px;
}

.season-log-row > p small {
  display: block;
  margin-top: 5px;
  color: #315ec7;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.35;
}

.national-champion {
  border-color: #c9a84c52 !important;
  border-left-color: #ffd700 !important;
  background: linear-gradient(135deg, #1e1f14, #11161a) !important;
}

.national-champion .champion-tab {
  background: linear-gradient(90deg, #ffd700, #e8b923);
  color: #1a1500;
}

.national-action {
  border: 1px solid #d9ff4360;
  background: linear-gradient(135deg, #1b5e20, #0d3c11) !important;
  color: #c8ff6e !important;
  text-shadow: 0 1px 2px #0005;
}

.national-action:hover {
  background: linear-gradient(135deg, #256d28, #124a16) !important;
  box-shadow: 0 0 24px #4caf5030;
}

.selection-card.pending .selection-copy b {
  color: #d9ff43;
}

.selection-card.champion .selection-record b {
  color: #ffd700;
}

.selection-breakdown div span {
  flex: 1;
  min-width: 0;
}

@media (max-width: 580px) {
  .selection-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 13px;
  }

  .selection-flag {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .selection-flag > img {
    width: 32px;
    height: 24px;
  }

  .selection-record {
    grid-column: 2;
    text-align: left;
  }

  .selection-copy span {
    white-space: normal;
  }

  .selection-breakdown {
    grid-template-columns: 1fr;
  }

  .selection-results {
    grid-template-columns: 1fr;
  }
}
