/* Result card (js/formats/result.js). Design 440 x 550. Values from kit/studies/02-roster-and-result.html, .post.b */
.fmt--result{--maps:#b5afa6}

/* the art panel on top: the art covers it */
.fmt--result .pic{
  position:absolute;left:0;top:0;
  width:calc(440 * var(--u));height:calc(318 * var(--u));
  overflow:hidden;
}
.fmt--result .art{position:absolute}

/* the text block */
.fmt--result .tx{position:absolute;left:calc(26 * var(--u));right:calc(26 * var(--u));top:calc(338 * var(--u))}
.fmt--result .f-tag{display:block;width:fit-content}

/* the score row: team, score, team */
.fmt--result .score{
  display:flex;align-items:center;justify-content:space-between;gap:calc(18 * var(--u));
  min-height:calc(39 * var(--u));margin-top:calc(14 * var(--u));
}
.fmt--result .team{
  font-family:var(--f-head);font-weight:800;font-size:calc(30 * var(--u));line-height:1.3;
  text-transform:uppercase;letter-spacing:-.01em;white-space:nowrap;
}
.fmt--result .team--b{text-align:right}
/* long names stack onto two lines, and the longest ones wrap where they must (both set by the renderer) */
.fmt--result .is-stacked .team{white-space:pre-line;line-height:var(--hl-lead)}
.fmt--result .is-tight .team{white-space:pre-line;flex-shrink:0}
.fmt--result .is-tight .team.is-long{flex-shrink:1;overflow-wrap:anywhere}
/* the study's score inherits weight 800, so the browser draws Press Start 2P heavier. The reference shows it that way */
.fmt--result .num{flex:0 0 auto;font-size:calc(26 * var(--u));font-weight:800;line-height:1;color:var(--red);white-space:nowrap}

/* map scores, spread across the row, then the event */
.fmt--result .maps{
  display:flex;flex-wrap:wrap;justify-content:space-between;column-gap:calc(16 * var(--u));
  margin-top:calc(14 * var(--u));line-height:calc(13 * var(--u));color:var(--maps);
}
.fmt--result .maps span{white-space:nowrap}
.fmt--result .event{
  margin-top:calc(9 * var(--u));
  font-size:calc(11 * var(--u));line-height:calc(14 * var(--u));letter-spacing:.12em;color:var(--mute);
}

/* the seal, bottom right */
.fmt--result .foot{position:absolute;right:calc(26 * var(--u));bottom:calc(22 * var(--u))}
