/* Faithful, reversible interaction affordances for the original Kung Fu Clan pages. */
.master-avatar-link {
  display: inline-block;
  line-height: 0;
  outline: 0;
}

.master-avatar-link img {
  display: block;
  box-sizing: border-box;
  transition: filter 120ms linear, box-shadow 120ms linear;
}

.master-avatar-link:hover img,
.master-avatar-link:focus img,
.master-avatar-link:focus-visible img {
  filter: brightness(1.1) contrast(1.08);
  box-shadow: inset 0 0 0 2px #c40000, 0 0 6px rgba(196, 0, 0, 0.75);
}

.flash-stage {
  position: relative;
  width: 780px;
  max-width: 100vw;
  aspect-ratio: 780 / 400;
  overflow: hidden;
  background: #fff;
}

/* WebKit does not treat an aspect-ratio-derived block size as a definite
   percentage-height basis for the nested legacy object. Pin the direct
   object to the stage's positioned box so Ruffle receives the full stage. */
.flash-stage > object {
  position: absolute;
  inset: 0;
}

.flash-stage object,
.flash-stage embed,
.flash-stage ruffle-embed {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.roster-links {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.roster-links[hidden] {
  display: none;
}

.roster-link {
  position: absolute;
  left: 0.5%;
  width: 23%;
  height: 7%;
  box-sizing: border-box;
  pointer-events: auto;
  color: transparent;
  font: 0/0 a;
  outline: 0;
  border: 1px solid transparent;
  background: transparent;
}

.roster-link:hover,
.roster-link:focus,
.roster-link:focus-visible {
  border-color: #fff;
  background: rgba(255, 0, 0, 0.14);
  box-shadow: inset 0 0 0 1px #c40000, 0 0 7px rgba(196, 0, 0, 0.9);
}

.roster-link::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -4px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid transparent;
}

.roster-link:hover::after,
.roster-link:focus::after,
.roster-link:focus-visible::after {
  border-left-color: #fff;
}

.roster-brassmonkey { top: 1.5%; }
.roster-boombastic   { top: 9%; }
.roster-sloop        { top: 39%; }
.roster-shaka        { top: 54%; }
.roster-nookie       { top: 61.5%; }

.profile-return-bar {
  width: 780px;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 5px 8px;
  background: #000;
  color: #fff;
  text-align: center;
  font: 12px Arial, sans-serif;
}

.profile-wrapper-back {
  float: right;
  margin-left: 14px;
  color: #fff;
  font: 12px Arial, sans-serif;
  letter-spacing: 3px;
}

.profile-wrapper-back::before {
  content: "●";
  margin-right: 5px;
  color: #f00;
}

.profile-wrapper-back:hover,
.profile-wrapper-back:focus,
.profile-wrapper-back:focus-visible {
  color: #fff;
  background: #c40000;
  outline: 1px solid #fff;
  outline-offset: 1px;
}

.profile-return-bar::after {
  content: "";
  display: block;
  clear: both;
}


