/* Correctifs de lisibilité communs à la page et au widget. */
.battle-hero::after,
.bbd-battle-widget::after {
  display: none !important;
  content: none !important;
}

.battle-eyebrow,
.battle-live span {
  font-size: 13px;
}

.battle-live b,
.battle-intro span {
  font-size: 12px;
}

.battle-hero__copy > p:not(.battle-eyebrow),
.battle-intro p {
  font-size: 16px;
  line-height: 1.45;
}

.battle-score small,
.battle-score em {
  font-size: 12px;
}

.battle-card > header span,
.battle-card > header b,
.battle-player small,
.battle-team small {
  font-size: 12px;
}

.battle-player p,
.battle-team p,
.battle-card > footer {
  font-size: 13px;
  line-height: 1.4;
}

.battle-choices button small {
  font-size: 11px;
}

.battle-choices button span {
  font-size: 12px;
}

.battle-choices button b {
  font-size: 17px;
}

.battle-duel b,
.battle-duel > span small {
  font-size: 12px;
}

.battle-duel > span strong {
  font-size: 20px;
}

.battle-complete > div:first-child span,
.battle-result-card small,
.battle-result-card > b,
.battle-result-card span,
.battle-result-card em {
  font-size: 12px;
}

.battle-complete p {
  font-size: 14px;
  line-height: 1.45;
}

.battle-complete a {
  font-size: 13px;
}

.battle-ranking header span {
  font-size: 12px;
}

.battle-ranking header p,
.battle-ranking [data-battle-leaderboard] > p,
.battle-rank-row {
  font-size: 13px;
}

.battle-loop article > b,
.battle-loop article strong,
.battle-loop article small,
.battle-reset {
  font-size: 12px;
}

.battle-login-nudge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px 14px;
  padding: 11px 13px;
  border: 1px solid #cfe0f1;
  border-radius: 12px;
  background: #f8fbff;
  color: #536a82;
}

.battle-login-nudge > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  background: #e5f2ff;
}

.battle-login-nudge p {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.battle-login-nudge strong {
  color: #173b60;
}

.battle-login-nudge a {
  padding: 8px 11px;
  border-radius: 8px;
  background: #1478ce;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.battle-guest-name {
  display: flex;
  min-width: 250px;
  flex-direction: column;
  gap: 5px;
  padding-left: 13px;
  border-left: 1px solid #d6e2ee;
}

.battle-guest-name label,
.battle-guest-name small {
  color: #60758b;
  font-size: 11px;
  font-weight: 800;
}

.battle-guest-name > div {
  display: flex;
  gap: 6px;
}

.battle-guest-name input {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  font: 700 13px inherit;
}

.battle-guest-name button {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #e5f2ff;
  color: #1168b2;
  cursor: pointer;
  font: 900 12px inherit;
}

.bbd-battle-widget {
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 320px) 150px;
  grid-template-areas:
    "brand choices cta"
    "after choices cta";
  gap: 14px;
}

.bbd-battle-widget__brand {
  grid-area: brand;
  position: relative;
  min-height: 70px;
  padding-right: 82px;
}

.bbd-battle-widget__portrait {
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 76px;
  height: 82px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,.22));
}

.bbd-battle-widget__choices {
  grid-area: choices;
}

.bbd-battle-widget__after {
  grid-area: after;
}

.bbd-battle-widget > a {
  grid-area: cta;
}

.bbd-battle-widget__brand > span {
  font-size: 10px;
}

.bbd-battle-widget h2 {
  font-size: 24px;
}

.bbd-battle-widget p {
  font-size: 11px;
  line-height: 1.35;
}

.bbd-battle-widget__choices small {
  font-size: 9px;
}

.bbd-battle-widget__choices b {
  font-size: 16px;
}

.bbd-battle-widget__choices span,
.bbd-battle-widget__after span {
  font-size: 10px;
}

.bbd-battle-widget__after b {
  font-size: 11px;
}

.bbd-battle-widget > a {
  font-size: 10px;
  text-align: center;
}

@media (max-width: 900px) {
  .bbd-battle-widget {
    grid-template-columns: minmax(0, 1fr) 145px;
    grid-template-areas:
      "brand cta"
      "choices cta"
      "after cta";
  }

  .bbd-battle-widget__choices {
    grid-column: auto;
  }

  .bbd-battle-widget > a {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .battle-shell {
    padding: 8px 8px 90px;
  }

  .battle-hero {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .battle-hero h1 {
    margin: 8px 0 5px;
    font-size: 34px;
    line-height: 1;
  }

  .battle-hero__copy > p:not(.battle-eyebrow) {
    font-size: 14px;
  }

  .battle-live {
    gap: 5px;
    margin-top: 15px;
  }

  .battle-score {
    box-sizing: border-box;
    width: 100%;
    flex-basis: auto;
    padding: 12px 14px;
  }

  .battle-score strong {
    font-size: 31px;
  }

  .battle-intro {
    margin-top: 21px;
  }

  .battle-intro h2 {
    font-size: 25px;
  }

  .battle-intro p {
    font-size: 14px;
  }

  .bbd-battle-widget {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "choices"
      "after"
      "cta";
    gap: 10px;
    margin: 8px 0;
    padding: 13px 12px;
    border-radius: 14px;
  }

  .bbd-battle-widget h2 {
    margin: 3px 0;
    font-size: 20px;
  }

  .bbd-battle-widget__brand {
    min-height: 62px;
    padding-right: 68px;
  }

  .bbd-battle-widget__portrait {
    width: 62px;
    height: 68px;
  }

  .bbd-battle-widget p {
    font-size: 11px;
  }

  .bbd-battle-widget__choices,
  .bbd-battle-widget > a {
    grid-column: auto;
    grid-row: auto;
  }

  .bbd-battle-widget__choices button {
    padding: 9px 10px;
  }

  .bbd-battle-widget > a {
    padding: 10px;
    text-align: center;
  }

  .battle-login-nudge {
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 3px 12px;
  }

  .battle-login-nudge p {
    min-width: calc(100% - 45px);
  }

  .battle-login-nudge a {
    margin-left: 42px;
  }

  .battle-guest-name {
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    padding: 11px 0 0;
    border-top: 1px solid #d6e2ee;
    border-left: 0;
  }

  .battle-guest-name input {
    flex: 1;
  }
}
